-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathAppImageBuilder.yml
78 lines (71 loc) · 2.53 KB
/
AppImageBuilder.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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
version: 1
script:
# Remove any previous build
- rm -rf AppDir | true
# Install from pip
#- virtualenv --python python2 venv
#- . venv/bin/activate
# Install taskcoach from pip
#- pip install --system --ignore-installed --prefix=/usr --root=AppDir taskcoach
# Install from source
- python2 setup.py install --prefix=/usr --root=AppDir
- mkdir -p AppDir/usr/share/icons/hicolor/48x48/apps
- cp icons.in/taskcoach.png AppDir/usr/share/icons/hicolor/48x48/apps/taskcoach.png
# Looks like AppImage does not bundle libfreetype, even if it is
# explicitely included because it caused trouble with some
# software. Of course NOT including it also causes trouble, at least
# with Task Coach. I tested this on Ubuntu 16, 18 and 20 and it
# seems to work.
- mkdir -p AppDir/usr/lib/x86_64-linux-gnu
- cp /usr/lib/x86_64-linux-gnu/libfreetype.so.6 AppDir/usr/lib/x86_64-linux-gnu/
AppDir:
path: ./AppDir
app_info:
id: com.github.fluks.taskcoach
name: taskcoach appimage
icon: taskcoach
version: 0.1.0
# Set the python executable as entry point
exec: usr/bin/python2
# Set the application main script path as argument. Use '$@' to forward CLI parameters
exec_args: "$APPDIR/usr/bin/taskcoach.py $@"
apt:
arch: amd64
sources:
- sourceline: 'deb [arch=amd64] http://archive.ubuntu.com/ubuntu/ bionic main restricted universe multiverse'
key_url: 'http://keyserver.ubuntu.com/pks/lookup?op=get&search=0x3b4fe6acc0b21f32'
include:
- python2.7
- python-pkg-resources
- x11-utils
- python-chardet
- python-dateutil
- python-keyring
- python-lockfile
- python-pyparsing
- python-squaremap
- python-xdg
- python-wxgtk3.0
- python-wxversion
- python-twisted-core
- libxss1
- fonts-dejavu
- xdg-utils
- gnome-icon-theme
exclude: []
after_bundle:
# Is there a way to create these files?
- cp -r /usr/share/mime AppDir/usr/share
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/python2.7/site-packages'
AppImage:
update-information: 'gh-releases-zsync|AppImageCrafters|python-appimage-example|latest|python-appimage-*x86_64.AppImage.zsync'
sign-key: None
arch: x86_64