Skip to content

Commit 83ba4f0

Browse files
authored
Replace repology.org with api.rl.pkgforge.dev (#1401)
1 parent 8e2551f commit 83ba4f0

Some content is hidden

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

61 files changed

+123
-130
lines changed

modules/install.am

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -261,14 +261,7 @@ _install_arg() {
261261
if command -v torsocks 1>/dev/null; then
262262
TORSOCKS="1"
263263
fi
264-
if grep -q "https://repology.org" ./"$arg"; then
265-
REPOLOGY_API_ALLOWED=$(curl -Ls https://repology.org/)
266-
TORSOCKS_MESSAGE="you have no access to https://repology.org, needed to check the version of this program."
267-
if grep -q "https://repology.org" ./"$arg" && [ -z "$REPOLOGY_API_ALLOWED" ] && [ -n "$TORSOCKS" ]; then
268-
sed -i "s/version=\$(wget/version=\$(torsocks wget/g" ./"$arg"
269-
fi
270-
[ -z "$REPOLOGY_API_ALLOWED" ] && [ -z "$TORSOCKS" ] && _torsocks_error_message | fold -sw 72 | sed 's/^/ /g; s/ ✖/✖/g' && return 0
271-
elif grep -q "api.github.com" ./"$arg"; then
264+
if grep -q "api.github.com" ./"$arg"; then
272265
GH_API_ALLOWED=$(curl -Ls $HeaderAuthWithGITPAT https://api.github.com/repos/ivan-hc/AM/releases/latest | sed 's/[()",{} ]/\n/g' | grep "^ivan-hc" | head -1)
273266
TORSOCKS_MESSAGE="you have reached GitHub API limit."
274267
[ -z "$GH_API_ALLOWED" ] && [ -z "$TORSOCKS" ] && _torsocks_error_message | fold -sw 72 | sed 's/^/ /g; s/ ✖/✖/g' && return 0

modules/template.am

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -114,11 +114,11 @@ _template_help_by_repology() {
114114
# IF A DOWNLOAD URL IS LINEAR, USE https://repology.org
115115
read -r -ep " Do you want to use repology.org to identify version (y,N)? " yn
116116
if echo "$yn" | grep -qi "^y"; then
117-
repology=$(wget -q https://repology.org/project/"$arg"/versions -O - | grep -i "new.*version" | head -1 | tr '><' '\n' | grep "^[0-9]")
118-
repology_command="wget -q https://repology.org/project/$arg/versions -O - | grep -i \"new.*version\" | head -1 | tr '><' '\\n' | grep \"^[0-9]\""
117+
repology=$(curl -Ls https://api.rl.pkgforge.dev/project/"$arg"/versions | grep -i "new.*version" | head -1 | tr '><' '\n' | grep "^[0-9]")
118+
repology_command="curl -Ls https://api.rl.pkgforge.dev/project/$arg/versions | grep -i \"new.*version\" | head -1 | tr '><' '\\n' | grep \"^[0-9]\""
119119
if [ -z "$repology" ]; then
120-
repology=$(wget -q https://repology.org/project/"$arg"/versions -O - | grep -i "uniq.*version" | head -1 | tr '><' '\n' | grep "^[0-9]")
121-
repology_command="wget -q https://repology.org/project/$arg/versions -O - | grep -i \"uniq.*version\" | head -1 | tr '><' '\\n' | grep \"^[0-9]\""
120+
repology=$(curl -Ls https://api.rl.pkgforge.dev/project/"$arg"/versions | grep -i "uniq.*version" | head -1 | tr '><' '\n' | grep "^[0-9]")
121+
repology_command="curl -Ls https://api.rl.pkgforge.dev/project/$arg/versions | grep -i \"uniq.*version\" | head -1 | tr '><' '\\n' | grep \"^[0-9]\""
122122
_template_use_repology
123123
else
124124
_template_use_repology

programs/aarch64/cheatbreaker

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=$(wget -q https://repology.org/project/cheatbreaker/versions -O - | grep -i "uniq.*version" | head -1 | tr '><' '\n' | grep "^[0-9]")
15+
version=$(curl -Ls https://api.rl.pkgforge.dev/project/cheatbreaker/versions | grep -i "uniq.*version" | head -1 | tr '><' '\n' | grep "^[0-9]")
1616
wget "$(curl -Ls https://cheatbreaker.net/download | tr '">< ' '\n' | grep -i "^http.*arm64.*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.
@@ -33,7 +33,7 @@ set -u
3333
APP=cheatbreaker
3434
SITE="https://cheatbreaker.net"
3535
version0=$(cat "/opt/$APP/version")
36-
version=$(wget -q https://repology.org/project/cheatbreaker/versions -O - | grep -i "uniq.*version" | head -1 | tr '><' '\n' | grep "^[0-9]")
36+
version=$(curl -Ls https://api.rl.pkgforge.dev/project/cheatbreaker/versions | grep -i "uniq.*version" | 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

programs/x86_64/amazingmarvin

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=$(wget -q https://repology.org/project/amazingmarvin/related -O - | grep "version-newest" | head -1 | tr '>' '\n' | grep "[0-9]" | sed 's#</span##g')
15+
version=$(curl -Ls https://api.rl.pkgforge.dev/project/amazingmarvin/related | grep "version-newest" | head -1 | tr '>' '\n' | grep "[0-9]" | sed 's#</span##g' | head -1)
1616
wget "http://amazingmarvin.s3-website-us-east-1.amazonaws.com/Marvin-x86_64.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.
@@ -33,7 +33,7 @@ set -u
3333
APP=amazingmarvin
3434
SITE="https://amazingmarvin.com"
3535
version0=$(cat "/opt/$APP/version")
36-
version=$(wget -q https://repology.org/project/amazingmarvin/related -O - | grep "version-newest" | head -1 | tr '>' '\n' | grep "[0-9]" | sed 's#</span##g')
36+
version=$(curl -Ls https://api.rl.pkgforge.dev/project/amazingmarvin/related | grep "version-newest" | head -1 | tr '>' '\n' | grep "[0-9]" | sed 's#</span##g' | 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/ankama-launcher

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=$(wget -q https://repology.org/project/ankama-launcher/versions -O - | grep -i "new.*version" | head -1 | tr '><' '\n' | grep "^[0-9]")
15+
version=$(curl -Ls https://api.rl.pkgforge.dev/project/ankama-launcher/versions | 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
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=ankama-launcher
3434
SITE="https://ankama.com"
3535
version0=$(cat "/opt/$APP/version")
36-
version=$(wget -q https://repology.org/project/ankama-launcher/versions -O - | grep -i "new.*version" | head -1 | tr '><' '\n' | grep "^[0-9]")
36+
version=$(curl -Ls https://api.rl.pkgforge.dev/project/ankama-launcher/versions | grep -i "new.*version" | 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

programs/x86_64/apifox

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=$(wget -q https://repology.org/project/apifox/related -O - | grep "version-newest" | head -1 | tr '>' '\n' | grep "[0-9]" | sed 's#</span##g')
15+
version=$(curl -Ls https://api.rl.pkgforge.dev/project/apifox/related | grep "version-newest" | head -1 | tr '>' '\n' | grep "[0-9]" | sed 's#</span##g' | head -1)
1616
wget "https://cdn.apifox.cn/download/Apifox-linux-latest.zip" || exit 1
1717
# Keep this space in sync with other installation scripts
1818
[ -e ./*zip ] && unzip -qq ./*zip 1>/dev/null && rm -f ./*zip
@@ -33,7 +33,7 @@ set -u
3333
APP=apifox
3434
SITE="https://apifox.com"
3535
version0=$(cat "/opt/$APP/version")
36-
version=$(wget -q https://repology.org/project/apifox/related -O - | grep "version-newest" | head -1 | tr '>' '\n' | grep "[0-9]" | sed 's#</span##g')
36+
version=$(curl -Ls https://api.rl.pkgforge.dev/project/apifox/related | grep "version-newest" | head -1 | tr '>' '\n' | grep "[0-9]" | sed 's#</span##g' | 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/around

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=$(wget -q https://repology.org/project/around/versions -O - | grep -i "new.*version" | head -1 | tr '><' '\n' | grep "^[0-9]")
15+
version=$(curl -Ls https://api.rl.pkgforge.dev/project/around/versions | grep -i "new.*version" | head -1 | tr '><' '\n' | grep "^[0-9]")
1616
wget "https://downloads.around.co/Around.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.
@@ -33,7 +33,7 @@ set -u
3333
APP=around
3434
SITE="https://around.co"
3535
version0=$(cat "/opt/$APP/version")
36-
version=$(wget -q https://repology.org/project/around/versions -O - | grep -i "new.*version" | head -1 | tr '><' '\n' | grep "^[0-9]")
36+
version=$(curl -Ls https://api.rl.pkgforge.dev/project/around/versions | grep -i "new.*version" | 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

programs/x86_64/badlion

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=$(wget -q https://repology.org/project/badlion-client/versions -O - | grep -i "newest.*version" | head -1 | tr '><' '\n' | grep "^[0-9]")
15+
version=$(curl -Ls https://api.rl.pkgforge.dev/project/badlion-client/versions | grep -i "newest.*version" | head -1 | tr '><' '\n' | grep "^[0-9]")
1616
wget "https://client-updates-cdn77.badlion.net/BadlionClient" || 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=badlion
3434
SITE="https://client.badlion.net"
3535
version0=$(cat "/opt/$APP/version")
36-
version=$(wget -q https://repology.org/project/badlion-client/versions -O - | grep -i "newest.*version" | head -1 | tr '><' '\n' | grep "^[0-9]")
36+
version=$(curl -Ls https://api.rl.pkgforge.dev/project/badlion-client/versions | grep -i "newest.*version" | 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

programs/x86_64/beeper

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=$(wget -q https://repology.org/project/beeper/versions -O - | grep -i "new.*version" | head -1 | tr '><' '\n' | grep "^[0-9]")
15+
version=$(curl -Ls https://api.rl.pkgforge.dev/project/beeper/versions | grep -i "new.*version" | head -1 | tr '><' '\n' | grep "^[0-9]")
1616
wget "https://download.beeper.com/linux/appImage/x64" || 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=beeper
3434
SITE="https://www.beeper.com"
3535
version0=$(cat "/opt/$APP/version")
36-
version=$(wget -q https://repology.org/project/beeper/versions -O - | grep -i "new.*version" | head -1 | tr '><' '\n' | grep "^[0-9]")
36+
version=$(curl -Ls https://api.rl.pkgforge.dev/project/beeper/versions | grep -i "new.*version" | 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

programs/x86_64/bridge

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=$(wget -q https://repology.org/project/bridge/versions -O - | grep -i "new.*version" | head -1 | tr '><' '\n' | grep "^[0-9]")
15+
version=$(curl -Ls https://api.rl.pkgforge.dev/project/bridge/versions | grep -i "new.*version" | head -1 | tr '><' '\n' | grep "^[0-9]")
1616
wget "https://d2shgxa8i058x8.cloudfront.net/bridge/linux/Bridge.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.
@@ -33,7 +33,7 @@ set -u
3333
APP=bridge
3434
SITE="https://quixel.com"
3535
version0=$(cat "/opt/$APP/version")
36-
version=$(wget -q https://repology.org/project/bridge/versions -O - | grep -i "new.*version" | head -1 | tr '><' '\n' | grep "^[0-9]")
36+
version=$(curl -Ls https://api.rl.pkgforge.dev/project/bridge/versions | grep -i "new.*version" | 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

0 commit comments

Comments
 (0)