From 027a74646af51995720f4dd055a73ef0cf2339b1 Mon Sep 17 00:00:00 2001 From: Lee Miller Date: Wed, 22 Feb 2023 02:30:47 +0200 Subject: [PATCH] A basic recipe for appimage-builder - currently builds armhf one --- packages/AppImage/AppImageBuilder.yml | 80 +++++++++++++++++++++++++++ 1 file changed, 80 insertions(+) create mode 100644 packages/AppImage/AppImageBuilder.yml diff --git a/packages/AppImage/AppImageBuilder.yml b/packages/AppImage/AppImageBuilder.yml new file mode 100644 index 00000000..27d339dc --- /dev/null +++ b/packages/AppImage/AppImageBuilder.yml @@ -0,0 +1,80 @@ +version: 1 +script: + # Remove any previous build + - rm -rf AppDir | true + - CC=arm-linux-gnueabihf-gcc CXX=arm-linux-gnueabihf-gcc python setup.py install --prefix=/usr --root=AppDir + +AppDir: + path: ./AppDir + + app_info: + id: pybitmessage + name: PyBitmessage + icon: pybitmessage + version: 0.6.3.2 + # Set the python executable as entry point + exec: usr/bin/python + # Set the application main script path as argument. + # Use '$@' to forward CLI parameters + exec_args: "$APPDIR/usr/bin/pybitmessage $@" + + after_runtime: + - sed -i "s|GTK_.*||g" AppDir/AppRun.env + + apt: + arch: armhf + sources: + - sourceline: 'deb [arch=armhf] http://ports.ubuntu.com/ubuntu-ports/ bionic main universe' + key_url: 'http://keyserver.ubuntu.com/pks/lookup?op=get&search=0x3b4fe6acc0b21f32' + + include: + - python-defusedxml + - python-jsonrpclib + - python-msgpack + - python-qrcode + - python-qt4 + - python-setuptools + - python-sip + - python-six + - python-xdg + - sni-qt + exclude: + - libdb5.3 + - libdbus-1-3 + - libfontconfig1 + - libfreetype6 + - libglib2.0-0 + - libice6 + - libmng2 + - libncursesw5 + - libqt4-declarative + - libqt4-designer + - libqt4-help + - libqt4-script + - libqt4-scripttools + - libqt4-sql + - libqt4-test + - libqt4-xmlpatterns + - libqtassistantclient4 + - libsm6 + - libsystemd0 + - libreadline7 + + files: + exclude: + - usr/lib/x86_64-linux-gnu/gconv + - usr/share/man + - usr/share/doc + + runtime: + arch: [ gnueabihf ] + 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/python2.7/site-packages' + +AppImage: + arch: armhf