-
-
Notifications
You must be signed in to change notification settings - Fork 17
/
AppImageBuilder-aarch64.yml
79 lines (69 loc) · 3.32 KB
/
AppImageBuilder-aarch64.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
# appimage-builder recipe see https://appimage-builder.readthedocs.io for details
# Builds on ubuntu 20.04
version: 1
script:
# Remove any previous build
- rm -rf AppDir | true
- rm -rf wheel | true
# Make usr dirs
- mkdir -p AppDir/usr/share/icons/hicolor/256x256/apps/
- mkdir -p AppDir/usr/bin
# Copy the python application code into the AppDir
- rsync -av src/ AppDir/usr/src --exclude __pycache__ --exclude stickers_input --exclude stickers_output --exclude creds.json
# Copy appicon
- cp ./src/sticker_convert/resources/appicon.png AppDir/usr/share/icons/hicolor/256x256/apps/sticker-convert.png
# Install pip packages
- mkdir wheel
- pip download --python-version=312 --abi=cp312 --platform manylinux2014_aarch64 --platform manylinux_2_31_aarch64 --only-binary=':all:' -d wheel -r requirements.txt
- pip download --python-version=312 --abi=cp312 --platform manylinux2014_aarch64 --platform manylinux_2_31_aarch64 --only-binary=':all:' -d wheel certifi opencv-python
- find ./wheel/*.whl -exec bash -c 'mv $0 ${0/-py*.whl/-py3-none-any.whl}' {} \;
- find ./wheel/*.whl -exec bash -c 'mv $0 ${0/-cp*.whl/-py3-none-any.whl}' {} \;
- pip install --ignore-installed --prefix=/usr --root=AppDir --no-deps ./wheel/*
AppDir:
path: ./AppDir
app_info:
id: com.laggykiller.sticker_convert
name: sticker-convert
icon: sticker-convert
version: latest
exec: usr/bin/python3.12
exec_args: "$APPDIR/usr/src/sticker-convert.py $@"
apt:
arch: arm64
sources:
- sourceline: deb [arch=arm64] https://ppa.launchpadcontent.net/deadsnakes/ppa/ubuntu focal main
key_url: https://keyserver.ubuntu.com/pks/lookup?op=get&search=0xF23C5A6CF475977595C89F51BA6932366A755776
- sourceline: deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports focal main restricted universe multiverse
key_url: http://keyserver.ubuntu.com/pks/lookup?op=get&search=0x3b4fe6acc0b21f32
- sourceline: deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports focal-updates main restricted universe multiverse
- sourceline: deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports focal-backports main restricted universe multiverse
- sourceline: deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports focal-security main restricted universe multiverse
- sourceline: deb [arch=arm64] http://archive.canonical.com/ubuntu focal partner
include:
- python3.12
- python3.12-tk
- python3.12-distutils
exclude: []
runtime:
env:
# 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.12/site-packages'
# SSL Certificates are placed in a different location for every system therefore we ship our own copy
SSL_CERT_FILE: '${APPDIR}/usr/lib/python3.12/site-packages/certifi/cacert.pem'
# Tcl library has to be specified or else cannot find init.tcl
TCL_LIBRARY: '${APPDIR}/usr/share/tcltk/tcl8.6'
files:
include: []
exclude:
- usr/share/man
- usr/share/doc/*/README.*
- usr/share/doc/*/changelog.*
- usr/share/doc/*/NEWS.*
- usr/share/doc/*/TODO.*
AppImage:
arch: aarch64
update-information: guess