-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmake-appimage.sh
More file actions
36 lines (29 loc) · 1.17 KB
/
make-appimage.sh
File metadata and controls
36 lines (29 loc) · 1.17 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
#!/bin/sh
set -eu
ARCH=$(uname -m)
VERSION=$(pacman -Q zen-browser-bin | awk '{print $2; exit}') # example command to get version of application here
export ARCH VERSION
export OUTPATH=./dist
export ADD_HOOKS="self-updater.bg.hook"
export UPINFO="gh-releases-zsync|${GITHUB_REPOSITORY%/*}|${GITHUB_REPOSITORY#*/}|latest|*$ARCH.AppImage.zsync"
export DESKTOP=https://raw.githubusercontent.com/zen-browser/desktop/refs/heads/dev/build/AppDir/zen.desktop
export DEPLOY_OPENGL=1
export DEPLOY_VULKAN=1
export ANYLINUX_LIB=1
export URUNTIME_PRELOAD=1
# Deploy dependencies
# for some reason we need to set LD_LIBRARY_PATH for zen to find its bundled libs
export LD_LIBRARY_PATH=$PWD/AppDir/bin
quick-sharun \
./AppDir/bin/* \
/usr/lib/libavcodec.so* \
/usr/lib/libcanberra.so*
unset LD_LIBRARY_PATH
echo 'MOZ_LEGACY_PROFILES=1' >> ./AppDir/.env
echo 'MOZ_APP_LAUNCHER=${APPIMAGE}' >> ./AppDir/.env
# Additional changes can be done in between here
# 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 --simple-test ./dist/*.AppImage