Skip to content

Commit fa1a157

Browse files
authored
simplify
1 parent d62b496 commit fa1a157

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

make-appimage.sh

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
set -eu
44

55
export ARCH=$(uname -m)
6-
export VERSION=$(cat ./dist/version)
6+
export VERSION=$(pacman -Q PACKAGENAME | awk '{print $2; exit}') # example command to get version of application here
7+
export OUTPATH=./dist
78
export ADD_HOOKS="self-updater.bg.hook"
89
export UPINFO="gh-releases-zsync|${GITHUB_REPOSITORY%/*}|${GITHUB_REPOSITORY#*/}|latest|*$ARCH.AppImage.zsync"
910
export ICON=PATH_OR_URL_TO_ICON
@@ -16,7 +17,3 @@ quick-sharun /PATH/TO/BINARY_AND_LIBRARIES_HERE
1617

1718
# Turn AppDir into AppImage
1819
quick-sharun --make-appimage
19-
20-
# release artifact and make appname file
21-
mv -v ./*.AppImage* ./dist
22-
awk -F'=' '/^Name=/ {gsub(/ /,"_",$2); print $2; exit}' ./AppDir/*.desktop > ./dist/appname

0 commit comments

Comments
 (0)