-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmake-appimage.sh
More file actions
30 lines (25 loc) · 918 Bytes
/
make-appimage.sh
File metadata and controls
30 lines (25 loc) · 918 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
#!/bin/sh
set -eu
ARCH=$(uname -m)
VERSION=$(pacman -Q claws-mail | awk '{print $2; exit}')
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=/usr/share/icons/hicolor/128x128/apps/claws-mail.png
export DESKTOP=/usr/share/applications/claws-mail.desktop
export STRACE_TIME=2
export PATH_MAPPING_HARDCODED=fancy.so
# Deploy the application, its plugins, web extensions and all their dependencies
quick-sharun \
/usr/bin/claws-mail \
/usr/lib/claws-mail \
/usr/bin/perl \
/usr/lib/perl5 \
/usr/lib/libldap.so* \
/usr/lib/liblber.so* \
/usr/lib/libwebkit2gtk-*.so*
# Turn AppDir into AppImage
quick-sharun --make-appimage
# Test the AppImage (GUI apps may need --simple-test to avoid xvfb timeout)
quick-sharun --simple-test ./dist/*.AppImage