[Gambas-user] Initial support for making AppImage
Claus Dietrich
claus.dietrich at freenet.de
Thu Sep 7 10:47:43 CEST 2023
Hi
I recently managed to generate Gambas AppImages and documented it for
the German Gambas Club community (sorry - in German only):
https://www.gambas-club.de/download/file.php?id=981
My method:
- Generating the recipe
- Adding required packages
- Starting the generation of the Gambas executable in the IDE which does
the entire rest automatically and also asks for the password of the
signature.
Today I tested the new IDE feature with Linux Mint 20.3 Mate with Gambas
installed via ppa. The packaging failed with below output.
In my practice with Gambas AppImages I always had to add additional
packages which doesn't seem to be supported yet. Signatures are also not
supported yet, right? Hope that this can all be fixed.
Best regards
Claus
Speichere CHANGELOG Datei.
==============================================================================
ERSTELLE PAKET FÜR DEBIAN.
Erstelle Build-Verzeichnis.
rm -f '/home/claus/gb-scan-0-1-60_0.1.60'*
rm -Rf '/home/claus/gb-scan-0-1-60-0.1.60'
rm -Rf '/home/claus/gb-scan-0-1-60-0.1.60.orig'
Erstelle Desktop-Datei...
Quelldateien werden ins Debian-Format überführt.
Erstelle Paket...
cd '/home/claus/gb-scan-0-1-60-0.1.60'
dpkg-buildpackage -d -rfakeroot -uc -us
dpkg-buildpackage: Information: Quellpaket gb-scan-0-1-60
dpkg-buildpackage: Information: Quellversion 0.1.60-1
dpkg-buildpackage: Information: Quelldistribution unstable
dpkg-buildpackage: Information: Quelle geändert durch claus <non>
dpkg-buildpackage: Information: Host-Architektur amd64
dpkg-source --before-build .
fakeroot debian/rules clean
dh_testdir
dh_testroot
rm -Rf 'src/gb.scan_0.1.60/.gambas'
rm -f 'src/gb.scan_0.1.60/gb.scan_0.1.60'
rm -f build-stamp install-stamp
dh_clean
dpkg-source -b .
dpkg-source: Information: Quellformat »1.0« wird verwendet
dpkg-source: Information: gb-scan-0-1-60 wird in
gb-scan-0-1-60_0.1.60.orig.tar.gz gebaut
dpkg-source: Information: gb-scan-0-1-60 wird in
gb-scan-0-1-60_0.1.60-1.diff.gz gebaut
dpkg-source: Warnung: Löschen des Verzeichnisses
src/gb.scan_0.1.60/.gambas wird ignoriert
dpkg-source: Information: gb-scan-0-1-60 wird in
gb-scan-0-1-60_0.1.60-1.dsc gebaut
debian/rules build
dh_testdir
touch build-stamp
gbc3 -e -a -g -t -x -j1 src/gb.scan_0.1.60
OK
gba3 -o 'src/gb.scan_0.1.60/gb.scan_0.1.60' src/gb.scan_0.1.60
fakeroot debian/rules binary
dh_testdir
dh_testroot
dh_prep
dh_installdirs
ln -s 'gb.scan_0.1.60'
"/home/claus/gb-scan-0-1-60-0.1.60"/debian/gb-scan-0-1-60/usr/bin/'gb-scan-0-1-60'
touch install-stamp
dh_testdir -i
dh_testroot -i
dh_installdocs -i
dh_installchangelogs -i
dh_install -i
dh_installmenu
dh_compress -i
dh_fixperms -i
dh_installdeb -i
dh_gencontrol -i
dh_md5sums -i
dh_builddeb -i
dpkg-deb: Paket »gb-scan-0-1-60« wird in
»../gb-scan-0-1-60_0.1.60-1_all.deb« gebaut.
dh_testdir
dpkg-genbuildinfo
dpkg-genchanges >../gb-scan-0-1-60_0.1.60-1_amd64.changes
dpkg-genchanges: Information: Originalquellen beim Hochladen nicht
hinzufügen
dpkg-source --after-build .
dpkg-buildpackage: Information: Binärpakete(e) und Diff hochzuladen
(Originalquellen NICHT enthalten)
==============================================================================
ERSTELLE PAKET FÜR APPIMAGE.
Erstelle Build-Verzeichnis.
rm -rf '/home/claus/.var/tmp/AppImage/AppDir'
mkdir -p '/home/claus/.var/tmp/AppImage/AppDir/usr/bin'
mkdir -p
'/home/claus/.var/tmp/AppImage/AppDir/usr/share/icons/hicolor/256x256/apps'
Generating 'AppImageBuilder' configuration file...
Creating AppImage...
cd '/home/claus/.var/tmp/AppImage'
appimage-builder --skip-script --skip-tests
INFO:main:Running apt deploy
INFO:apt:apt-get update
Ign:1 http://ppa.launchpad.net/gambas-team/gambas3/ubuntu una InRelease
Ign:2 http://ppa.launchpad.net/gambas-team/gambas3/ubuntu una Release
Ign:3 http://ppa.launchpad.net/gambas-team/gambas3/ubuntu una/main all
Packages
Ign:4 http://ppa.launchpad.net/gambas-team/gambas3/ubuntu una/main amd64
Packages
Ign:3 http://ppa.launchpad.net/gambas-team/gambas3/ubuntu una/main all
Packages
Ign:4 http://ppa.launchpad.net/gambas-team/gambas3/ubuntu una/main amd64
Packages
Ign:3 http://ppa.launchpad.net/gambas-team/gambas3/ubuntu una/main all
Packages
Ign:4 http://ppa.launchpad.net/gambas-team/gambas3/ubuntu una/main amd64
Packages
Ign:3 http://ppa.launchpad.net/gambas-team/gambas3/ubuntu una/main all
Packages
Ign:4 http://ppa.launchpad.net/gambas-team/gambas3/ubuntu una/main amd64
Packages
Ign:3 http://ppa.launchpad.net/gambas-team/gambas3/ubuntu una/main all
Packages
Ign:4 http://ppa.launchpad.net/gambas-team/gambas3/ubuntu una/main amd64
Packages
Ign:3 http://ppa.launchpad.net/gambas-team/gambas3/ubuntu una/main all
Packages
Ign:4 http://ppa.launchpad.net/gambas-team/gambas3/ubuntu una/main amd64
Packages
Ign:3 http://ppa.launchpad.net/gambas-team/gambas3/ubuntu una/main all
Packages
Fehl:4 http://ppa.launchpad.net/gambas-team/gambas3/ubuntu una/main
amd64 Packages
404 Not Found [IP: 185.125.190.52 80]
Paketlisten werden gelesen... Fertig
W: Das Depot »http://ppa.launchpad.net/gambas-team/gambas3/ubuntu una
Release« enthält keine Release-Datei.
N: Daten von solch einem Depot können nicht authentifiziert werden und
deren Nutzung ist daher potentiell gefährlich.
N: Weitere Details zur Erzeugung von Paketdepots sowie zu deren
Benutzerkonfiguration finden Sie in der Handbuchseite apt-secure(8).
E: Fehlschlag beim Holen von
http://ppa.launchpad.net/gambas-team/gambas3/ubuntu/dists/una/main/binary-amd64/Packages
404 Not Found [IP: 185.125.190.52 80]
E: Einige Indexdateien konnten nicht heruntergeladen werden. Sie wurden
ignoriert oder alte an ihrer Stelle benutzt.
ERROR:root:"apt-get update" execution failed
Traceback (most recent call last):
File "/usr/local/bin/appimage-builder", line 8, in <module>
sys.exit(__main__())
File
"/usr/local/lib/python3.8/dist-packages/appimagebuilder/__main__.py",
line 50, in __main__
invoker.execute(commands)
File
"/usr/local/lib/python3.8/dist-packages/appimagebuilder/invoker.py",
line 29, in execute
command()
File
"/usr/local/lib/python3.8/dist-packages/appimagebuilder/commands/apt_deploy.py",
line 46, in __call__
deployed_packages = apt_deploy.deploy(
File
"/usr/local/lib/python3.8/dist-packages/appimagebuilder/modules/deploy/apt/deploy.py",
line 39, in deploy
self._prepare_apt_venv()
File
"/usr/local/lib/python3.8/dist-packages/appimagebuilder/modules/deploy/apt/deploy.py",
line 48, in _prepare_apt_venv
self.apt_venv.update()
File
"/usr/local/lib/python3.8/dist-packages/appimagebuilder/modules/deploy/apt/venv.py",
line 161, in update
shell.assert_successful_result(_proc)
File
"/usr/local/lib/python3.8/dist-packages/appimagebuilder/utils/shell.py",
line 35, in assert_successful_result
raise RuntimeError(
RuntimeError: "apt-get update" execution failed with code 100
Die Paketerstellung ist fehlgeschlagen.
Package.MakeAppImagePackage.2952: Unable to create AppImage.
Am 05.09.23 um 13:03 schrieb Benoît Minisini:
> Hi,
>
> I have just added to the IDE a new package type to the packager
> wizard: AppImage!
>
> You are welcome to test it and report any problem. I think it won't
> work easily.
>
> It is not entirely finished. Support for adding extra dependencies and
> extra files is not done yet.
>
> AFAIK, The AppImage limitations are the following:
>
> - You need the 'appimage-builder' tool. See:
> https://appimage-builder.readthedocs.io/en/latest/intro/install.html#intro-install
>
> - This tool apparently works only on Debian, Ubuntu and ArchLinux.
> Please check that if you can.
>
> - AppImage does not like applications using OpenGL. Please check that
> too.
>
> - The resulting AppImage files are big (at least 50 Mb) and slow to
> start (I mean slower than it should).
>
> Otherwise, it's cool.
>
> Regards,
>
More information about the User
mailing list