generated from pkgforge-dev/TEMPLATE-AppImage
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmake-appimage.sh
More file actions
25 lines (20 loc) · 797 Bytes
/
make-appimage.sh
File metadata and controls
25 lines (20 loc) · 797 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
#!/bin/sh
set -eu
ARCH=$(uname -m)
VERSION=$(pacman -Q cursor-cli | 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 ICON=https://github.com/user-attachments/assets/0de7bd75-fd58-44f0-ba5f-74bad7261a3b
export DESKTOP=DUMMY
export MAIN_BIN=cursor-agent
# Deploy dependencies
quick-sharun $(find ./AppDir/bin ! -name '*.node' -executable)
# make bash script posix, doesn't need many changes
sed -i \
-e 's|#!/usr/bin/env bash|#!/bin/sh|' \
-e 's|set -euo pipefail|set -eu|' \
./AppDir/bin/cursor-agent
# Turn AppDir into AppImage
quick-sharun --make-appimage