-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmake-appimage.sh
More file actions
35 lines (29 loc) · 1.3 KB
/
make-appimage.sh
File metadata and controls
35 lines (29 loc) · 1.3 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
#!/bin/sh
set -eu
ARCH=$(uname -m)
VERSION=$(pacman -Q graphs | awk '{print $2; exit}')
export ARCH VERSION
export OUTPATH=./dist
export ADD_HOOKS="self-updater.hook"
export UPINFO="gh-releases-zsync|${GITHUB_REPOSITORY%/*}|${GITHUB_REPOSITORY#*/}|latest|*$ARCH.AppImage.zsync"
export ICON=/usr/share/icons/hicolor/scalable/apps/se.sjoerd.Graphs.svg
export DESKTOP=/usr/share/applications/se.sjoerd.Graphs.desktop
export DEPLOY_PYTHON=1
export DEPLOY_GTK=1
export GTK_DIR=gtk-4.0
export DEPLOY_LOCALE=1
export PATH_MAPPING_HARDCODED='libgraphs.so*' # Needed for locale, as the locale override in python executable doesn't work
export STARTUPWMCLASS=se.sjoerd.Graphs # Default to Wayland's wmclass. For X11, GTK_CLASS_FIX will force the wmclass to be the Wayland one.
export GTK_CLASS_FIX=1
# Deploy dependencies
quick-sharun /usr/bin/graphs \
/usr/lib/libgirepository* \
/usr/share/help/*/graphs
# Set Graphs to use AppImage's directory
echo 'GRAPHS_DEVEL_PATH=${SHARUN_DIR}/share/graphs' >> ./AppDir/.env
echo 'GRAPHS_OVERRIDE_RESOURCES=${SHARUN_DIR}/share/graphs/se.sjoerd.Graphs.gresource' >> ./AppDir/.env
echo 'GRAPHS_OVERRIDE_LOCALEDIR=${SHARUN_DIR}/share/locale' >> ./AppDir/.env
# Turn AppDir into AppImage
quick-sharun --make-appimage
# Test the final app
quick-sharun --test ./dist/*.AppImage