Skip to content

Commit 0e031c7

Browse files
authored
Merge pull request #3506 from s1eve-mcdichae1/update-alephone-game-data
alephone (update): Use latest version game data.
2 parents fceb8b9 + 7ff2089 commit 0e031c7

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

scriptmodules/ports/alephone.sh

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,18 +54,22 @@ function install_alephone() {
5454
}
5555

5656
function game_data_alephone() {
57-
local release_url="https://github.com/Aleph-One-Marathon/alephone/releases/download/release-20150620"
57+
local version="20150620"
58+
if compareVersions "$__os_debian_ver" ge 9 || [[ -n "$__os_ubuntu_ver" ]]; then
59+
version="20220115"
60+
fi
61+
local release_url="https://github.com/Aleph-One-Marathon/alephone/releases/download/release-$version"
5862

5963
if [[ ! -f "$romdir/ports/$md_id/Marathon/Shapes.shps" ]]; then
60-
downloadAndExtract "$release_url/Marathon-20150620-Data.zip" "$romdir/ports/$md_id"
64+
downloadAndExtract "$release_url/Marathon-$version-Data.zip" "$romdir/ports/$md_id"
6165
fi
6266

6367
if [[ ! -f "$romdir/ports/$md_id/Marathon 2/Shapes.shpA" ]]; then
64-
downloadAndExtract "$release_url/Marathon2-20150620-Data.zip" "$romdir/ports/$md_id"
68+
downloadAndExtract "$release_url/Marathon2-$version-Data.zip" "$romdir/ports/$md_id"
6569
fi
6670

6771
if [[ ! -f "$romdir/ports/$md_id/Marathon Infinity/Shapes.shpA" ]]; then
68-
downloadAndExtract "$release_url/MarathonInfinity-20150620-Data.zip" "$romdir/ports/$md_id"
72+
downloadAndExtract "$release_url/MarathonInfinity-$version-Data.zip" "$romdir/ports/$md_id"
6973
fi
7074

7175
chown -R $user:$user "$romdir/ports/$md_id"

0 commit comments

Comments
 (0)