Skip to content

Commit 965c92e

Browse files
authored
Merge pull request #1322 from ivan-hc/dev
Fix 0ad
2 parents 1ac28c0 + 7606e6d commit 965c92e

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

programs/aarch64/0ad

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://github.com/0ad-matters/0ad-appimage/releases/latest | sed 's/[()",{} ]/\n/g' | grep -oi "https.*mage$" | grep -i "arm64\|aarch64" | head -1)
15+
version=$(curl -Ls https://api.github.com/repos/0ad-matters/0ad-appimage/releases/latest | sed 's/[()",{} ]/\n/g' | grep -oi "https.*mage$" | grep -i "arm64\|aarch64" | 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=0ad
3434
SITE="0ad-matters/0ad-appimage"
3535
version0=$(cat "/opt/$APP/version")
36-
version=$(curl -Ls https://github.com/0ad-matters/0ad-appimage/releases/latest | sed 's/[()",{} ]/\n/g' | grep -oi "https.*mage$" | grep -i "arm64\|aarch64" | head -1)
36+
version=$(curl -Ls https://api.github.com/repos/0ad-matters/0ad-appimage/releases/latest | sed 's/[()",{} ]/\n/g' | grep -oi "https.*mage$" | grep -i "arm64\|aarch64" | 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/aarch64/0ad-latest

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://github.com/0ad-matters/0ad-appimage/releases | sed 's/[()",{} ]/\n/g' | grep -oi "https.*mage$" | grep -i "arm64\|aarch64" | head -1)
15+
version=$(curl -Ls https://api.github.com/repos/0ad-matters/0ad-appimage/releases | sed 's/[()",{} ]/\n/g' | grep -oi "https.*mage$" | grep -i "arm64\|aarch64" | 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=0ad-latest
3434
SITE="0ad-matters/0ad-appimage"
3535
version0=$(cat "/opt/$APP/version")
36-
version=$(curl -Ls https://github.com/0ad-matters/0ad-appimage/releases | sed 's/[()",{} ]/\n/g' | grep -oi "https.*mage$" | grep -i "arm64\|aarch64" | head -1)
36+
version=$(curl -Ls https://api.github.com/repos/0ad-matters/0ad-appimage/releases | sed 's/[()",{} ]/\n/g' | grep -oi "https.*mage$" | grep -i "arm64\|aarch64" | 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/0ad

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://github.com/0ad-matters/0ad-appimage/releases/latest | sed 's/[()",{} ]/\n/g' | grep -oi "https.*mage$" | grep -i "amd64\|x86_64" | head -1)
15+
version=$(curl -Ls https://api.github.com/repos/0ad-matters/0ad-appimage/releases/latest | sed 's/[()",{} ]/\n/g' | grep -oi "https.*mage$" | grep -i "amd64\|x86_64" | 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=0ad
3434
SITE="0ad-matters/0ad-appimage"
3535
version0=$(cat "/opt/$APP/version")
36-
version=$(curl -Ls https://github.com/0ad-matters/0ad-appimage/releases/latest | sed 's/[()",{} ]/\n/g' | grep -oi "https.*mage$" | grep -i "amd64\|x86_64" | head -1)
36+
version=$(curl -Ls https://api.github.com/repos/0ad-matters/0ad-appimage/releases/latest | sed 's/[()",{} ]/\n/g' | grep -oi "https.*mage$" | grep -i "amd64\|x86_64" | 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/0ad-latest

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://github.com/0ad-matters/0ad-appimage/releases | sed 's/[()",{} ]/\n/g' | grep -oi "https.*mage$" | grep -i "amd64\|x86_64" | head -1)
15+
version=$(curl -Ls https://api.github.com/repos/0ad-matters/0ad-appimage/releases | sed 's/[()",{} ]/\n/g' | grep -oi "https.*mage$" | grep -i "amd64\|x86_64" | 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=0ad-latest
3434
SITE="0ad-matters/0ad-appimage"
3535
version0=$(cat "/opt/$APP/version")
36-
version=$(curl -Ls https://github.com/0ad-matters/0ad-appimage/releases | sed 's/[()",{} ]/\n/g' | grep -oi "https.*mage$" | grep -i "amd64\|x86_64" | head -1)
36+
version=$(curl -Ls https://api.github.com/repos/0ad-matters/0ad-appimage/releases | sed 's/[()",{} ]/\n/g' | grep -oi "https.*mage$" | grep -i "amd64\|x86_64" | 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

0 commit comments

Comments
 (0)