diff --git a/engines/changine/assets/run-changine.sh b/engines/changine/assets/run-changine.sh new file mode 100755 index 000000000..7155fa3e3 --- /dev/null +++ b/engines/changine/assets/run-changine.sh @@ -0,0 +1,24 @@ +#!/bin/bash + +# Check if a command argument was provided +if [ $# -eq 1 ]; then + command_args="$1" + + # Check if the command argument is "official" + if [ "$command_args" == "official" ]; then + compat_tool="\"\"" + else + compat_tool="$command_args" + fi +else + echo "Usage: $0 " + echo "Example: luxtorpeda, official, steamlinuxruntime, proton_8, proton_experimental, GE-Proton8-14" + exit 1 +fi + +# Construct the Steam command +steam_command="steam -applaunch $SteamAppId \"steam://nav/console/ +app_change_compat_tool $SteamAppId $compat_tool \\\"\\\" 250\"" + +# Execute the Steam command +echo "Launching $SteamAppId with $compat_tool" +eval "$steam_command" diff --git a/engines/changine/build.sh b/engines/changine/build.sh new file mode 100755 index 000000000..5ecba3597 --- /dev/null +++ b/engines/changine/build.sh @@ -0,0 +1,4 @@ +#!/bin/bash + +# COPY PHASE +cp -rfv assets/* "$diststart/common/dist/" diff --git a/engines/changine/env.sh b/engines/changine/env.sh new file mode 100755 index 000000000..1486ddd79 --- /dev/null +++ b/engines/changine/env.sh @@ -0,0 +1,4 @@ +#!/bin/bash + +export STEAM_APP_ID_LIST="default" +export COMMON_PACKAGE="1" \ No newline at end of file diff --git a/metadata/packagessniper_v2.json b/metadata/packagessniper_v2.json index 33c4e74db..982beff07 100644 --- a/metadata/packagessniper_v2.json +++ b/metadata/packagessniper_v2.json @@ -9599,6 +9599,46 @@ "dreamm-binaries" ], "engine_name": "DREAMM" + }, + { + "name": "Official", + "command": "./run-changine.sh", + "command_args": [ + "official" + ], + "engine_name": "changine" + }, + { + "name": "Proton (stable)", + "command": "./run-changine.sh", + "command_args": [ + "$proton_stable_latest" + ], + "engine_name": "changine" + }, + { + "name": "Proton (experimental)", + "command": "./run-changine.sh", + "command_args": [ + "proton_experimental" + ], + "engine_name": "changine" + }, + { + "name": "Proton (GE)", + "command": "./run-changine.sh", + "command_args": [ + "$proton_ge_latest" + ], + "engine_name": "changine" + }, + { + "name": "Steam Linux Runtime Soldier", + "command": "./run-changine.sh", + "command_args": [ + "steamlinuxruntime" + ], + "engine_name": "changine" } ] },