-
-
Notifications
You must be signed in to change notification settings - Fork 28
/
Copy pathappimage-builder.yml
63 lines (56 loc) · 2.11 KB
/
appimage-builder.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
#AppImage script
#https://appimage-builder.readthedocs.io/en/latest/examples/pyqt.html
#run this using appimage-builder --recipe appimage-builder.yml
version: 1
script:
# Remove any previous build
- rm -rf AppDir | true
# Make usr and icons dirs
- mkdir -p AppDir/usr/src
- mkdir -p AppDir/usr/share/icons/hicolor/256x256/apps
# Copy the python application code into the AppDir
- cp main.py AppDir/usr/src -r
- cp -r tablexplore AppDir/usr/src -r
- cp img/logo.svg AppDir/usr/share/icons/hicolor/256x256/apps/tablexplore.svg
# Install application dependencies
#- python3 -m pip install --ignore-installed --prefix=/usr --root=AppDir -r ./requirements.txt
AppDir:
path: ./AppDir
app_info:
id: org.dmnfarrell.tablexplore
name: tablexplore
icon: tablexplore
version: 0.5.0
# 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/src/main.py $@"
apt:
arch: amd64
sources:
#- sourceline: 'deb [arch=amd64] http://archive.ubuntu.com/ubuntu/ focal main restricted universe multiverse'
# key_url: 'https://keyserver.ubuntu.com/pks/lookup?op=get&search=0x871920D1991BC93C'
- sourceline: deb [arch=amd64] http://ie.archive.ubuntu.com/ubuntu/ jammy main restricted universe multiverse
include:
- python3
- python3-pkg-resources
- python3-pyqt5
- python3-numpy
- python3-pandas
- python3-matplotlib
- python-matplotlib-data
- python3-tk
exclude: []
runtime:
env:
PATH: '${APPDIR}/usr/bin:${PATH}'
# 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/dist-packages'
AppImage:
update-information: 'gh-releases-zsync|AppImageCrafters|python-tablexplore|latest|tablexplore-*x86_64.AppImage.zsync'
sign-key: None
arch: x86_64