-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmake-appimage.sh
More file actions
33 lines (27 loc) · 1.06 KB
/
make-appimage.sh
File metadata and controls
33 lines (27 loc) · 1.06 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
#!/bin/sh
set -eu
ARCH=$(uname -m)
export ARCH
export OUTPATH=./dist
export ADD_HOOKS="self-updater.hook"
export UPINFO="gh-releases-zsync|${GITHUB_REPOSITORY%/*}|${GITHUB_REPOSITORY#*/}|latest|*$ARCH.AppImage.zsync"
export ICON="$PWD"/zed.app/share/icons/hicolor/512x512/apps/zed.png
export DESKTOP="$PWD"/zed.app/share/applications/dev.zed.Zed.desktop
export DEPLOY_VULKAN=1
export URUNTIME_PRELOAD=1
export ZED_ALLOW_ROOT=true
export STARTUPWMCLASS=dev.zed.Zed
# Deploy dependencies
LD_LIBRARY_PATH=./zed.app/lib quick-sharun \
./zed.app/*/* \
/usr/bin/env \
/usr/lib/libstdc++.so*
ln -s bin ./AppDir/libexec
cc -shared -fPIC -O2 -o ./AppDir/lib/execve-sharun-hack.so execve-sharun-hack.c -ldl
echo 'execve-sharun-hack.so' >> ./AppDir/.preload
echo 'export ANYLINUX_EXECVE_WRAP_PATHS="$DATADIR"' >> ./AppDir/bin/execve-wrap-path.hook
# 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