-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathappimage-builder.yml
70 lines (62 loc) · 2.04 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
64
65
66
67
68
69
70
version: 1
script:
# Remove any previous build
- rm -rf AppDir | true
# Make usr and icons dirs
- mkdir -p AppDir/usr AppDir/usr/share/icons/hicolor/256x256/apps/
# Install icon (every AppImage requires one)
- wget https://findicons.com/files/icons/2166/oxygen/128/utilities_terminal.png -O AppDir/usr/share/icons/hicolor/256x256/apps/app_icon.png
# Copy the python application code into the AppDir
- cp src AppDir/usr -r
# Install application dependencies
- python3 -m pip install --root=AppDir -r ./requirements.txt
AppDir:
path: ./AppDir
app_info:
id: org.appimage-crafters.python-appimage-example
name: python-appimage-hello-world
icon: app_icon
version: 0.1.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/ bionic main restricted universe multiverse'
key_url: 'http://keyserver.ubuntu.com/pks/lookup?op=get&search=0x3b4fe6acc0b21f32'
include:
- python3
- python3-pkg-resources
exclude: []
runtime:
env:
PATH: '${APPDIR}/usr/bin:${PATH}'
# Set python home
PYTHONHOME: '${APPDIR}/usr'
test:
fedora:
image: appimagecrafters/tests-env:fedora-30
command: ./AppRun
use_host_x: true
debian:
image: appimagecrafters/tests-env:debian-stable
command: ./AppRun
use_host_x: true
arch:
image: appimagecrafters/tests-env:archlinux-latest
command: ./AppRun
use_host_x: true
centos:
image: appimagecrafters/tests-env:centos-7
command: ./AppRun
use_host_x: true
ubuntu:
image: appimagecrafters/tests-env:ubuntu-xenial
command: ./AppRun
use_host_x: true
AppImage:
update-information: 'gh-releases-zsync|AppImageCrafters|python-appimage-example|latest|python-appimage-*x86_64.AppImage.zsync'
sign-key: None
arch: x86_64