-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathmake-appimage.sh
More file actions
41 lines (34 loc) · 1.12 KB
/
make-appimage.sh
File metadata and controls
41 lines (34 loc) · 1.12 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
#!/bin/sh
set -eu
ARCH=$(uname -m)
export ARCH
export OUTPATH=./dist
export ADD_HOOKS="self-updater.bg.hook:fix-namespaces.hook"
export UPINFO="gh-releases-zsync|${GITHUB_REPOSITORY%/*}|${GITHUB_REPOSITORY#*/}|latest|*$ARCH.AppImage.zsync"
export DEPLOY_OPENGL=1
export DEPLOY_VULKAN=1
export DEPLOY_PIPEWIRE=1
export DEPLOY_QT=1
export DEPLOY_GTK=1
export DEPLOY_P11KIT=1
export GTK_DIR=gtk-3.0
export URUNTIME_PRELOAD=1 # really needed here
# strip cromite bundled libs
strip -s -R .comment --strip-unneeded ./AppDir/bin/lib*.so*
# Deploy dependencies
quick-sharun ./AppDir/bin/chrome -- google.com --no-sandbox
quick-sharun \
./AppDir/bin/chrome_* \
./AppDir/bin/libqt6_shim.so* \
/usr/lib/libQt6Widgets.so* \
/usr/lib/libnss* \
/usr/lib/libsoftokn3.so \
/usr/lib/libfreeblpriv3.so \
/usr/lib/libcloudproviders*
# Weird
ln -s ../bin/chrome ./AppDir/shared/bin/exe
# Turn AppDir into AppImage
quick-sharun --make-appimage
# Test the app for 12 seconds, if the test fails due to the app
# having issues running in the CI use --simple-test instead
quick-sharun --test ./dist/*.AppImage --no-sandbox