Skip to content

Commit 40f8178

Browse files
authored
Simplify the AppImage making script
1 parent c2cb707 commit 40f8178

File tree

1 file changed

+6
-13
lines changed

1 file changed

+6
-13
lines changed

clapper-appimage.sh

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,12 @@
33
set -eux
44

55
ARCH="$(uname -m)"
6-
PACKAGE=clapper
7-
URUNTIME="https://raw.githubusercontent.com/pkgforge-dev/Anylinux-AppImages/refs/heads/main/useful-tools/uruntime2appimage.sh"
8-
SHARUN="https://raw.githubusercontent.com/pkgforge-dev/Anylinux-AppImages/refs/heads/main/useful-tools/quick-sharun.sh"
96
VERSION="$(cat ~/version)"
7+
SHARUN="https://raw.githubusercontent.com/pkgforge-dev/Anylinux-AppImages/refs/heads/main/useful-tools/quick-sharun.sh"
108

119
# Variables used by quick-sharun
1210
export UPINFO="gh-releases-zsync|${GITHUB_REPOSITORY%/*}|${GITHUB_REPOSITORY#*/}|latest|*$ARCH.AppImage.zsync"
13-
export OUTNAME="$PACKAGE"-"$VERSION"-anylinux-"$ARCH".AppImage
11+
export OUTNAME=clapper-"$VERSION"-anylinux-"$ARCH".AppImage
1412
export DESKTOP=/usr/share/applications/com.github.rafostar.Clapper.desktop
1513
export ICON=/usr/share/icons/hicolor/scalable/apps/com.github.rafostar.Clapper.svg
1614
export DEPLOY_OPENGL=1
@@ -27,23 +25,18 @@ else
2725
exit 1
2826
fi
2927

30-
# DEPLOY ALL LIBS
28+
# Trace and deploy all files and directories needed for the application (including binaries, libraries and others)
3129
wget --retry-connrefused --tries=30 "$SHARUN" -O ./quick-sharun
3230
chmod +x ./quick-sharun
3331
./quick-sharun /usr/bin/clapper -- https://test-videos.co.uk/vids/bigbuckbunny/mp4/h265/1080/Big_Buck_Bunny_1080_10s_1MB.mp4
3432

35-
## Further debloat locale
36-
find ./AppDir/share/locale -type f ! -name '*glib*' ! -name '*clapper-app*' -delete
37-
3833
## Set gsettings to save to keyfile, instead to dconf
3934
echo "GSETTINGS_BACKEND=keyfile" >> ./AppDir/.env
4035

41-
# MAKE APPIMAGE WITH URUNTIME
42-
wget --retry-connrefused --tries=30 "$URUNTIME" -O ./uruntime2appimage
43-
chmod +x ./uruntime2appimage
44-
./uruntime2appimage
36+
# Make the AppImage with uruntime
37+
./quick-sharun --make-appimage
4538

46-
# PREPARE APPIMAGE FOR RELEASE
39+
# Prepare the AppImage for release
4740
mkdir -p ./dist
4841
mv -v ./*.AppImage* ./dist
4942
mv -v ~/version ./dist

0 commit comments

Comments
 (0)