File tree 4 files changed +8
-8
lines changed
4 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ printf '\n%s' "rm -f /usr/local/share/applications/$APP-AM.desktop" >> ../remove
12
12
chmod a+x ../remove || exit 1
13
13
14
14
# 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)
16
16
wget " $version " || exit 1
17
17
# Keep this space in sync with other installation scripts
18
18
# Use tar fx ./*tar* here for example in this line in case a compressed file is downloaded.
33
33
APP=0ad
34
34
SITE="0ad-matters/0ad-appimage"
35
35
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)
37
37
[ -n "$version" ] || { echo "Error getting link"; exit 1; }
38
38
if command -v appimageupdatetool >/dev/null 2>&1; then
39
39
cd "/opt/$APP" || exit 1
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ printf '\n%s' "rm -f /usr/local/share/applications/$APP-AM.desktop" >> ../remove
12
12
chmod a+x ../remove || exit 1
13
13
14
14
# 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)
16
16
wget " $version " || exit 1
17
17
# Keep this space in sync with other installation scripts
18
18
# Use tar fx ./*tar* here for example in this line in case a compressed file is downloaded.
33
33
APP=0ad-latest
34
34
SITE="0ad-matters/0ad-appimage"
35
35
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)
37
37
[ -n "$version" ] || { echo "Error getting link"; exit 1; }
38
38
if command -v appimageupdatetool >/dev/null 2>&1; then
39
39
cd "/opt/$APP" || exit 1
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ printf '\n%s' "rm -f /usr/local/share/applications/$APP-AM.desktop" >> ../remove
12
12
chmod a+x ../remove || exit 1
13
13
14
14
# 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)
16
16
wget " $version " || exit 1
17
17
# Keep this space in sync with other installation scripts
18
18
# Use tar fx ./*tar* here for example in this line in case a compressed file is downloaded.
33
33
APP=0ad
34
34
SITE="0ad-matters/0ad-appimage"
35
35
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)
37
37
[ -n "$version" ] || { echo "Error getting link"; exit 1; }
38
38
if command -v appimageupdatetool >/dev/null 2>&1; then
39
39
cd "/opt/$APP" || exit 1
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ printf '\n%s' "rm -f /usr/local/share/applications/$APP-AM.desktop" >> ../remove
12
12
chmod a+x ../remove || exit 1
13
13
14
14
# 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)
16
16
wget " $version " || exit 1
17
17
# Keep this space in sync with other installation scripts
18
18
# Use tar fx ./*tar* here for example in this line in case a compressed file is downloaded.
33
33
APP=0ad-latest
34
34
SITE="0ad-matters/0ad-appimage"
35
35
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)
37
37
[ -n "$version" ] || { echo "Error getting link"; exit 1; }
38
38
if command -v appimageupdatetool >/dev/null 2>&1; then
39
39
cd "/opt/$APP" || exit 1
You can’t perform that action at this time.
0 commit comments