-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathmake-appimage.sh
More file actions
27 lines (21 loc) · 822 Bytes
/
make-appimage.sh
File metadata and controls
27 lines (21 loc) · 822 Bytes
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
#!/bin/sh
set -eu
ARCH=$(uname -m)
export ARCH
export OUTPATH=./dist
export ADD_HOOKS="self-updater.bg.hook"
export UPINFO="gh-releases-zsync|${GITHUB_REPOSITORY%/*}|${GITHUB_REPOSITORY#*/}|latest|*$ARCH.AppImage.zsync"
export ICON=https://raw.githubusercontent.com/anomalyco/opencode/refs/heads/dev/packages/desktop/icons/prod/128x128.png
export DEPLOY_OPENGL=1
# Deploy dependencies
quick-sharun \
./AppDir/bin/* \
/usr/lib/libnss_nis.so* \
/usr/lib/libnsl.so* \
/usr/lib/libnss_mdns*_minimal.so*
pacman -S --noconfirm adwaita-fonts
# Add AdwaitaSans font that OpenCode requests, as fallback can fail and show no text
mkdir -p ./AppDir/share/fonts/Adwaita
cp -v /usr/share/fonts/Adwaita/AdwaitaSans-Regular.ttf ./AppDir/share/fonts/Adwaita
# Turn AppDir into AppImage
quick-sharun --make-appimage