Skip to content

Commit

Permalink
Fix hugor and caesium
Browse files Browse the repository at this point in the history
  • Loading branch information
ivan-hc authored Sep 7, 2024
1 parent e907be1 commit 8477988
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion programs/x86_64/caesium
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ EOF
chmod a+x ./AM-updater || exit 1

# LAUNCHER & ICON
./"$APP" --appimage-extract *.desktop 1>/dev/null && mv ./squashfs-root/*.desktop ./"$APP".desktop
./"$APP" --appimage-extract *.desktop 1>/dev/null && mv ./squashfs-root/appentry.desktop ./"$APP".desktop
./"$APP" --appimage-extract .DirIcon 1>/dev/null && mv ./squashfs-root/.DirIcon ./DirIcon
COUNT=0
while [ "$COUNT" -lt 10 ]; do # Tries to get the actual icon/desktop if it is a symlink to another symlink
Expand Down
4 changes: 2 additions & 2 deletions programs/x86_64/hugor
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ chmod a+x ../remove || exit 1
version=$(curl -Ls https://api.github.com/repos/realnc/hugor/releases | sed 's/[()",{} ]/\n/g' | grep -oi "https.*64.*mage.*tar.gz$" | grep -vi "i386\|i686\|aarch64\|arm64\|armv7l" | head -1)
wget "$version" || exit 1
#wget "$version.zsync" 2> /dev/null # Comment out this line if you want to use zsync
# Use tar fx ./*tar* here for example in this line in case a compressed file is downloaded.
tar fx ./*tar*
cd ..
mv ./tmp/*mage ./"$APP"
mv ./tmp/*.zsync ./"$APP".zsync 2>/dev/null
Expand All @@ -39,7 +39,7 @@ if [ "$version" != "$version0" ] || [ -e /opt/"$APP"/*.zsync ]; then
mkdir "/opt/$APP/tmp" && cd "/opt/$APP/tmp" || exit 1
[ -e ../*.zsync ] || notify-send "A new version of $APP is available, please wait"
[ -e ../*.zsync ] && wget "$version.zsync" 2>/dev/null || { wget "$version" || exit 1; }
# Use tar fx ./*tar* here for example in this line in case a compressed file is downloaded.
tar fx ./*tar*
cd ..
mv ./tmp/*.zsync ./"$APP".zsync 2>/dev/null || mv --backup=t ./tmp/*mage ./"$APP"
[ -e ./*.zsync ] && { zsync ./"$APP".zsync || notify-send -u critical "zsync failed to update $APP"; }
Expand Down

0 comments on commit 8477988

Please sign in to comment.