-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmake-appimage.sh
More file actions
32 lines (26 loc) · 985 Bytes
/
make-appimage.sh
File metadata and controls
32 lines (26 loc) · 985 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
28
29
30
31
32
#!/bin/sh
set -eu
ARCH=$(uname -m)
VERSION=$(pacman -Q ocrmypdf | awk '{print $2; exit}') # example command to get version of application here
export ARCH VERSION
export OUTPATH=./dist
export ADD_HOOKS="self-updater.hook"
export UPINFO="gh-releases-zsync|${GITHUB_REPOSITORY%/*}|${GITHUB_REPOSITORY#*/}|latest|*$ARCH.AppImage.zsync"
export ICON=https://raw.githubusercontent.com/ocrmypdf/OCRmyPDF/refs/heads/main/docs/images/logo-square.png
export DESKTOP=DUMMY
export DEPLOY_PYTHON=1
export MAIN_BIN=ocrmypdf
# Deploy dependencies
quick-sharun \
/usr/bin/ocrmypdf \
/usr/bin/tesseract \
/usr/bin/gs \
/usr/lib/libxslt.so* \
/usr/lib/libexslt.so* \
/usr/lib/libharfbuzz*.so*
# 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