Skip to content

Commit 4c153c3

Browse files
authored
Update 7 apps
1 parent 58cfcff commit 4c153c3

File tree

7 files changed

+24
-32
lines changed

7 files changed

+24
-32
lines changed

programs/x86_64/chatpad-ai

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://api.rl.pkgforge.dev/project/$APP/versions" | grep -i "version" | grep -i "new\|uniq" | sort | head -1 | tr '><' '\n' | grep "^[0-9]")
16-
wget --user-agent="X11; Linux x86_64;" "$(curl -Ls https://aur.archlinux.org/packages/chatpad-ai-bin | grep "https://dl" | grep -Eo "(http|https)://[a-zA-Z0-9./?=_%:-]*")" -O "$APP".AppImage || exit 1
15+
version=$(curl -Ls "https://api.rl.pkgforge.dev/project/chatpad-ai/versions" | grep -i "version" | grep -i "new\|uniq" | sort | head -1 | tr '><' '\n' | grep "^[0-9]")
16+
wget --user-agent="X11; Linux x86_64;" "$(curl -Ls https://raw.githubusercontent.com/deiucanta/chatpad/main/README.md | tr '"<> ' '\n' | grep -i "http.*dl.todesktop")" -O chatpad-ai.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=chatpad-ai
3434
SITE="https://chatpad.ai"
3535
version0=$(cat "/opt/$APP/version")
36-
version=$(curl -Ls "https://api.rl.pkgforge.dev/project/$APP/versions" | grep -i "version" | grep -i "new\|uniq" | sort | head -1 | tr '><' '\n' | grep "^[0-9]")
36+
version=$(curl -Ls "https://api.rl.pkgforge.dev/project/chatpad-ai/versions" | grep -i "version" | grep -i "new\|uniq" | sort | head -1 | tr '><' '\n' | grep "^[0-9]")
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 --user-agent="X11; Linux x86_64;" "$(curl -Ls https://aur.archlinux.org/packages/chatpad-ai-bin | grep "https://dl" | grep -Eo "(http|https)://[a-zA-Z0-9./?=_%:-]*")" -O "$APP".AppImage || exit 1
45+
wget --user-agent="X11; Linux x86_64;" "$(curl -Ls https://raw.githubusercontent.com/deiucanta/chatpad/main/README.md | tr '"<> ' '\n' | grep -i "http.*dl.todesktop")" -O chatpad-ai.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"

programs/x86_64/exodus

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +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=$(wget -q https://aur.archlinux.org/packages/exodus -O - | tr '"' '\n' | grep "http" | grep ".zip$" | head -1)
16-
if wget --version | head -1 | grep -q ' 1.'; then
17-
wget --user-agent="Mozilla/5.0" "$version" || exit 1
18-
else
19-
wget "$version" || exit 1
20-
fi
15+
version=$(wget --https-only -qO- --user-agent="X11; Linux x86_64;" https://www.exodus.com/download/ | tr '">< ' '\n' | grep -i "download.*hashes" | head -1 | tr '-' '\n' | sed 's/\.txt//g' | grep "^[0-9]")
16+
wget --user-agent="Mozilla/5.0" "https://downloads.exodus.com/releases/exodus-linux-x64-$version.zip" || exit 1
2117
[ -e ./*7z ] && 7z x ./*7z && rm -f ./*7z
2218
[ -e ./*tar.* ] && tar fx ./*tar.* && rm -f ./*tar.*
2319
[ -e ./*zip ] && unzip -qq ./*zip 1>/dev/null && rm -f ./*zip
@@ -37,16 +33,12 @@ set -u
3733
APP=exodus
3834
SITE="https://exodus.com"
3935
version0=$(cat "/opt/$APP/version")
40-
version=$(wget -q https://aur.archlinux.org/packages/exodus -O - | tr '"' '\n' | grep "http" | grep ".zip$" | head -1)
36+
version=$(wget --https-only -qO- --user-agent="X11; Linux x86_64;" https://www.exodus.com/download/ | tr '">< ' '\n' | grep -i "download.*hashes" | head -1 | tr '-' '\n' | sed 's/\.txt//g' | grep "^[0-9]")
4137
[ -n "$version" ] || { echo "Error getting link"; exit 1; }
4238
if [ "$version" != "$version0" ]; then
4339
mkdir "/opt/$APP/tmp" && cd "/opt/$APP/tmp" || exit 1
4440
notify-send "A new version of $APP is available, please wait"
45-
if wget --version | head -1 | grep -q ' 1.'; then
46-
wget --user-agent="Mozilla/5.0" "$version" || exit 1
47-
else
48-
wget "$version" || exit 1
49-
fi
41+
wget --user-agent="Mozilla/5.0" "https://downloads.exodus.com/releases/exodus-linux-x64-$version.zip" || exit 1
5042
[ -e ./*7z ] && 7z x ./*7z && rm -f ./*7z
5143
[ -e ./*tar.* ] && tar fx ./*tar.* && rm -f ./*tar.*
5244
[ -e ./*zip ] && unzip -qq ./*zip 1>/dev/null && rm -f ./*zip

programs/x86_64/goland

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=$(wget -q https://aur.archlinux.org/packages/goland -O - | tr '"' '\n' | grep "http" | grep "tar.gz$" | head -1)
16-
wget "$version" || exit 1
15+
version=$(curl -Ls "https://raw.githubusercontent.com/chaotic-aur/packages/main/goland/PKGBUILD" | grep "^pkgver" | cut -c 8-)
16+
wget "https://download.jetbrains.com/go/goland-$version.tar.gz" || exit 1
1717
[ -e ./*7z ] && 7z x ./*7z && rm -f ./*7z
1818
[ -e ./*tar.* ] && tar fx ./*tar.* && rm -f ./*tar.*
1919
[ -e ./*zip ] && unzip -qq ./*zip 1>/dev/null && rm -f ./*zip
@@ -33,12 +33,12 @@ set -u
3333
APP=goland
3434
SITE="https://www.jetbrains.com"
3535
version0=$(cat "/opt/$APP/version")
36-
version=$(wget -q https://aur.archlinux.org/packages/goland -O - | tr '"' '\n' | grep "http" | grep "tar.gz$" | head -1)
36+
version=$(curl -Ls "https://raw.githubusercontent.com/chaotic-aur/packages/main/goland/PKGBUILD" | grep "^pkgver" | cut -c 8-)
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 "$version" || exit 1
41+
wget "https://download.jetbrains.com/go/goland-$version.tar.gz" || exit 1
4242
[ -e ./*7z ] && 7z x ./*7z && rm -f ./*7z
4343
[ -e ./*tar.* ] && tar fx ./*tar.* && rm -f ./*tar.*
4444
[ -e ./*zip ] && unzip -qq ./*zip 1>/dev/null && rm -f ./*zip

programs/x86_64/js-design

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/js-design-appimage | tr '">< ' '\n' | grep -i "http.*download.*appimage$" | head -1)
16-
wget "$version" || exit 1
15+
version=$(curl -Ls "https://raw.githubusercontent.com/zxp19821005/My_AUR_Files/refs/heads/main/js-design-bin/PKGBUILD" | grep "^pkgver" | cut -c 8-)
16+
wget "$(curl -Ls "https://raw.githubusercontent.com/zxp19821005/My_AUR_Files/refs/heads/main/js-design-bin/PKGBUILD" | grep -Eo "(http|https)://[a-zA-Z0-9./?=_%:-]*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=js-design
3434
SITE="https://js.design"
3535
version0=$(cat "/opt/$APP/version")
36-
version=$(curl -Ls https://aur.archlinux.org/packages/js-design-appimage | tr '">< ' '\n' | grep -i "http.*download.*appimage$" | head -1)
36+
version=$(curl -Ls "https://raw.githubusercontent.com/zxp19821005/My_AUR_Files/refs/heads/main/js-design-bin/PKGBUILD" | grep "^pkgver" | cut -c 8-)
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 "$(curl -Ls "https://raw.githubusercontent.com/zxp19821005/My_AUR_Files/refs/heads/main/js-design-bin/PKGBUILD" | grep -Eo "(http|https)://[a-zA-Z0-9./?=_%:-]*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"

programs/x86_64/linuxqq

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/linuxqq-appimage | tr '">< ' '\n' | grep -i "^http.*x86_64.*appimage$" | head -1)
15+
version=$(curl -s https://im.qq.com/rainbow/linuxQQDownload | tr '">< ' '\n' | grep -i "http.*x86_64.*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=linuxqq
3434
SITE="https://im.qq.com/linuxqq"
3535
version0=$(cat "/opt/$APP/version")
36-
version=$(curl -Ls https://aur.archlinux.org/packages/linuxqq-appimage | tr '">< ' '\n' | grep -i "^http.*x86_64.*appimage$" | head -1)
36+
version=$(curl -s https://im.qq.com/rainbow/linuxQQDownload | tr '">< ' '\n' | grep -i "http.*x86_64.*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/pureref

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/cgit/aur.git/plain/PKGBUILD?h=pureref" | grep "^pkgver=" | tr '=' '\n' | grep "^[0-9]")
15+
version=$(curl -s "https://www.pureref.com/changelog.php" | grep -o -m 1 "Version [0-9].[0-9].[0-9]" | awk '{print $2}'| head -n 1)
1616
wget "https://www.pureref.com/files/build.php?build=LINUX64.deb&version=${version}&downloadKey=$(curl -A 'AUR PKGBUILD/Please contact maintainer if there is an issue' -s https://www.pureref.com/download.php | awk '/setupPaymentSystem/,/);/' | grep -zoP '\s+"\K[A-z0-9%]+?",' | sed 's/...$//')" -O pureref.deb || exit 1
1717
command -v ar 1>/dev/null && ar x pureref.deb || echo "ERROR, \"ar\" command not found, exiting"
1818
command -v tar 1>/dev/null && tar xf data.tar.xz || echo "ERROR, \"tar\" command not found, exiting"
@@ -33,7 +33,7 @@ set -u
3333
APP=pureref
3434
SITE="https://www.pureref.com"
3535
version0=$(cat "/opt/$APP/version")
36-
version=$(curl -Ls "https://aur.archlinux.org/cgit/aur.git/plain/PKGBUILD?h=pureref" | grep "^pkgver=" | tr '=' '\n' | grep "^[0-9]")
36+
version=$(curl -s "https://www.pureref.com/changelog.php" | grep -o -m 1 "Version [0-9].[0-9].[0-9]" | awk '{print $2}'| head -n 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/rock.so

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=$(echo https://desktop.rock.so/Rock-$(curl -Ls https://aur.archlinux.org/cgit/aur.git/plain/PKGBUILD?h=rock.so | grep pkgver= | cut -d'=' -f2).AppImage)
16-
wget "$version" || exit 1
15+
version=$(curl -Ls "https://api.rl.pkgforge.dev/project/rock.so/versions" | grep -i "version" | grep -i "new\|uniq" | sort | head -1 | tr '><' '\n' | grep "^[0-9]")
16+
wget "https://desktop.rock.so/Rock-$version.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=rock.so
3434
SITE="https://www.rock.so/"
3535
version0=$(cat "/opt/$APP/version")
36-
version=$(echo https://desktop.rock.so/Rock-$(curl -Ls https://aur.archlinux.org/cgit/aur.git/plain/PKGBUILD?h=rock.so | grep pkgver= | cut -d'=' -f2).AppImage)
36+
version=$(curl -Ls "https://api.rl.pkgforge.dev/project/rock.so/versions" | grep -i "version" | grep -i "new\|uniq" | sort | head -1 | tr '><' '\n' | grep "^[0-9]")
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://desktop.rock.so/Rock-$version.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)