Skip to content

Commit 50b7e56

Browse files
authored
Update 0ad (use official AppImage) (#2097)
* Delete programs/aarch64/0ad * Update 0ad (use official AppImage) * Update 0ad-prerelease (use official AppImage)
1 parent 7249bdc commit 50b7e56

File tree

4 files changed

+12
-89
lines changed

4 files changed

+12
-89
lines changed

programs/aarch64/0ad

Lines changed: 0 additions & 77 deletions
This file was deleted.

programs/x86_64-apps

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
◆ 0ad : Unofficial. FOSS historical Real Time Strategy, RTS game of ancient warfare.
2-
◆ 0ad-prerelease : Unofficial. FOSS historical Real Time Strategy, RTS game of ancient warfare (Pre-release).
1+
◆ 0ad : FOSS historical Real Time Strategy, RTS game of ancient warfare.
2+
◆ 0ad-prerelease : FOSS historical Real Time Strategy, RTS game of ancient warfare (Pre-release).
33
◆ 12to11 : Unofficial, tool for running Wayland applications on an X server.
44
◆ 2ship : 2 Ship 2 Harkinian game.
55
◆ 3d-puzzles : 3D-Puzzles are Rubik, Dogic and Dogic12.

programs/x86_64/0ad

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# AM INSTALL SCRIPT VERSION 3.5
44
set -u
55
APP=0ad
6-
SITE="0ad-matters/0ad-appimage"
6+
SITE="https://play0ad.com"
77

88
# CREATE DIRECTORIES AND ADD REMOVER
99
[ -n "$APP" ] && mkdir -p "/opt/$APP/tmp" "/opt/$APP/icons" && cd "/opt/$APP/tmp" || exit 1
@@ -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://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)
15+
version="https://releases.wildfiregames.com/$(curl -Ls https://releases.wildfiregames.com/ | tr '">< ' '\n' | grep -i "x86_64.*appimage$" | tail -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.
@@ -31,9 +31,9 @@ cat >> ./AM-updater << 'EOF'
3131
#!/bin/sh
3232
set -u
3333
APP=0ad
34-
SITE="0ad-matters/0ad-appimage"
34+
SITE="https://play0ad.com"
3535
version0=$(cat "/opt/$APP/version")
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)
36+
version="https://releases.wildfiregames.com/$(curl -Ls https://releases.wildfiregames.com/ | tr '">< ' '\n' | grep -i "x86_64.*appimage$" | tail -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
@@ -72,6 +72,6 @@ while [ "$COUNT" -lt 10 ]; do # Tries to get the actual icon/desktop if it is a
7272
[ ! -L ./"$APP".desktop ] && [ ! -L ./DirIcon ] && break
7373
COUNT=$((COUNT + 1))
7474
done
75-
sed -i "s#Exec=[^ ]*#Exec=$APP#g; s#Icon=.*#Icon=/opt/$APP/icons/$APP#g" ./"$APP".desktop
75+
sed -i "s#Exec=[^ ]*#Exec=$APP#g; s#Icon=.*#Icon=/opt/$APP/icons/$APP#g; s# --no-sandbox##g" ./"$APP".desktop
7676
mv ./"$APP".desktop /usr/local/share/applications/"$APP"-AM.desktop && mv ./DirIcon ./icons/"$APP" 1>/dev/null
7777
rm -R -f ./squashfs-root

programs/x86_64/0ad-prerelease

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# AM INSTALL SCRIPT VERSION 3.5
44
set -u
55
APP=0ad-prerelease
6-
SITE="0ad-matters/0ad-appimage"
6+
SITE="https://play0ad.com"
77

88
# CREATE DIRECTORIES AND ADD REMOVER
99
[ -n "$APP" ] && mkdir -p "/opt/$APP/tmp" "/opt/$APP/icons" && cd "/opt/$APP/tmp" || exit 1
@@ -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://api.github.com/repos/0ad-matters/0ad-appimage/releases | sed 's/[()",{} ]/\n/g' | grep -oi "https.*mage$" | grep -i "amd64\|x86_64" | grep -i -- "apha\|beta\|-rc[0-9]\|unstable" | head -1)
15+
version="https://releases.wildfiregames.com/rc/$(curl -Ls https://releases.wildfiregames.com/rc/ | tr '">< ' '\n' | grep -i "x86_64.*appimage$" | tail -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.
@@ -31,9 +31,9 @@ cat >> ./AM-updater << 'EOF'
3131
#!/bin/sh
3232
set -u
3333
APP=0ad-prerelease
34-
SITE="0ad-matters/0ad-appimage"
34+
SITE="https://play0ad.com"
3535
version0=$(cat "/opt/$APP/version")
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" | grep -i -- "apha\|beta\|-rc[0-9]\|unstable" | head -1)
36+
version="https://releases.wildfiregames.com/rc/$(curl -Ls https://releases.wildfiregames.com/rc/ | tr '">< ' '\n' | grep -i "x86_64.*appimage$" | tail -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
@@ -72,6 +72,6 @@ while [ "$COUNT" -lt 10 ]; do # Tries to get the actual icon/desktop if it is a
7272
[ ! -L ./"$APP".desktop ] && [ ! -L ./DirIcon ] && break
7373
COUNT=$((COUNT + 1))
7474
done
75-
sed -i "s#Exec=[^ ]*#Exec=$APP#g; s#Icon=.*#Icon=/opt/$APP/icons/$APP#g" ./"$APP".desktop
75+
sed -i "s#Exec=[^ ]*#Exec=$APP#g; s#Icon=.*#Icon=/opt/$APP/icons/$APP#g; s# --no-sandbox##g" ./"$APP".desktop
7676
mv ./"$APP".desktop /usr/local/share/applications/"$APP"-AM.desktop && mv ./DirIcon ./icons/"$APP" 1>/dev/null
7777
rm -R -f ./squashfs-root

0 commit comments

Comments
 (0)