Skip to content

Commit fa5133b

Browse files
authored
Add appimageupdatetool support / remove zsync (pt2) (#1395)
* Add files via upload * Update cursor * Update appimagehelper * Update x86_64-apps
1 parent f6bf692 commit fa5133b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

117 files changed

+1170
-762
lines changed

programs/x86_64-apps

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -455,7 +455,7 @@
455455
◆ cura : An open source slicing application for 3D printers.
456456
◆ cura-beta : An open source slicing application for 3D printers, beta.
457457
◆ curlie : The power of curl, the ease of use of httpie.
458-
◆ cursor : Write, edit, and chat about your code with GPT-4.
458+
◆ cursor : Built to make you extraordinarily productive, Cursor is the best way to code with AI.
459459
◆ customrpc : An electron-vue project.
460460
◆ cutechess : Cute Chess is a GUI, a CLI and a library for playing chess.
461461
◆ cutepeaks : A simple sanger trace file viewer.

programs/x86_64/3d-puzzles

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@ chmod a+x ../remove || exit 1
1414
# DOWNLOAD AND PREPARE THE APP, $version is also used for updates
1515
version="https://raw.githubusercontent.com/volatilflerovium/3D-Puzzles/main/3D-Puzzles-x86_64.AppImage"
1616
wget "$version" || exit 1
17-
#wget "$version.zsync" 2> /dev/null # Comment out this line if you want to use zsync
17+
# Keep this space in sync with other installation scripts
1818
# Use tar fx ./*tar* here for example in this line in case a compressed file is downloaded.
1919
cd ..
2020
mv ./tmp/*mage ./"$APP"
21-
mv ./tmp/*.zsync ./"$APP".zsync 2>/dev/null
21+
# Keep this space in sync with other installation scripts
2222
rm -R -f ./tmp || exit 1
2323
echo "$version" > ./version
2424
chmod a+x ./"$APP" || exit 1
@@ -35,21 +35,24 @@ SITE="volatilflerovium/3D-Puzzles"
3535
version0=$(cat "/opt/$APP/version")
3636
version="https://raw.githubusercontent.com/volatilflerovium/3D-Puzzles/main/3D-Puzzles-x86_64.AppImage"
3737
[ -n "$version" ] || { echo "Error getting link"; exit 1; }
38-
#if [ "$version" != "$version0" ] || [ -e /opt/"$APP"/*.zsync ]; then
38+
if command -v appimageupdatetool >/dev/null 2>&1; then
39+
cd "/opt/$APP" || exit 1
40+
appimageupdatetool -Or ./"$APP" && chmod a+x ./"$APP" && echo "$version" > ./version && exit 0
41+
fi
42+
if [ "$version" != "$version0" ]; then
3943
mkdir "/opt/$APP/tmp" && cd "/opt/$APP/tmp" || exit 1
40-
# [ -e ../*.zsync ] || notify-send "A new version of $APP is available, please wait"
41-
[ -e ../*.zsync ] && wget "$version.zsync" 2>/dev/null || { wget "$version" || exit 1; }
44+
notify-send "A new version of $APP is available, please wait"
45+
wget "$version" || exit 1
4246
# Use tar fx ./*tar* here for example in this line in case a compressed file is downloaded.
4347
cd ..
44-
mv ./tmp/*.zsync ./"$APP".zsync 2>/dev/null || mv --backup=t ./tmp/*mage ./"$APP"
45-
[ -e ./*.zsync ] && { zsync ./"$APP".zsync || notify-send -u critical "zsync failed to update $APP"; }
48+
mv --backup=t ./tmp/*mage ./"$APP"
4649
chmod a+x ./"$APP" || exit 1
4750
echo "$version" > ./version
4851
rm -R -f ./*zs-old ./*.part ./tmp ./*~
49-
# notify-send "$APP is updated!"
50-
#else
51-
# echo "Update not needed!"
52-
#fi
52+
notify-send "$APP is updated!"
53+
else
54+
echo "Update not needed!"
55+
fi
5356
EOF
5457
chmod a+x ./AM-updater || exit 1
5558

programs/x86_64/amazingmarvin

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,11 @@ chmod a+x ../remove || exit 1
1414
# DOWNLOAD AND PREPARE THE APP, $version is also used for updates
1515
version=$(wget -q https://repology.org/project/amazingmarvin/related -O - | grep "version-newest" | head -1 | tr '>' '\n' | grep "[0-9]" | sed 's#</span##g')
1616
wget "http://amazingmarvin.s3-website-us-east-1.amazonaws.com/Marvin-x86_64.AppImage" || exit 1
17+
# Keep this space in sync with other installation scripts
1718
# Use tar fx ./*tar* here for example in this line in case a compressed file is downloaded.
1819
cd ..
1920
mv ./tmp/*mage ./"$APP"
20-
mv ./tmp/*.zsync ./"$APP".zsync 2>/dev/null
21+
# Keep this space in sync with other installation scripts
2122
rm -R -f ./tmp || exit 1
2223
echo "$version" > ./version
2324
chmod a+x ./"$APP" || exit 1
@@ -34,7 +35,11 @@ SITE="https://amazingmarvin.com"
3435
version0=$(cat "/opt/$APP/version")
3536
version=$(wget -q https://repology.org/project/amazingmarvin/related -O - | grep "version-newest" | head -1 | tr '>' '\n' | grep "[0-9]" | sed 's#</span##g')
3637
[ -n "$version" ] || { echo "Error getting link"; exit 1; }
37-
if [ "$version" != "$version0" ] || [ -e /opt/"$APP"/*.zsync ]; then
38+
if command -v appimageupdatetool >/dev/null 2>&1; then
39+
cd "/opt/$APP" || exit 1
40+
appimageupdatetool -Or ./"$APP" && chmod a+x ./"$APP" && echo "$version" > ./version && exit 0
41+
fi
42+
if [ "$version" != "$version0" ]; then
3843
mkdir "/opt/$APP/tmp" && cd "/opt/$APP/tmp" || exit 1
3944
notify-send "A new version of $APP is available, please wait"
4045
wget "http://amazingmarvin.s3-website-us-east-1.amazonaws.com/Marvin-x86_64.AppImage" || exit 1

programs/x86_64/ankama-launcher

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@ chmod a+x ../remove || exit 1
1414
# DOWNLOAD AND PREPARE THE APP, $version is also used for updates
1515
version=$(wget -q https://repology.org/project/ankama-launcher/versions -O - | grep -i "new.*version" | head -1 | tr '><' '\n' | grep "^[0-9]")
1616
wget "https://launcher.cdn.ankama.com/installers/production/Ankama%20Launcher-Setup-x86_64.AppImage" || exit 1
17-
#wget "$version.zsync" 2> /dev/null # Comment out this line if you want to use zsync
17+
# Keep this space in sync with other installation scripts
1818
# Use tar fx ./*tar* here for example in this line in case a compressed file is downloaded.
1919
cd ..
2020
mv ./tmp/*mage ./"$APP"
21-
mv ./tmp/*.zsync ./"$APP".zsync 2>/dev/null
21+
# Keep this space in sync with other installation scripts
2222
rm -R -f ./tmp || exit 1
2323
echo "$version" > ./version
2424
chmod a+x ./"$APP" || exit 1
@@ -35,14 +35,17 @@ SITE="https://ankama.com"
3535
version0=$(cat "/opt/$APP/version")
3636
version=$(wget -q https://repology.org/project/ankama-launcher/versions -O - | grep -i "new.*version" | head -1 | tr '><' '\n' | grep "^[0-9]")
3737
[ -n "$version" ] || { echo "Error getting link"; exit 1; }
38-
if [ "$version" != "$version0" ] || [ -e /opt/"$APP"/*.zsync ]; then
38+
if command -v appimageupdatetool >/dev/null 2>&1; then
39+
cd "/opt/$APP" || exit 1
40+
appimageupdatetool -Or ./"$APP" && chmod a+x ./"$APP" && echo "$version" > ./version && exit 0
41+
fi
42+
if [ "$version" != "$version0" ]; then
3943
mkdir "/opt/$APP/tmp" && cd "/opt/$APP/tmp" || exit 1
40-
[ -e ../*.zsync ] || notify-send "A new version of $APP is available, please wait"
41-
[ -e ../*.zsync ] && wget "$version.zsync" 2>/dev/null || { wget "https://launcher.cdn.ankama.com/installers/production/Ankama%20Launcher-Setup-x86_64.AppImage" || exit 1; }
44+
notify-send "A new version of $APP is available, please wait"
45+
wget "https://launcher.cdn.ankama.com/installers/production/Ankama%20Launcher-Setup-x86_64.AppImage" || exit 1
4246
# Use tar fx ./*tar* here for example in this line in case a compressed file is downloaded.
4347
cd ..
44-
mv ./tmp/*.zsync ./"$APP".zsync 2>/dev/null || mv --backup=t ./tmp/*mage ./"$APP"
45-
[ -e ./*.zsync ] && { zsync ./"$APP".zsync || notify-send -u critical "zsync failed to update $APP"; }
48+
mv --backup=t ./tmp/*mage ./"$APP"
4649
chmod a+x ./"$APP" || exit 1
4750
echo "$version" > ./version
4851
rm -R -f ./*zs-old ./*.part ./tmp ./*~

programs/x86_64/apifox

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,14 @@ chmod a+x ../remove || exit 1
1414
# DOWNLOAD AND PREPARE THE APP, $version is also used for updates
1515
version=$(wget -q https://repology.org/project/apifox/related -O - | grep "version-newest" | head -1 | tr '>' '\n' | grep "[0-9]" | sed 's#</span##g')
1616
wget "https://cdn.apifox.cn/download/Apifox-linux-latest.zip" || exit 1
17+
# Keep this space in sync with other installation scripts
1718
[ -e ./*zip ] && unzip -qq ./*zip 1>/dev/null && rm -f ./*zip
1819
cd ..
1920
mv ./tmp/*mage ./"$APP" || exit 1
21+
# Keep this space in sync with other installation scripts
2022
rm -R -f ./tmp || exit 1
2123
echo "$version" > ./version
22-
chmod a+x ./$APP || exit 1
24+
chmod a+x ./"$APP" || exit 1
2325

2426
# LINK TO PATH
2527
ln -s "/opt/$APP/$APP" "/usr/local/bin/$APP"
@@ -33,6 +35,10 @@ SITE="https://apifox.com"
3335
version0=$(cat "/opt/$APP/version")
3436
version=$(wget -q https://repology.org/project/apifox/related -O - | grep "version-newest" | head -1 | tr '>' '\n' | grep "[0-9]" | sed 's#</span##g')
3537
[ -n "$version" ] || { echo "Error getting link"; exit 1; }
38+
if command -v appimageupdatetool >/dev/null 2>&1; then
39+
cd "/opt/$APP" || exit 1
40+
appimageupdatetool -Or ./"$APP" && chmod a+x ./"$APP" && echo "$version" > ./version && exit 0
41+
fi
3642
if [ "$version" != "$version0" ]; then
3743
mkdir "/opt/$APP/tmp" && cd "/opt/$APP/tmp" || exit 1
3844
notify-send "A new version of $APP is available, please wait"

programs/x86_64/appimagehelper

Lines changed: 34 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,20 +12,50 @@ printf '\n%s' "rm -f /usr/local/share/applications/$APP-AM.desktop" >> ../remove
1212
chmod a+x ../remove || exit 1
1313

1414
# DOWNLOAD AND PREPARE THE APP, $version is also used for updates
15-
version="https://bin.ceicer.com/appimagehelper/bin/appimagehelper-x86_64.AppImage"
16-
wget "$version" || exit 1
17-
wget "$version.zsync" 2> /dev/null # Comment out this line if you want to use zsync
15+
version=$(curl -Ls https://bin.ceicer.com/appimagehelper/bin/ | grep -i "x86_64.*appimage" | tr '">< ' '\n' | grep "^[0-9]*-[0-9].*[0-9]$" | head -1)
16+
wget "https://bin.ceicer.com/appimagehelper/bin/$(curl -Ls https://bin.ceicer.com/appimagehelper/bin/ | tr '">< ' '\n' | grep -i "^appimagehelper.*x86_64.*appimage$" | head -1)" || exit 1
17+
# Keep this space in sync with other installation scripts
1818
# Use tar fx ./*tar* here for example in this line in case a compressed file is downloaded.
1919
cd ..
2020
mv ./tmp/*mage ./"$APP"
21-
mv ./tmp/*.zsync ./"$APP".zsync 2>/dev/null
21+
# Keep this space in sync with other installation scripts
2222
rm -R -f ./tmp || exit 1
2323
echo "$version" > ./version
2424
chmod a+x ./"$APP" || exit 1
2525

2626
# LINK TO PATH
2727
ln -s "/opt/$APP/$APP" "/usr/local/bin/$APP"
2828

29+
# SCRIPT TO UPDATE THE PROGRAM
30+
cat >> ./AM-updater << 'EOF'
31+
#!/bin/sh
32+
set -u
33+
APP=appimagehelper
34+
SITE="https://gitlab.com/posktomten/appimagehelper"
35+
version0=$(cat "/opt/$APP/version")
36+
version=$(curl -Ls https://bin.ceicer.com/appimagehelper/bin/ | grep -i "x86_64.*appimage" | tr '">< ' '\n' | grep "^[0-9]*-[0-9].*[0-9]$" | head -1)
37+
[ -n "$version" ] || { echo "Error getting link"; exit 1; }
38+
if command -v appimageupdatetool >/dev/null 2>&1; then
39+
cd "/opt/$APP" || exit 1
40+
appimageupdatetool -Or ./"$APP" && chmod a+x ./"$APP" && echo "$version" > ./version && exit 0
41+
fi
42+
if [ "$version" != "$version0" ]; then
43+
mkdir "/opt/$APP/tmp" && cd "/opt/$APP/tmp" || exit 1
44+
notify-send "A new version of $APP is available, please wait"
45+
wget "https://bin.ceicer.com/appimagehelper/bin/$(curl -Ls https://bin.ceicer.com/appimagehelper/bin/ | tr '">< ' '\n' | grep -i "^appimagehelper.*x86_64.*appimage$" | head -1)" || exit 1
46+
# Use tar fx ./*tar* here for example in this line in case a compressed file is downloaded.
47+
cd ..
48+
mv --backup=t ./tmp/*mage ./"$APP"
49+
chmod a+x ./"$APP" || exit 1
50+
echo "$version" > ./version
51+
rm -R -f ./*zs-old ./*.part ./tmp ./*~
52+
notify-send "$APP is updated!"
53+
else
54+
echo "Update not needed!"
55+
fi
56+
EOF
57+
chmod a+x ./AM-updater || exit 1
58+
2959
# LAUNCHER & ICON
3060
./"$APP" --appimage-extract *.desktop 1>/dev/null && mv ./squashfs-root/*.desktop ./"$APP".desktop
3161
./"$APP" --appimage-extract .DirIcon 1>/dev/null && mv ./squashfs-root/.DirIcon ./DirIcon

programs/x86_64/around

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@ chmod a+x ../remove || exit 1
1414
# DOWNLOAD AND PREPARE THE APP, $version is also used for updates
1515
version=$(wget -q https://repology.org/project/around/versions -O - | grep -i "new.*version" | head -1 | tr '><' '\n' | grep "^[0-9]")
1616
wget "https://downloads.around.co/Around.AppImage" || exit 1
17-
#wget "$version.zsync" 2> /dev/null # Comment out this line if you want to use zsync
17+
# Keep this space in sync with other installation scripts
1818
# Use tar fx ./*tar* here for example in this line in case a compressed file is downloaded.
1919
cd ..
2020
mv ./tmp/*mage ./"$APP"
21-
mv ./tmp/*.zsync ./"$APP".zsync 2>/dev/null
21+
# Keep this space in sync with other installation scripts
2222
rm -R -f ./tmp || exit 1
2323
echo "$version" > ./version
2424
chmod a+x ./"$APP" || exit 1
@@ -35,14 +35,17 @@ SITE="https://around.co"
3535
version0=$(cat "/opt/$APP/version")
3636
version=$(wget -q https://repology.org/project/around/versions -O - | grep -i "new.*version" | head -1 | tr '><' '\n' | grep "^[0-9]")
3737
[ -n "$version" ] || { echo "Error getting link"; exit 1; }
38-
if [ "$version" != "$version0" ] || [ -e /opt/"$APP"/*.zsync ]; then
38+
if command -v appimageupdatetool >/dev/null 2>&1; then
39+
cd "/opt/$APP" || exit 1
40+
appimageupdatetool -Or ./"$APP" && chmod a+x ./"$APP" && echo "$version" > ./version && exit 0
41+
fi
42+
if [ "$version" != "$version0" ]; then
3943
mkdir "/opt/$APP/tmp" && cd "/opt/$APP/tmp" || exit 1
40-
[ -e ../*.zsync ] || notify-send "A new version of $APP is available, please wait"
41-
[ -e ../*.zsync ] && wget "$version.zsync" 2>/dev/null || { wget "https://downloads.around.co/Around.AppImage" || exit 1; }
44+
notify-send "A new version of $APP is available, please wait"
45+
wget "https://downloads.around.co/Around.AppImage" || exit 1
4246
# Use tar fx ./*tar* here for example in this line in case a compressed file is downloaded.
4347
cd ..
44-
mv ./tmp/*.zsync ./"$APP".zsync 2>/dev/null || mv --backup=t ./tmp/*mage ./"$APP"
45-
[ -e ./*.zsync ] && { zsync ./"$APP".zsync || notify-send -u critical "zsync failed to update $APP"; }
48+
mv --backup=t ./tmp/*mage ./"$APP"
4649
chmod a+x ./"$APP" || exit 1
4750
echo "$version" > ./version
4851
rm -R -f ./*zs-old ./*.part ./tmp ./*~

programs/x86_64/artifact

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@ chmod a+x ../remove || exit 1
1414
# DOWNLOAD AND PREPARE THE APP, $version is also used for updates
1515
version=$(curl -Ls https://www.bitbreeds.com/artifact/index.php?pg=1 | grep -i "latest version" | head -1)
1616
wget "http://www.bitbreeds.com/file-downloads/com.bitbreeds.games.Artifact-x86_64.AppImage" || exit 1
17-
#wget "$version.zsync" 2> /dev/null # Comment out this line if you want to use zsync
17+
# Keep this space in sync with other installation scripts
1818
# Use tar fx ./*tar* here for example in this line in case a compressed file is downloaded.
1919
cd ..
2020
mv ./tmp/*mage ./"$APP"
21-
mv ./tmp/*.zsync ./"$APP".zsync 2>/dev/null
21+
# Keep this space in sync with other installation scripts
2222
rm -R -f ./tmp || exit 1
2323
echo "$version" > ./version
2424
chmod a+x ./"$APP" || exit 1
@@ -35,9 +35,15 @@ SITE="http://www.bitbreeds.com"
3535
version0=$(cat "/opt/$APP/version")
3636
version=$(curl -Ls https://www.bitbreeds.com/artifact/index.php?pg=1 | grep -i "latest version" | head -1)
3737
[ -n "$version" ] || { echo "Error getting link"; exit 1; }
38-
if [ "$version" != "$version0" ] || [ -e /opt/"$APP"/*.zsync ]; then
38+
if command -v appimageupdatetool >/dev/null 2>&1; then
39+
cd "/opt/$APP" || exit 1
40+
appimageupdatetool -Or ./"$APP" && chmod a+x ./"$APP" && echo "$version" > ./version && exit 0
41+
fi
42+
if [ "$version" != "$version0" ]; then
3943
mkdir "/opt/$APP/tmp" && cd "/opt/$APP/tmp" || exit 1
44+
notify-send "A new version of $APP is available, please wait"
4045
wget "http://www.bitbreeds.com/file-downloads/com.bitbreeds.games.Artifact-x86_64.AppImage" || exit 1
46+
# Use tar fx ./*tar* here for example in this line in case a compressed file is downloaded.
4147
cd ..
4248
mv --backup=t ./tmp/*mage ./"$APP"
4349
chmod a+x ./"$APP" || exit 1

programs/x86_64/artix

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,11 @@ chmod a+x ../remove || exit 1
1414
# DOWNLOAD AND PREPARE THE APP, $version is also used for updates
1515
version=$(curl -Ls https://www.artix.com/downloads/artixlauncher/ | grep -i "version" | head -1 | tr " " "\n" | grep -E -o "([0-9]{1,}\.)+[0-9]{1,}")
1616
wget "https://launch.artix.com/latest/Artix_Games_Launcher-x86_64.AppImage" || exit 1
17+
# Keep this space in sync with other installation scripts
1718
# Use tar fx ./*tar* here for example in this line in case a compressed file is downloaded.
1819
cd ..
1920
mv ./tmp/*mage ./"$APP"
20-
mv ./tmp/*.zsync ./"$APP".zsync 2>/dev/null
21+
# Keep this space in sync with other installation scripts
2122
rm -R -f ./tmp || exit 1
2223
echo "$version" > ./version
2324
chmod a+x ./"$APP" || exit 1
@@ -34,8 +35,13 @@ SITE="https://www.artix.com"
3435
version0=$(cat "/opt/$APP/version")
3536
version=$(curl -Ls https://www.artix.com/downloads/artixlauncher/ | grep -i "version" | head -1 | tr " " "\n" | grep -E -o "([0-9]{1,}\.)+[0-9]{1,}")
3637
[ -n "$version" ] || { echo "Error getting link"; exit 1; }
37-
if [ "$version" != "$version0" ] || [ -e /opt/"$APP"/*.zsync ]; then
38+
if command -v appimageupdatetool >/dev/null 2>&1; then
39+
cd "/opt/$APP" || exit 1
40+
appimageupdatetool -Or ./"$APP" && chmod a+x ./"$APP" && echo "$version" > ./version && exit 0
41+
fi
42+
if [ "$version" != "$version0" ]; then
3843
mkdir "/opt/$APP/tmp" && cd "/opt/$APP/tmp" || exit 1
44+
notify-send "A new version of $APP is available, please wait"
3945
wget "https://launch.artix.com/latest/Artix_Games_Launcher-x86_64.AppImage" || exit 1
4046
# Use tar fx ./*tar* here for example in this line in case a compressed file is downloaded.
4147
cd ..

programs/x86_64/astrofox

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@ chmod a+x ../remove || exit 1
1414
# DOWNLOAD AND PREPARE THE APP, $version is also used for updates
1515
version=$(curl -Ls https://api.github.com/repos/astrofox-io/astrofox/releases | sed 's/[()",{} ]/\n/g; s/v//g' | grep -i "https.*releases.*tag" | awk -F"/" 'FNR==1 {print $NF}')
1616
wget "https://files.astrofox.io/download/Astrofox-$version.AppImage" || exit 1
17-
#wget "$version.zsync" 2> /dev/null # Comment out this line if you want to use zsync
17+
# Keep this space in sync with other installation scripts
1818
# Use tar fx ./*tar* here for example in this line in case a compressed file is downloaded.
1919
cd ..
2020
mv ./tmp/*mage ./"$APP"
21-
mv ./tmp/*.zsync ./"$APP".zsync 2>/dev/null
21+
# Keep this space in sync with other installation scripts
2222
rm -R -f ./tmp || exit 1
2323
echo "$version" > ./version
2424
chmod a+x ./"$APP" || exit 1
@@ -35,10 +35,15 @@ SITE="https://astrofox.io"
3535
version0=$(cat "/opt/$APP/version")
3636
version=$(curl -Ls https://api.github.com/repos/astrofox-io/astrofox/releases | sed 's/[()",{} ]/\n/g; s/v//g' | grep -i "https.*releases.*tag" | awk -F"/" 'FNR==1 {print $NF}')
3737
[ -n "$version" ] || { echo "Error getting link"; exit 1; }
38-
if [ "$version" != "$version0" ] || [ -e /opt/"$APP"/*.zsync ]; then
38+
if command -v appimageupdatetool >/dev/null 2>&1; then
39+
cd "/opt/$APP" || exit 1
40+
appimageupdatetool -Or ./"$APP" && chmod a+x ./"$APP" && echo "$version" > ./version && exit 0
41+
fi
42+
if [ "$version" != "$version0" ]; then
3943
mkdir "/opt/$APP/tmp" && cd "/opt/$APP/tmp" || exit 1
4044
notify-send "A new version of $APP is available, please wait"
4145
wget "https://files.astrofox.io/download/Astrofox-$version.AppImage" || exit 1
46+
# Use tar fx ./*tar* here for example in this line in case a compressed file is downloaded.
4247
cd ..
4348
mv --backup=t ./tmp/*mage ./"$APP"
4449
chmod a+x ./"$APP" || exit 1

0 commit comments

Comments
 (0)