diff --git a/engines/ja2-stracciatella/assets/run-ja2-gold.sh b/engines/ja2-stracciatella/assets/run-ja2-gold.sh new file mode 100755 index 000000000..61d1221c0 --- /dev/null +++ b/engines/ja2-stracciatella/assets/run-ja2-gold.sh @@ -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 diff --git a/engines/ja2-stracciatella/assets/run-ja2.sh b/engines/ja2-stracciatella/assets/run-ja2.sh index a964ee85f..e8204c9f9 100755 --- a/engines/ja2-stracciatella/assets/run-ja2.sh +++ b/engines/ja2-stracciatella/assets/run-ja2.sh @@ -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" diff --git a/engines/ja2-stracciatella/env.sh b/engines/ja2-stracciatella/env.sh index e004b61d1..813071ca4 100755 --- a/engines/ja2-stracciatella/env.sh +++ b/engines/ja2-stracciatella/env.sh @@ -1,3 +1,3 @@ #!/bin/bash -export STEAM_APP_ID_LIST="215930" +export STEAM_APP_ID_LIST="215930 1620" diff --git a/metadata/packagessniper_v2.json b/metadata/packagessniper_v2.json index 8f9a12e35..107dd2dd0 100644 --- a/metadata/packagessniper_v2.json +++ b/metadata/packagessniper_v2.json @@ -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", @@ -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": [ @@ -9772,4 +9791,4 @@ "value": "Supports steam achivements." } ] -} \ No newline at end of file +}