-
-
Notifications
You must be signed in to change notification settings - Fork 333
Expand file tree
/
Copy pathAppImageBuilder.yml
More file actions
106 lines (96 loc) · 3.59 KB
/
Copy pathAppImageBuilder.yml
File metadata and controls
106 lines (96 loc) · 3.59 KB
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
# https://github.com/AppImageCrafters/appimage-builder/releases/download/v1.1.0/appimage-builder-1.1.0-x86_64.AppImage
version: 1
AppDir:
path: ./AppDir
app_info:
id: io.github.szczyglis_dev.py-gpt
name: PyGPT
icon: io.github.szczyglis_dev.py-gpt
version: 2.7.12
exec: usr/bin/python3
exec_args: -m pygpt_net.app $@
apt:
arch: amd64
sources:
- sourceline: deb [arch=amd64] http://archive.ubuntu.com/ubuntu jammy main universe
key_url: https://keyserver.ubuntu.com/pks/lookup?op=get&search=0x871920D1991BC93C
- sourceline: deb [arch=amd64] http://archive.ubuntu.com/ubuntu jammy-updates main universe
key_url: https://keyserver.ubuntu.com/pks/lookup?op=get&search=0x871920D1991BC93C
- sourceline: deb [arch=amd64] http://security.ubuntu.com/ubuntu jammy-security main universe
key_url: https://keyserver.ubuntu.com/pks/lookup?op=get&search=0x871920D1991BC93C
include:
- ca-certificates
- ffmpeg
- fonts-dejavu-core
- gstreamer1.0-libav
- libasound2
- libasound2-data
- libasound2-plugins
- libatomic1
- libdbus-1-3
- libegl1
- libfontconfig1
- libfreetype6
- libgl1
- libgl1-mesa-dri
- libgl1-mesa-glx
- libglib2.0-0
- libglu1-mesa
- libglx-mesa0
- libgtk-3-0
- libnss3
- libpng16-16
- libportaudio2
- libx11-xcb1
- libxkbcommon0
- libxkbfile1
- libxcb-cursor0
- libxcb-icccm4
- libxcb-image0
- libxcb-keysyms1
- libxcb-render0
- libxcb-shm0
- libxcb-xfixes0
- libxcb1
- libxi6
- libxtst6
- librsvg2-common
- gdk-pixbuf2.0-bin
- shared-mime-info
- hicolor-icon-theme
- adwaita-icon-theme
- mesa-utils
- packagekit-gtk3-module
- python3
- python3-venv
- xapp
- xkb-data
after_bundle: |
set -e
APPDIR="$(readlink -f ./AppDir)"
install -Dm644 data/io.github.szczyglis_dev.py-gpt.desktop "$APPDIR/usr/share/applications/io.github.szczyglis_dev.py-gpt.desktop"
install -Dm644 data/icons/io.github.szczyglis_dev.py-gpt.png "$APPDIR/usr/share/icons/hicolor/256x256/apps/io.github.szczyglis_dev.py-gpt.png"
mkdir -p "$APPDIR/usr/src"
cp -a src/* "$APPDIR/usr/src/"
cp -a requirements.txt "$APPDIR/usr/src/"
"$APPDIR/usr/bin/python3" -m venv "$APPDIR/usr/pyenv"
"$APPDIR/usr/pyenv/bin/python3" -m ensurepip --upgrade || true
"$APPDIR/usr/pyenv/bin/python3" -m pip install -U pip wheel setuptools
"$APPDIR/usr/pyenv/bin/pip" install -r $APPDIR/usr/src/requirements.txt
cat > "$APPDIR/usr/src/pygpt_net/data/appimage.conf" << 'EOF'
yes
EOF
runtime:
env:
QTWEBENGINE_DISABLE_SANDBOX: "1"
QTWEBENGINE_CHROMIUM_FLAGS: "--no-sandbox --disable-gpu-sandbox"
QTWEBENGINEPROCESS_PATH: "$APPDIR/usr/pyenv/lib/python3.10/site-packages/PySide6/Qt/libexec/QtWebEngineProcess"
QTWEBENGINE_RESOURCES_PATH: "$APPDIR/usr/pyenv/lib/python3.10/site-packages/PySide6/Qt/resources"
QTWEBENGINE_LOCALES_PATH: "$APPDIR/usr/pyenv/lib/python3.10/site-packages/PySide6/Qt/translations/qtwebengine_locales"
QT_QPA_PLATFORM_PLUGIN_PATH: "$APPDIR/usr/pyenv/lib/python3.10/site-packages/PySide6/Qt/plugins"
QT_PLUGIN_PATH: "$APPDIR/usr/pyenv/lib/python3.10/site-packages/PySide6/Qt/plugins"
QT_XKB_CONFIG_ROOT: "$APPDIR/usr/share/X11/xkb"
PYTHONPATH: "$APPDIR/usr/src:$APPDIR/usr/pyenv/lib/python3.10/site-packages"
AppImage:
arch: x86_64
update-information: "gh-releases-zsync|szczyglis-dev|py-gpt|latest|*.AppImage.zsync"