-
Notifications
You must be signed in to change notification settings - Fork 15
/
AppImageBuilder.yml
210 lines (199 loc) · 7.96 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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
version: 1
script:
# Install dependencies
- apt-get update
- apt-get install --yes gettext python3 python3-gi python3-xdg gir1.2-gtk-3.0
# Remove any previous build
- rm -rf AppDir root | true
# Compile the package
- python3 setup.py install --root root
# Copy the python application code into the AppDir
- install -m 755 -d AppDir/usr/share/gwakeonlan
- cp gwakeonlan.py AppDir/usr/share/gwakeonlan
- cp -r root/usr/local/lib/python3.6/dist-packages/gwakeonlan AppDir/usr/share/gwakeonlan
- cp -r root/usr/local/share/gwakeonlan/ui AppDir/usr/share/gwakeonlan
- cp -r root/usr/local/share/gwakeonlan/data AppDir/usr/share/gwakeonlan
- cp -r root/usr/local/share/locale AppDir/usr/share
- mkdir -p AppDir/usr/share/doc
- cp -r root/usr/local/share/doc/gwakeonlan AppDir/usr/share/doc
# Copy icon
- install -m 755 -d AppDir/usr/share/icons/hicolor/scalable/apps/
- install -m 644 -t AppDir/usr/share/icons/hicolor/scalable/apps/ icons/scalable/gwakeonlan.svg
AppDir:
path: ./AppDir
app_info:
id: com.muflone.gwakeonlan
name: gwakeonlan
icon: gwakeonlan
version: 0.8.6
exec: usr/bin/python3
exec_args: "$APPDIR/usr/share/gwakeonlan/gwakeonlan.py $@"
apt:
arch: amd64
sources:
- sourceline: 'deb [arch=amd64] http://archive.ubuntu.com/ubuntu/ focal main restricted universe multiverse'
key_url: 'http://keyserver.ubuntu.com/pks/lookup?op=get&search=0x3b4fe6acc0b21f32'
include:
- python3
- python3-gi
- python3-xdg
- gir1.2-gtk-3.0
# Language packs for translating the GTK+ widgets
- language-pack-gnome-af-base
- language-pack-gnome-am-base
- language-pack-gnome-an-base
- language-pack-gnome-ar-base
- language-pack-gnome-as-base
- language-pack-gnome-ast-base
- language-pack-gnome-az-base
- language-pack-gnome-be-base
- language-pack-gnome-bg-base
- language-pack-gnome-bn-base
- language-pack-gnome-br-base
- language-pack-gnome-bs-base
- language-pack-gnome-ca-base
- language-pack-gnome-ckb-base
- language-pack-gnome-crh-base
- language-pack-gnome-cs-base
- language-pack-gnome-cy-base
- language-pack-gnome-da-base
- language-pack-gnome-de-base
- language-pack-gnome-dz-base
- language-pack-gnome-el-base
- language-pack-gnome-en-base
- language-pack-gnome-eo-base
- language-pack-gnome-es-base
- language-pack-gnome-et-base
- language-pack-gnome-eu-base
- language-pack-gnome-fa-base
- language-pack-gnome-fi-base
- language-pack-gnome-fr-base
- language-pack-gnome-fur-base
- language-pack-gnome-ga-base
- language-pack-gnome-gd-base
- language-pack-gnome-gl-base
- language-pack-gnome-gu-base
- language-pack-gnome-he-base
- language-pack-gnome-hi-base
- language-pack-gnome-hr-base
- language-pack-gnome-hu-base
- language-pack-gnome-ia-base
- language-pack-gnome-id-base
- language-pack-gnome-is-base
- language-pack-gnome-it-base
- language-pack-gnome-ja-base
- language-pack-gnome-ka-base
- language-pack-gnome-kk-base
- language-pack-gnome-km-base
- language-pack-gnome-kn-base
- language-pack-gnome-ko-base
- language-pack-gnome-ku-base
- language-pack-gnome-lt-base
- language-pack-gnome-lv-base
- language-pack-gnome-mk-base
- language-pack-gnome-ml-base
- language-pack-gnome-mr-base
- language-pack-gnome-ms-base
- language-pack-gnome-my-base
- language-pack-gnome-nb-base
- language-pack-gnome-nds-base
- language-pack-gnome-ne-base
- language-pack-gnome-nl-base
- language-pack-gnome-nn-base
- language-pack-gnome-oc-base
- language-pack-gnome-or-base
- language-pack-gnome-pa-base
- language-pack-gnome-pl-base
- language-pack-gnome-pt-base
- language-pack-gnome-ro-base
- language-pack-gnome-ru-base
- language-pack-gnome-si-base
- language-pack-gnome-sk-base
- language-pack-gnome-sl-base
- language-pack-gnome-sq-base
- language-pack-gnome-sr-base
- language-pack-gnome-sv-base
- language-pack-gnome-szl-base
- language-pack-gnome-ta-base
- language-pack-gnome-te-base
- language-pack-gnome-tg-base
- language-pack-gnome-th-base
- language-pack-gnome-tr-base
- language-pack-gnome-ug-base
- language-pack-gnome-uk-base
- language-pack-gnome-vi-base
- language-pack-gnome-xh-base
- language-pack-gnome-zh-hans-base
- language-pack-gnome-zh-hant-base
exclude:
- humanity-icon-theme
- ubuntu-mono
files:
exclude:
- usr/share/doc/dbus-*
- usr/share/doc/dconf-*
- usr/share/doc/gir1.2-*
- usr/share/doc/glib-*
- usr/share/doc/gsettings-desktop-schemas
- usr/share/doc/hicolor-icon-theme
- usr/share/doc/language-pack-*
- usr/share/doc/lib*
- usr/share/doc/mime-support
- usr/share/doc/python3*
- usr/share/doc/readline-common
- usr/share/doc/tzdata
- usr/share/doc/xkb-data
- usr/share/gnome
- usr/share/help-langpack
- usr/share/i18n
- usr/share/man
- usr/share/libthai
- usr/share/X11
- usr/share/zoneinfo
- usr/share/zoneinfo-icu
before_bundle:
- echo 'Before bundle'
- echo '#!/bin/bash' > before_bundle.sh
- "bash before_bundle.sh ${APPDIR}"
after_bundle:
- echo 'After bundle'
# Copy GTK+ translations to AppDir
- echo '#!/bin/bash' > after_bundle.sh
- echo 'set -e' >> after_bundle.sh
- echo 'APPDIR="$1"' >> after_bundle.sh
- echo 'pushd "$APPDIR/usr/share/locale-langpack"' >> after_bundle.sh
- echo 'for locale in *' >> after_bundle.sh
- echo ' do' >> after_bundle.sh
- echo ' LOCALEDIR="usr/share/locale/$locale/LC_MESSAGES"' >> after_bundle.sh
- echo ' if [ ! -d "$APPDIR/$LOCALEDIR" ]' >> after_bundle.sh
- echo ' then' >> after_bundle.sh
- echo ' mkdir -p "$APPDIR/$LOCALEDIR"' >> after_bundle.sh
- echo ' fi' >> after_bundle.sh
- echo ' if [ -f "$locale/LC_MESSAGES/gtk30.mo" ]' >> after_bundle.sh
- echo ' then' >> after_bundle.sh
- echo ' cp $locale/LC_MESSAGES/gtk30.mo $APPDIR/$LOCALEDIR' >> after_bundle.sh
- echo ' fi' >> after_bundle.sh
- echo ' done' >> after_bundle.sh
- echo 'exit 0' >> after_bundle.sh
- "bash after_bundle.sh ${APPDIR}"
# Remove every other translation
- "rm -rf ${APPDIR}/usr/share/locale-langpack"
before_runtime:
- echo 'Before runtime'
- echo '#!/bin/bash' > before_runtime.sh
- "bash before_runtime.sh ${APPDIR}"
after_runtime:
- echo 'After runtime'
- echo '#!/bin/bash' > after_runtime.sh
- "bash after_runtime.sh ${APPDIR}"
runtime:
env:
PATH: '${APPDIR}/usr/local/bin:${PATH}'
APPDIR_LIBRARY_PATH: '$APPDIR/usr/lib/x86_64-linux-gnu:$APPDIR/lib/x86_64-linux-gnu:$APPDIR/usr/lib:$APPDIR/usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders'
PYTHONHOME: '${APPDIR}/usr'
PYTHONPATH: '${APPDIR}/usr/lib/python3.8/site-packages'
XDG_DATA_DIRS: '/usr/local/share:/usr/share'
AppImage:
update-information: None
sign-key: None
arch: x86_64