Skip to content

Commit b7b6b90

Browse files
authored
Update 8 apps
1 parent 4200b39 commit b7b6b90

File tree

9 files changed

+41
-41
lines changed

9 files changed

+41
-41
lines changed

programs/aarch64/ryujinx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ 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=$(curl -Ls https://git.ryujinx.app/api/v4/projects/1/releases/ | tr '?,>< ' '\n' | grep -i "tag_name" | head -1 | tr '"' '\n' | grep [0-9])
16-
wget "$(curl -Ls https://git.ryujinx.app/api/v4/projects/1/releases/ | tr '">< ' '\n' | grep -i "^http.*appimage$" | grep -i "arm\|aarch" | head -1)" || exit 1
15+
version=$(curl -Ls https://git.ryujinx.app/api/v4/projects/1/releases/ | tr '">< ' '\n' | grep -i "^http.*appimage$" | grep -i "arm\|aarch" | head -1)
16+
wget "$version" || exit 1
1717
# 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 ..
@@ -33,7 +33,7 @@ set -u
3333
APP=ryujinx
3434
SITE="https://ryujinx.app/"
3535
version0=$(cat "/opt/$APP/version")
36-
version=$(curl -Ls https://git.ryujinx.app/api/v4/projects/1/releases/ | tr '?,>< ' '\n' | grep -i "tag_name" | head -1 | tr '"' '\n' | grep [0-9])
36+
version=$(curl -Ls https://git.ryujinx.app/api/v4/projects/1/releases/ | tr '">< ' '\n' | grep -i "^http.*appimage$" | grep -i "arm\|aarch" | head -1)
3737
[ -n "$version" ] || { echo "Error getting link"; exit 1; }
3838
if command -v appimageupdatetool >/dev/null 2>&1; then
3939
cd "/opt/$APP" || exit 1
@@ -42,7 +42,7 @@ fi
4242
if [ "$version" != "$version0" ]; then
4343
mkdir "/opt/$APP/tmp" && cd "/opt/$APP/tmp" || exit 1
4444
notify-send "A new version of $APP is available, please wait"
45-
wget "$(curl -Ls https://git.ryujinx.app/api/v4/projects/1/releases/ | tr '">< ' '\n' | grep -i "^http.*appimage$" | grep -i "arm\|aarch" | head -1)" || exit 1
45+
wget "$version" || exit 1
4646
# Use tar fx ./*tar* here for example in this line in case a compressed file is downloaded.
4747
cd ..
4848
mv --backup=t ./tmp/*mage ./"$APP"

programs/x86_64/ryujinx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ 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=$(curl -Ls https://git.ryujinx.app/api/v4/projects/1/releases/ | tr '?,>< ' '\n' | grep -i "tag_name" | head -1 | tr '"' '\n' | grep [0-9])
16-
wget "$(curl -Ls https://git.ryujinx.app/api/v4/projects/1/releases/ | tr '">< ' '\n' | grep -i "^http.*appimage$" | grep -vi "arm\|aarch" | head -1)" || exit 1
15+
version=$(curl -Ls https://git.ryujinx.app/api/v4/projects/1/releases/ | tr '">< ' '\n' | grep -i "^http.*appimage$" | grep -vi "arm\|aarch" | head -1)
16+
wget "$version" || exit 1
1717
# 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 ..
@@ -33,7 +33,7 @@ set -u
3333
APP=ryujinx
3434
SITE="https://ryujinx.app/"
3535
version0=$(cat "/opt/$APP/version")
36-
version=$(curl -Ls https://git.ryujinx.app/api/v4/projects/1/releases/ | tr '?,>< ' '\n' | grep -i "tag_name" | head -1 | tr '"' '\n' | grep [0-9])
36+
version=$(curl -Ls https://git.ryujinx.app/api/v4/projects/1/releases/ | tr '">< ' '\n' | grep -i "^http.*appimage$" | grep -vi "arm\|aarch" | head -1)
3737
[ -n "$version" ] || { echo "Error getting link"; exit 1; }
3838
if command -v appimageupdatetool >/dev/null 2>&1; then
3939
cd "/opt/$APP" || exit 1
@@ -42,7 +42,7 @@ fi
4242
if [ "$version" != "$version0" ]; then
4343
mkdir "/opt/$APP/tmp" && cd "/opt/$APP/tmp" || exit 1
4444
notify-send "A new version of $APP is available, please wait"
45-
wget "$(curl -Ls https://git.ryujinx.app/api/v4/projects/1/releases/ | tr '">< ' '\n' | grep -i "^http.*appimage$" | grep -vi "arm\|aarch" | head -1)" || exit 1
45+
wget "$version" || exit 1
4646
# Use tar fx ./*tar* here for example in this line in case a compressed file is downloaded.
4747
cd ..
4848
mv --backup=t ./tmp/*mage ./"$APP"

programs/x86_64/ryujinx-canary

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ 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=$(curl -Ls https://git.ryujinx.app/api/v4/projects/68/releases/ | tr '?,>< ' '\n' | grep -i "tag_name" | head -1 | tr '"' '\n' | grep [0-9])
16-
wget "$(curl -Ls https://git.ryujinx.app/api/v4/projects/68/releases/ | tr '">< ' '\n' | grep -i "^http.*appimage$" | grep -vi "arm\|aarch" | head -1)" || exit 1
15+
version=$(curl -Ls https://git.ryujinx.app/api/v4/projects/68/releases/ | tr '">< ' '\n' | grep -i "^http.*appimage$" | grep -vi "arm\|aarch" | head -1)
16+
wget "$version" || exit 1
1717
# 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 ..
@@ -33,7 +33,7 @@ set -u
3333
APP=ryujinx-canary
3434
SITE="https://ryujinx.app/"
3535
version0=$(cat "/opt/$APP/version")
36-
version=$(curl -Ls https://git.ryujinx.app/api/v4/projects/68/releases/ | tr '?,>< ' '\n' | grep -i "tag_name" | head -1 | tr '"' '\n' | grep [0-9])
36+
version=$(curl -Ls https://git.ryujinx.app/api/v4/projects/68/releases/ | tr '">< ' '\n' | grep -i "^http.*appimage$" | grep -vi "arm\|aarch" | head -1)
3737
[ -n "$version" ] || { echo "Error getting link"; exit 1; }
3838
if command -v appimageupdatetool >/dev/null 2>&1; then
3939
cd "/opt/$APP" || exit 1
@@ -42,7 +42,7 @@ fi
4242
if [ "$version" != "$version0" ]; then
4343
mkdir "/opt/$APP/tmp" && cd "/opt/$APP/tmp" || exit 1
4444
notify-send "A new version of $APP is available, please wait"
45-
wget "$(curl -Ls https://git.ryujinx.app/api/v4/projects/68/releases/ | tr '">< ' '\n' | grep -i "^http.*appimage$" | grep -vi "arm\|aarch" | head -1)" || exit 1
45+
wget "$version" || exit 1
4646
# Use tar fx ./*tar* here for example in this line in case a compressed file is downloaded.
4747
cd ..
4848
mv --backup=t ./tmp/*mage ./"$APP"

programs/x86_64/vikunja

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# AM INSTALL SCRIPT VERSION 3.5
44
set -u
55
APP=vikunja
6-
SITE="https://vikunja.io"
6+
SITE="go-vikunja/vikunja"
77

88
# CREATE DIRECTORIES AND ADD REMOVER
99
[ -n "$APP" ] && mkdir -p "/opt/$APP/tmp" "/opt/$APP/icons" && cd "/opt/$APP/tmp" || exit 1
@@ -12,8 +12,8 @@ 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=$(curl -Ls https://dl.vikunja.io/desktop | grep class | grep name | head -1 | grep -o -P '(?<=>).*(?=<)')
16-
wget "https://dl.vikunja.io/desktop/$version/Vikunja%20Desktop-v$version.AppImage" || exit 1
15+
version=$(curl -Ls https://api.github.com/repos/go-vikunja/vikunja/releases | sed 's/[()",{} ]/\n/g' | grep -oi "https.*mage$" | grep -vi "i386\|i686\|aarch64\|arm64\|armv7l" | head -1)
16+
wget "$version" || exit 1
1717
# 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 ..
@@ -31,9 +31,9 @@ cat >> ./AM-updater << 'EOF'
3131
#!/bin/sh
3232
set -u
3333
APP=vikunja
34-
SITE="https://vikunja.io"
34+
SITE="go-vikunja/vikunja"
3535
version0=$(cat "/opt/$APP/version")
36-
version=$(curl -Ls https://dl.vikunja.io/desktop | grep class | grep name | head -1 | grep -o -P '(?<=>).*(?=<)')
36+
version=$(curl -Ls https://api.github.com/repos/go-vikunja/vikunja/releases | sed 's/[()",{} ]/\n/g' | grep -oi "https.*mage$" | grep -vi "i386\|i686\|aarch64\|arm64\|armv7l" | head -1)
3737
[ -n "$version" ] || { echo "Error getting link"; exit 1; }
3838
if command -v appimageupdatetool >/dev/null 2>&1; then
3939
cd "/opt/$APP" || exit 1
@@ -42,7 +42,7 @@ fi
4242
if [ "$version" != "$version0" ]; then
4343
mkdir "/opt/$APP/tmp" && cd "/opt/$APP/tmp" || exit 1
4444
notify-send "A new version of $APP is available, please wait"
45-
wget "https://dl.vikunja.io/desktop/$version/Vikunja%20Desktop-v$version.AppImage" || exit 1
45+
wget "$version" || exit 1
4646
# Use tar fx ./*tar* here for example in this line in case a compressed file is downloaded.
4747
cd ..
4848
mv --backup=t ./tmp/*mage ./"$APP"

programs/x86_64/wazo-desktop

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ 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=$(curl --globoff --location --head -qfsS -X 'GET' --retry 3 --header "Authorization: Bearer QQ==" https://mirror.wazo.io/desktop/wazo-desktop-latest.AppImage | tr '">< ' '\n' | grep -i "http.*appimage" | head -1)
16-
wget https://mirror.wazo.io/desktop/wazo-desktop-latest.AppImage || exit 1
15+
version=$(curl -I https://mirror.wazo.io/desktop/wazo-desktop-latest.AppImage 2>/dev/null | grep -Eoi "https.*appimage" | head -1)
16+
wget "$version" || exit 1
1717
# 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 ..
@@ -33,7 +33,7 @@ set -u
3333
APP=wazo-desktop
3434
SITE="https://wazo.io"
3535
version0=$(cat "/opt/$APP/version")
36-
version=$(curl --globoff --location --head -qfsS -X 'GET' --retry 3 --header "Authorization: Bearer QQ==" https://mirror.wazo.io/desktop/wazo-desktop-latest.AppImage | tr '">< ' '\n' | grep -i "http.*appimage" | head -1)
36+
version=$(curl -I https://mirror.wazo.io/desktop/wazo-desktop-latest.AppImage 2>/dev/null | grep -Eoi "https.*appimage" | head -1)
3737
[ -n "$version" ] || { echo "Error getting link"; exit 1; }
3838
if command -v appimageupdatetool >/dev/null 2>&1; then
3939
cd "/opt/$APP" || exit 1
@@ -42,7 +42,7 @@ fi
4242
if [ "$version" != "$version0" ]; then
4343
mkdir "/opt/$APP/tmp" && cd "/opt/$APP/tmp" || exit 1
4444
notify-send "A new version of $APP is available, please wait"
45-
wget https://mirror.wazo.io/desktop/wazo-desktop-latest.AppImage || exit 1
45+
wget "$version" || exit 1
4646
# Use tar fx ./*tar* here for example in this line in case a compressed file is downloaded.
4747
cd ..
4848
mv --backup=t ./tmp/*mage ./"$APP"

programs/x86_64/wireframesketcher

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ 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=$(curl -Ls https://wireframesketcher.com/download.html | tr '"' '\n' | grep -i "current version" | tr '>< ' '\n' | grep "^[0-9].*" | head -1)
16-
wget "https://wireframesketcher.com/downloads/WireframeSketcher-latest-linux.x86_64.tar.gz" || exit 1
15+
version=$(curl -I https://wireframesketcher.com/downloads/WireframeSketcher-latest-linux.x86_64.tar.gz 2>/dev/null | grep -Eio "https.*tar.gz" | head -1)
16+
wget "$version" || exit 1
1717
[ -e ./*7z ] && 7z x ./*7z && rm -f ./*7z
1818
[ -e ./*tar.* ] && tar fx ./*tar.* 2>/dev/null && rm -f ./*tar.*
1919
[ -e ./*zip ] && unzip -qq ./*zip 1>/dev/null && rm -f ./*zip
@@ -33,12 +33,12 @@ set -u
3333
APP=wireframesketcher
3434
SITE="https://wireframesketcher.com"
3535
version0=$(cat "/opt/$APP/version")
36-
version=$(curl -Ls https://wireframesketcher.com/download.html | tr '"' '\n' | grep -i "current version" | tr '>< ' '\n' | grep "^[0-9].*" | head -1)
36+
version=$(curl -I https://wireframesketcher.com/downloads/WireframeSketcher-latest-linux.x86_64.tar.gz 2>/dev/null | grep -Eio "https.*tar.gz" | head -1)
3737
[ -n "$version" ] || { echo "Error getting link"; exit 1; }
3838
if [ "$version" != "$version0" ]; then
3939
mkdir "/opt/$APP/tmp" && cd "/opt/$APP/tmp" || exit 1
4040
notify-send "A new version of $APP is available, please wait"
41-
wget "https://wireframesketcher.com/downloads/WireframeSketcher-latest-linux.x86_64.tar.gz" || exit 1
41+
wget "$version" || exit 1
4242
[ -e ./*7z ] && 7z x ./*7z && rm -f ./*7z
4343
[ -e ./*tar.* ] && tar fx ./*tar.* 2>/dev/null && rm -f ./*tar.*
4444
[ -e ./*zip ] && unzip -qq ./*zip 1>/dev/null && rm -f ./*zip

programs/x86_64/xnconvert

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ 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=$(curl -Ls https://download.xnview.com/ | tr '">< ' '\n' | grep -i appimage | head -1)
16-
wget "https://download.xnview.com/$(curl -Ls https://download.xnview.com/ | tr '">< ' '\n' | grep -i appimage | head -1)" || exit 1
15+
version=$(echo "https://download.xnview.com/old_versions/XnConvert/$(curl -Ls https://download.xnview.com/old_versions/XnConvert/ | tr '">< ' '\n' | grep -i appimage | head -1)")
16+
wget "$version" || exit 1
1717
# 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 ..
@@ -33,7 +33,7 @@ set -u
3333
APP=xnconvert
3434
SITE="https://www.xnview.com"
3535
version0=$(cat "/opt/$APP/version")
36-
version=$(curl -Ls https://download.xnview.com/ | tr '">< ' '\n' | grep -i appimage | head -1)
36+
version=$(echo "https://download.xnview.com/old_versions/XnConvert/$(curl -Ls https://download.xnview.com/old_versions/XnConvert/ | tr '">< ' '\n' | grep -i appimage | head -1)")
3737
[ -n "$version" ] || { echo "Error getting link"; exit 1; }
3838
if command -v appimageupdatetool >/dev/null 2>&1; then
3939
cd "/opt/$APP" || exit 1
@@ -42,7 +42,7 @@ fi
4242
if [ "$version" != "$version0" ]; then
4343
mkdir "/opt/$APP/tmp" && cd "/opt/$APP/tmp" || exit 1
4444
notify-send "A new version of $APP is available, please wait"
45-
wget "https://download.xnview.com/$(curl -Ls https://download.xnview.com/ | tr '">< ' '\n' | grep -i appimage | head -1)" || exit 1
45+
wget "$version" || exit 1
4646
# Use tar fx ./*tar* here for example in this line in case a compressed file is downloaded.
4747
cd ..
4848
mv --backup=t ./tmp/*mage ./"$APP"
@@ -72,6 +72,6 @@ while [ "$COUNT" -lt 10 ]; do # Tries to get the actual icon/desktop if it is a
7272
[ ! -L ./"$APP".desktop ] && [ ! -L ./DirIcon ] && break
7373
COUNT=$((COUNT + 1))
7474
done
75-
sed -i "s#Exec=[^ ]*#Exec=$APP#g; s#Icon=.*#Icon=/opt/$APP/icons/$APP#g" ./"$APP".desktop
75+
sed -i "s#Exec=[^ ]*#Exec=$APP#g; s#Icon=.*#Icon=/opt/$APP/icons/$APP#g; s# --no-sandbox##g" ./"$APP".desktop
7676
mv ./"$APP".desktop /usr/local/share/applications/"$APP"-AM.desktop && mv ./DirIcon ./icons/"$APP" 1>/dev/null
7777
rm -R -f ./squashfs-root

programs/x86_64/xnviewmp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ 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=$(curl -Ls curl -Ls https://www.xnview.com/en/xnview-mp/ | tr '><' '\n' | grep -i "^XnView .* [0-9]" | tr ' ' '\n' | grep "^[0-9]")
16-
wget "https://www.xnview.com$(curl -Ls https://www.xnview.com/en/xnview-mp/ | tr '">< ' '\n' | grep -i "appimage$" | head -1)" || exit 1
15+
version=$(echo "https://download.xnview.com/old_versions/XnView_MP/$(curl -Ls https://download.xnview.com/old_versions/XnView_MP/ | tr '">< ' '\n' | grep -i appimage | head -1)")
16+
wget "$version" || exit 1
1717
# 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 ..
@@ -33,7 +33,7 @@ set -u
3333
APP=xnviewmp
3434
SITE="https://www.xnview.com"
3535
version0=$(cat "/opt/$APP/version")
36-
version=$(curl -Ls curl -Ls https://www.xnview.com/en/xnview-mp/ | tr '><' '\n' | grep -i "^XnView .* [0-9]" | tr ' ' '\n' | grep "^[0-9]")
36+
version=$(echo "https://download.xnview.com/old_versions/XnView_MP/$(curl -Ls https://download.xnview.com/old_versions/XnView_MP/ | tr '">< ' '\n' | grep -i appimage | head -1)")
3737
[ -n "$version" ] || { echo "Error getting link"; exit 1; }
3838
if command -v appimageupdatetool >/dev/null 2>&1; then
3939
cd "/opt/$APP" || exit 1
@@ -42,7 +42,7 @@ fi
4242
if [ "$version" != "$version0" ]; then
4343
mkdir "/opt/$APP/tmp" && cd "/opt/$APP/tmp" || exit 1
4444
notify-send "A new version of $APP is available, please wait"
45-
wget "https://www.xnview.com$(curl -Ls https://www.xnview.com/en/xnview-mp/ | tr '">< ' '\n' | grep -i "appimage$" | head -1)" || exit 1
45+
wget "$version" || exit 1
4646
# Use tar fx ./*tar* here for example in this line in case a compressed file is downloaded.
4747
cd ..
4848
mv --backup=t ./tmp/*mage ./"$APP"
@@ -72,6 +72,6 @@ while [ "$COUNT" -lt 10 ]; do # Tries to get the actual icon/desktop if it is a
7272
[ ! -L ./"$APP".desktop ] && [ ! -L ./DirIcon ] && break
7373
COUNT=$((COUNT + 1))
7474
done
75-
sed -i "s#Exec=[^ ]*#Exec=$APP#g; s#Icon=.*#Icon=/opt/$APP/icons/$APP#g" ./"$APP".desktop
75+
sed -i "s#Exec=[^ ]*#Exec=$APP#g; s#Icon=.*#Icon=/opt/$APP/icons/$APP#g; s# --no-sandbox##g" ./"$APP".desktop
7676
mv ./"$APP".desktop /usr/local/share/applications/"$APP"-AM.desktop && mv ./DirIcon ./icons/"$APP" 1>/dev/null
7777
rm -R -f ./squashfs-root

programs/x86_64/yubikey-manager

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# AM INSTALL SCRIPT VERSION 3.5
44
set -u
55
APP=yubikey-manager
6-
SITE="https://developers.yubico.com"
6+
SITE="https://yubico.com"
77

88
# CREATE DIRECTORIES AND ADD REMOVER
99
[ -n "$APP" ] && mkdir -p "/opt/$APP/tmp" "/opt/$APP/icons" && cd "/opt/$APP/tmp" || exit 1
@@ -12,7 +12,7 @@ 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=$(echo https://developers.yubico.com/yubikey-manager-qt/Releases/yubikey-manager-qt-latest-linux.AppImage)
15+
version=$(curl -I "https://developers.yubico.com/yubikey-manager-qt/Releases/yubikey-manager-qt-latest-linux.AppImage" 2>/dev/null | grep -Eoi "https.*releases.*appimage")
1616
wget "$version" || exit 1
1717
# 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.
@@ -31,9 +31,9 @@ cat >> ./AM-updater << 'EOF'
3131
#!/bin/sh
3232
set -u
3333
APP=yubikey-manager
34-
SITE="https://developers.yubico.com"
34+
SITE="https://yubico.com"
3535
version0=$(cat "/opt/$APP/version")
36-
version=$(echo https://developers.yubico.com/yubikey-manager-qt/Releases/yubikey-manager-qt-latest-linux.AppImage)
36+
version=$(curl -I "https://developers.yubico.com/yubikey-manager-qt/Releases/yubikey-manager-qt-latest-linux.AppImage" 2>/dev/null | grep -Eoi "https.*releases.*appimage")
3737
[ -n "$version" ] || { echo "Error getting link"; exit 1; }
3838
if command -v appimageupdatetool >/dev/null 2>&1; then
3939
cd "/opt/$APP" || exit 1
@@ -72,6 +72,6 @@ while [ "$COUNT" -lt 10 ]; do # Tries to get the actual icon/desktop if it is a
7272
[ ! -L ./"$APP".desktop ] && [ ! -L ./DirIcon ] && break
7373
COUNT=$((COUNT + 1))
7474
done
75-
sed -i "s#Exec=[^ ]*#Exec=$APP#g; s#Icon=.*#Icon=/opt/$APP/icons/$APP#g" ./"$APP".desktop
75+
sed -i "s#Exec=[^ ]*#Exec=$APP#g; s#Icon=.*#Icon=/opt/$APP/icons/$APP#g; s# --no-sandbox##g" ./"$APP".desktop
7676
mv ./"$APP".desktop /usr/local/share/applications/"$APP"-AM.desktop && mv ./DirIcon ./icons/"$APP" 1>/dev/null
7777
rm -R -f ./squashfs-root

0 commit comments

Comments
 (0)