Skip to content

Commit 58cfcff

Browse files
authored
Update 2 apps
1 parent 17234e6 commit 58cfcff

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

programs/x86_64/cryptocam-companion

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -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=$(curl -Ls https://aur.archlinux.org/packages/cryptocam-companion-appimage | grep -Eo "(http|https)://[a-zA-Z0-9./?=_%:-]*" | grep -i appimage | grep -w -v archlinux | head -1 | rev | cut -c 14- | rev)
15+
version=$(curl -Ls https://gitlab.com/api/v4/projects/19627825/releases/ | tr '?><{}" ' '\n' | grep -i "http.*appimage$" | head -1)
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.
@@ -33,7 +33,7 @@ set -u
3333
APP=cryptocam-companion
3434
SITE="https://gitlab.com/cryptocam"
3535
version0=$(cat "/opt/$APP/version")
36-
version=$(curl -Ls https://aur.archlinux.org/packages/cryptocam-companion-appimage | grep -Eo "(http|https)://[a-zA-Z0-9./?=_%:-]*" | grep -i appimage | grep -w -v archlinux | head -1 | rev | cut -c 14- | rev)
36+
version=$(curl -Ls https://gitlab.com/api/v4/projects/19627825/releases/ | tr '?><{}" ' '\n' | grep -i "http.*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

programs/x86_64/dezor

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://aur.archlinux.org/packages/dezor | tr '">< ' '\n' | grep -i http.*x86_64.*appimage$)
16-
wget "$version" || exit 1
15+
version=$(curl --globoff --location --head -qfsS -X 'GET' --retry 3 --header "Authorization: Bearer QQ==" "https://www.dezor.net/update/download?app=net.dezor.browser&platform=linux&arch=x86_64" | tr '">< ' '\n' | grep -i "http.*appimage")
16+
wget "https://www.dezor.net/update/download?app=net.dezor.browser&platform=linux&arch=x86_64" -O dezor.AppImage || 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=dezor
3434
SITE="https://dezor.net"
3535
version0=$(cat "/opt/$APP/version")
36-
version=$(curl -Ls https://aur.archlinux.org/packages/dezor | tr '">< ' '\n' | grep -i http.*x86_64.*appimage$)
36+
version=$(curl --globoff --location --head -qfsS -X 'GET' --retry 3 --header "Authorization: Bearer QQ==" "https://www.dezor.net/update/download?app=net.dezor.browser&platform=linux&arch=x86_64" | tr '">< ' '\n' | grep -i "http.*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
@@ -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 "$version" || exit 1
45+
wget "https://www.dezor.net/update/download?app=net.dezor.browser&platform=linux&arch=x86_64" -O dezor.AppImage || 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"

0 commit comments

Comments
 (0)