Skip to content

Commit

Permalink
ja2 - Update to 0.20.0
Browse files Browse the repository at this point in the history
  • Loading branch information
d10sfan committed Nov 1, 2023
1 parent 81a2425 commit 494ee74
Show file tree
Hide file tree
Showing 4 changed files with 59 additions and 8 deletions.
32 changes: 32 additions & 0 deletions engines/ja2-stracciatella/assets/run-ja2-gold.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
#!/bin/bash

wantedversion="0.20.0"

filepath="./ja2-stracciatella_0.20.0-git+439a6d3_x86-64.AppImage"

if [ -f "readyversion.txt" ]; then
readyversion=$(cat readyversion.txt)
echo "Found version: $readyversion"
else
echo "No Version Found"
fi

if [ "$readyversion" != "$wantedversion" ]; then
echo "Running Setup"

chmod +x "$filepath"
LD_LIBRARY_PATH="" "$filepath" --appimage-extract

if [ ! -f ~/.ja2/ja2.json ]; then
if [ ! -d ~/.ja2 ]; then
mkdir -p ~/.ja2
fi
echo "{\"game_dir\": \"$PWD\"}" > ~/.ja2/ja2.json
fi

echo "$wantedversion" > ./readyversion.txt
else
echo "Not Running Setup"
fi

./squashfs-root/usr/bin/ja2-launcher
4 changes: 2 additions & 2 deletions engines/ja2-stracciatella/assets/run-ja2.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#!/bin/bash

wantedversion="0.19.1"
wantedversion="0.20.0"

filepath="./ja2-stracciatella_0.19.1-git+6ad1b6f_x86-64.AppImage"
filepath="./ja2-stracciatella_0.20.0-git+439a6d3_x86-64.AppImage"

if [[ -d "JA2Classic" ]]; then
echo "Classic found"
Expand Down
2 changes: 1 addition & 1 deletion engines/ja2-stracciatella/env.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/bin/bash

export STEAM_APP_ID_LIST="215930"
export STEAM_APP_ID_LIST="215930 1620"
29 changes: 24 additions & 5 deletions metadata/packagessniper_v2.json
Original file line number Diff line number Diff line change
Expand Up @@ -4932,13 +4932,13 @@
"download": [
{
"name": "ja2-binaries",
"url": "https://github.com/ja2-stracciatella/ja2-stracciatella/releases/download/v0.19.1/",
"file": "ja2-stracciatella_0.19.1-git+6ad1b6f_x86-64.AppImage"
"url": "https://github.com/ja2-stracciatella/ja2-stracciatella/releases/download/v0.20.0/",
"file": "ja2-stracciatella_0.20.0-git+439a6d3_x86-64.AppImage"
},
{
"name": "ja2-wildfire",
"url": "https://github.com/ja2-stracciatella/mod-wildfire-maps/releases/download/0.3.0/",
"file": "mod-wildfire-maps-0.3.0-linux-x64.zip"
"url": "https://github.com/ja2-stracciatella/mod-wildfire-maps/releases/download/0.4.0/",
"file": "wildfire-maps_0.4.0-linux.tar.gz"
},
{
"name": "ja2-stracciatella",
Expand All @@ -4951,6 +4951,25 @@
"cloudAvailable": true,
"app_id": "215930"
},
{
"game_name": "Jagged Alliance 2 Gold",
"download": [
{
"name": "ja2-binaries",
"url": "https://github.com/ja2-stracciatella/ja2-stracciatella/releases/download/v0.20.0/",
"file": "ja2-stracciatella_0.20.0-git+439a6d3_x86-64.AppImage"
},
{
"name": "ja2-stracciatella",
"url": "https://github.com/luxtorpeda-dev/packages/releases/download/ja2-stracciatella-6/",
"file": "ja2-stracciatella-215930-6.tar.xz"
}
],
"command": "./run-ja2-gold.sh",
"engine_name": "Jagged Alliance 2 Stracciatella",
"cloudAvailable": true,
"app_id": "1620"
},
{
"game_name": "Tomb Raider I",
"download": [
Expand Down Expand Up @@ -9772,4 +9791,4 @@
"value": "Supports steam achivements."
}
]
}
}

0 comments on commit 494ee74

Please sign in to comment.