-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmake-appimage.sh
More file actions
31 lines (24 loc) · 1.11 KB
/
make-appimage.sh
File metadata and controls
31 lines (24 loc) · 1.11 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
#!/bin/sh
set -eu
ARCH=$(uname -m)
VERSION=$(pacman -Q veracrypt | 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://raw.githubusercontent.com/veracrypt/VeraCrypt/refs/heads/master/src/Resources/Icons/VeraCrypt-256x256.png
export DESKTOP=https://raw.githubusercontent.com/veracrypt/VeraCrypt/refs/heads/master/src/Setup/Linux/veracrypt.desktop
export ALWAYS_SOFTWARE=1
# Deploy dependencies
quick-sharun /usr/bin/veracrypt
# The archlinux package is missing the translation files!
mkdir -p ./AppDir/share/veracrypt/languages
git clone --depth 1 https://github.com/veracrypt/VeraCrypt.git ./VeraCrypt
cp -v ./VeraCrypt/Translations/* ./AppDir/share/veracrypt/languages
rm -rf ./VeraCrypt
# the app may check for $APPDIR/usr instead of the patched prefix
ln -s . ./AppDir/usr
# Turn AppDir into AppImage
quick-sharun --make-appimage
# test the final app
quick-sharun --test ./dist/*.AppImage