Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions appimagebuilder/commands/setup_runtime.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,10 @@ def __call__(self, *args, **kwargs):
apprun_version = self.context.recipe.AppDir.runtime.version() or "v2.0.0"
apprun_version = version.parse(apprun_version)
runtime_setup = None
if (
version.parse("v2.0.0") <= apprun_version < version.parse("v3.0.0")
) or apprun_version == version.parse("continuous"):
if version.parse("v2.0.0") <= apprun_version < version.parse("v3.0.0"):
runtime_setup = AppRunV2Setup(self.context, self._finder)

if not runtime_setup and version.parse("v3.0.0-devel") <= apprun_version < version.parse("v4.0.0"):
if not runtime_setup and version.parse("v3.0.0") <= apprun_version < version.parse("v4.0.0"):
runtime_setup = AppRunV3Setup(self.context)

if not runtime_setup:
Expand Down
26 changes: 15 additions & 11 deletions recipes/appimage-builder/AppImageBuilder.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# To build AppImageBuilder, specify explicit AppDir path other than current directory
# e.g.
# cd recipes/appimage-builder
# APPIMAGE_BUILDER_VERSION=eaadff4 python ../../__main__.py --recipe AppImageBuilder.yml --appdir /tmp/appimage-builder
version: 1
script:
# Remove any previous build
Expand All @@ -15,14 +19,14 @@ AppDir:
# Set the python executable as entry point
exec: usr/bin/python3
# Set the application main script path as argument. Use '$@' to forward CLI parameters
exec_args: "$APPDIR/usr/bin/appimage-builder $@"
exec_args: "$APPDIR/usr/local/bin/appimage-builder $@"

apt:
arch: amd64
sources:
- sourceline: 'deb [arch=amd64] http://archive.ubuntu.com/ubuntu/ focal main restricted universe multiverse'
- sourceline: 'deb [arch=amd64] http://archive.ubuntu.com/ubuntu/ focal-updates main restricted universe multiverse'
key_url: 'http://keyserver.ubuntu.com/pks/lookup?op=get&search=0x3b4fe6acc0b21f32'
- sourceline: 'deb [arch=amd64] http://archive.ubuntu.com/ubuntu/ jammy main restricted universe multiverse'
- sourceline: 'deb [arch=amd64] http://archive.ubuntu.com/ubuntu/ jammy-updates main restricted universe multiverse'
key_url: 'http://keyserver.ubuntu.com/pks/lookup?op=get&search=0x871920D1991BC93C'

include:
- bash
Expand All @@ -34,7 +38,7 @@ AppDir:
- fakeroot
- libgdk-pixbuf2.0-dev
- patchelf
- python3.8
- python3.10
- squashfs-tools
- strace
- zsync
Expand All @@ -46,20 +50,20 @@ AppDir:
ln -s bash $TARGET_APPDIR/bin/sh

# install appimage-builder
python3.8 -m pip install --ignore-installed --prefix=/usr --root="$TARGET_APPDIR" install ../../
python3.8 -m pip install --ignore-installed --prefix=/usr --root="$TARGET_APPDIR" install certifi
python3.10 -m pip install --ignore-installed --prefix=/usr --root="$TARGET_APPDIR" install ../../
python3.10 -m pip install --ignore-installed --prefix=/usr --root="$TARGET_APPDIR" install certifi

runtime:
version: "continuous"
version: "v2.0.0"
env:
# Set python home
# See https://docs.python.org/3/using/cmdline.html#envvar-PYTHONHOME
PYTHONHOME: '${APPDIR}/usr'
# Path to the site-packages dir or other modules dirs
# See https://docs.python.org/3/using/cmdline.html#envvar-PYTHONPATH
PYTHONPATH: '${APPDIR}/usr/lib/python3.8/site-packages'
PYTHONPATH: '${APPDIR}/usr/lib/python3.10/site-packages'
# SSL Certificates are placed in a different location for every system therefore we ship our own copy
SSL_CERT_FILE: '${APPDIR}/usr/lib/python3.8/site-packages/certifi/cacert.pem'
SSL_CERT_FILE: '${APPDIR}/usr/lib/python3.10/site-packages/certifi/cacert.pem'

test:
fedora:
Expand All @@ -83,4 +87,4 @@ AppImage:
update-information: 'gh-releases-zsync|AppImageCrafters|appimage-builder|latest|-*x86_64.AppImage.zsync'
sign-key: None
arch: x86_64

comp: gzip
3 changes: 2 additions & 1 deletion recipes/bash-files/AppImageBuilder.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ AppDir:

runtime:
arch: [ x86_64, i386 ]
version: continuous


test:
debian:
Expand All @@ -48,3 +48,4 @@ AppDir:

AppImage:
arch: x86_64
comp: gzip
3 changes: 2 additions & 1 deletion recipes/bash-pacman/AppImageBuilder.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,4 +53,5 @@ AppDir:
AppImage:
update-information: None
sign-key: None
arch: x86_64
arch: x86_64
comp: gzip
3 changes: 2 additions & 1 deletion recipes/bash/AppImageBuilder.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ AppDir:

runtime:
arch: [ x86_64, i386 ]
version: continuous


test:
debian:
Expand All @@ -67,3 +67,4 @@ AppDir:

AppImage:
arch: x86_64
comp: gzip
3 changes: 2 additions & 1 deletion recipes/gimp/AppImageBuilder.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ AppDir:
- usr/share/doc/*/TODO.*
- usr/include
runtime:
version: continuous

path_mappings:
- /etc/gimp:$APPDIR/etc/gimp
- /usr/lib/gimp:$APPDIR/usr/lib/gimp
Expand Down Expand Up @@ -117,3 +117,4 @@ AppDir:

AppImage:
arch: x86_64
comp: gzip
4 changes: 1 addition & 3 deletions recipes/gnome-calculator/AppImageBuilder.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,6 @@ AppDir:
- ubuntu-mono
- fonts-*-core

runtime:
version: "continuous"

files:
exclude:
- usr/lib/x86_64-linux-gnu/gconv
Expand Down Expand Up @@ -61,3 +58,4 @@ AppImage:
update-information: None
sign-key: None
arch: x86_64
comp: gzip
4 changes: 1 addition & 3 deletions recipes/hello-world-gtk/AppImageBuilder.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,6 @@ AppDir:
- ubuntu-mono
- fonts-*-core

runtime:
version: "continuous"

files:
exclude:
- usr/lib/x86_64-linux-gnu/gconv
Expand Down Expand Up @@ -67,3 +64,4 @@ AppImage:
update-information: None
sign-key: None
arch: x86_64
comp: gzip
1 change: 1 addition & 0 deletions recipes/hello-world-qt5/AppImageBuilder.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,3 +65,4 @@ AppDir:
AppImage:
arch: x86_64
update-information: guess
comp: gzip
1 change: 1 addition & 0 deletions recipes/hello-world-qt6/AppImageBuilder.yml
Original file line number Diff line number Diff line change
Expand Up @@ -107,3 +107,4 @@ AppDir:
AppImage:
arch: x86_64
update-information: guess
comp: gzip
4 changes: 2 additions & 2 deletions recipes/kcalc-files/AppImageBuilder.yml
Original file line number Diff line number Diff line change
Expand Up @@ -158,8 +158,7 @@ AppDir:
- usr/share/doc/*/changelog.*
- usr/share/doc/*/NEWS.*
- usr/share/doc/*/TODO.*
runtime:
version: v2.0.0-alpha
runtime: {}
test:
fedora-30:
image: appimagecrafters/tests-env:fedora-30
Expand All @@ -179,3 +178,4 @@ AppDir:
AppImage:
arch: x86_64
update-information: guess
comp: gzip
4 changes: 1 addition & 3 deletions recipes/kcalc-nbc/AppImageBuilder.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,6 @@ AppDir:
# exclude glibc for a smaller but non backward compatible bundles
- opt/libc

runtime:
version: "continuous"

test:
debian:
image: appimagecrafters/tests-env:debian-stable
Expand All @@ -62,3 +59,4 @@ AppImage:
update-information: None
sign-key: None
arch: x86_64
comp: gzip
3 changes: 1 addition & 2 deletions recipes/kcalc/AppImageBuilder.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,6 @@ AppDir:
- usr/share/doc/*/NEWS.*
- usr/share/doc/*/TODO.*
- usr/share/metainfo/org.kde.kcalc.appdata.xml
runtime:
version: "continuous"

test:
debian:
Expand All @@ -66,3 +64,4 @@ AppImage:
update-information: None
sign-key: None
arch: x86_64
comp: gzip
1 change: 1 addition & 0 deletions recipes/parole/AppImageBuilder.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,3 +59,4 @@ AppDir:

AppImage:
arch: x86_64
comp: gzip
4 changes: 2 additions & 2 deletions recipes/pyqt5/AppImageBuilder.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ AppDir:
exclude: []

runtime:
version: "continuous"
env:
PATH: '${APPDIR}/usr/bin:${PATH}'
# Set python home
Expand Down Expand Up @@ -66,4 +65,5 @@ AppDir:
AppImage:
update-information: 'gh-releases-zsync|AppImageCrafters|python-appimage-example|latest|python-appimage-*x86_64.AppImage.zsync'
sign-key: None
arch: x86_64
arch: x86_64
comp: gzip
5 changes: 3 additions & 2 deletions recipes/python/AppImageBuilder.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ AppDir:
exclude: [ ]

runtime:
version: "continuous"
env:
EXPORTED_BINARIES: "$APPDIR/usr/bin/env"

Expand All @@ -54,4 +53,6 @@ AppDir:
AppImage:
update-information: 'gh-releases-zsync|AppImageCrafters|python-appimage-example|latest|python-appimage-*x86_64.AppImage.zsync'
sign-key: None
arch: x86_64
arch: x86_64
comp: gzip

4 changes: 3 additions & 1 deletion recipes/qmlscene/AppImageBuilder.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,4 +83,6 @@ AppDir:
AppImage:
update-information: None
sign-key: None
arch: x86_64
arch: x86_64
comp: gzip

4 changes: 3 additions & 1 deletion recipes/tkinter/AppImageBuilder.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,4 +69,6 @@ AppDir:
AppImage:
update-information: 'gh-releases-zsync|AppImageCrafters|python-appimage-example|latest|python-appimage-*x86_64.AppImage.zsync'
sign-key: None
arch: x86_64
arch: x86_64
comp: gzip

1 change: 1 addition & 0 deletions recipes/vlc/AppImageBuilder.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,4 @@ AppImage:
arch: x86_64
update-information: None
sign-key: None
comp: gzip
1 change: 1 addition & 0 deletions recipes/wget/AppImageBuilder.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,3 +57,4 @@ AppImage:
update-information: None
sign-key: None
file_name: !ENV 'wget-${APP_VERSION}-${TARGET_ARCH}.AppImage'
comp: gzip
1 change: 1 addition & 0 deletions recipes/wine/AppImageBuilder.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,4 +57,5 @@ AppImage:
update-information: None
sign-key: None
arch: x86_64
comp: gzip