|
| 1 | +#AppImage script |
| 2 | +#https://appimage-builder.readthedocs.io/en/latest/examples/pyqt.html |
| 3 | +version: 1 |
| 4 | +script: |
| 5 | + # Remove any previous build |
| 6 | + - rm -rf AppDir | true |
| 7 | + # Make usr and icons dirs |
| 8 | + - mkdir -p AppDir/usr/src |
| 9 | + - mkdir -p AppDir/usr/share/icons/hicolor/256x256/apps |
| 10 | + # Copy the python application code into the AppDir |
| 11 | + - cp main.py AppDir/usr/src -r |
| 12 | + - cp -r tablexplore AppDir/usr/src -r |
| 13 | + - cp img/logo.svg AppDir/usr/share/icons/hicolor/256x256/apps/tablexplore.svg |
| 14 | + # Install application dependencies |
| 15 | + - pip3 install --system --ignore-installed --prefix=/usr --root=AppDir -r ./requirements.txt |
| 16 | + |
| 17 | +AppDir: |
| 18 | + path: ./AppDir |
| 19 | + |
| 20 | + app_info: |
| 21 | + id: org.tablexplore.python-tablexplore |
| 22 | + name: tablexplore |
| 23 | + icon: tablexplore |
| 24 | + version: 0.3.0 |
| 25 | + # Set the python executable as entry point |
| 26 | + exec: usr/bin/python3 |
| 27 | + # Set the application main script path as argument. Use '$@' to forward CLI parameters |
| 28 | + exec_args: "$APPDIR/usr/src/main.py $@" |
| 29 | + |
| 30 | + apt: |
| 31 | + arch: amd64 |
| 32 | + sources: |
| 33 | + - sourceline: 'deb [arch=amd64] http://archive.ubuntu.com/ubuntu/ focal main restricted universe multiverse' |
| 34 | + key_url: 'https://keyserver.ubuntu.com/pks/lookup?op=get&search=0x871920D1991BC93C' |
| 35 | + # - sourceline: 'deb [arch=amd64] http://archive.ubuntu.com/ubuntu/ bionic main restricted universe multiverse' |
| 36 | + # key_url: 'http://keyserver.ubuntu.com/pks/lookup?op=get&search=0x3b4fe6acc0b21f32' |
| 37 | + |
| 38 | + include: |
| 39 | + - python3 |
| 40 | + - python3-pkg-resources |
| 41 | + |
| 42 | + exclude: [] |
| 43 | + |
| 44 | + runtime: |
| 45 | + env: |
| 46 | + PATH: '${APPDIR}/usr/bin:${PATH}' |
| 47 | + # Set python home |
| 48 | + # See https://docs.python.org/3/using/cmdline.html#envvar-PYTHONHOME |
| 49 | + PYTHONHOME: '${APPDIR}/usr' |
| 50 | + # Path to the site-packages dir or other modules dirs |
| 51 | + # See https://docs.python.org/3/using/cmdline.html#envvar-PYTHONPATH |
| 52 | + PYTHONPATH: '${APPDIR}/usr/lib/python3.8/site-packages' |
| 53 | + |
| 54 | +AppImage: |
| 55 | + update-information: 'gh-releases-zsync|AppImageCrafters|python-tablexplore|latest|tablexplore-*x86_64.AppImage.zsync' |
| 56 | + sign-key: None |
| 57 | + arch: x86_64 |
0 commit comments