From f5fb1e9a0dfe41f77be294ae97b1c5562a57f991 Mon Sep 17 00:00:00 2001 From: Jpxe Date: Fri, 8 Sep 2023 19:43:35 +0200 Subject: [PATCH 1/6] missed changing the file permission --- engines/dreamm/assets/run-dreamm-ij_lc.sh | 0 1 file changed, 0 insertions(+), 0 deletions(-) mode change 100644 => 100755 engines/dreamm/assets/run-dreamm-ij_lc.sh diff --git a/engines/dreamm/assets/run-dreamm-ij_lc.sh b/engines/dreamm/assets/run-dreamm-ij_lc.sh old mode 100644 new mode 100755 From e95bfc3409f24601c387a4bea072c3ead2823c67 Mon Sep 17 00:00:00 2001 From: Jpxe Date: Sat, 9 Sep 2023 01:30:51 +0200 Subject: [PATCH 2/6] change engine to official or other --- engines/changine/assets/run-changine.sh | 26 +++++++++++++++++++++++++ engines/changine/build.sh | 4 ++++ engines/changine/env.sh | 4 ++++ 3 files changed, 34 insertions(+) create mode 100755 engines/changine/assets/run-changine.sh create mode 100755 engines/changine/build.sh create mode 100755 engines/changine/env.sh diff --git a/engines/changine/assets/run-changine.sh b/engines/changine/assets/run-changine.sh new file mode 100755 index 000000000..3fa54ac1e --- /dev/null +++ b/engines/changine/assets/run-changine.sh @@ -0,0 +1,26 @@ +#!/bin/bash + +# Define the app ID +app_id="32310" + +# 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 " + exit 1 +fi + +# Construct the Steam command +steam_command="steam -applaunch $app_id \"steam://nav/console/ +app_change_compat_tool $app_id $compat_tool \\\"\\\" 250\"" + +# Execute the Steam command +echo "Launching $app_id 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 From b1b9fc97700af16ab54c09ef8124231a17cc963b Mon Sep 17 00:00:00 2001 From: Jpxe Date: Sat, 9 Sep 2023 01:44:18 +0200 Subject: [PATCH 3/6] Updated example --- engines/changine/assets/run-changine.sh | 1 + metadata/packagessniper_v2.json | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/engines/changine/assets/run-changine.sh b/engines/changine/assets/run-changine.sh index 3fa54ac1e..1dc92914c 100755 --- a/engines/changine/assets/run-changine.sh +++ b/engines/changine/assets/run-changine.sh @@ -15,6 +15,7 @@ if [ $# -eq 1 ]; then fi else echo "Usage: $0 " + echo "Example: luxtorpeda, official, steamlinuxruntime, proton_8, proton_experimental, GE-Proton8-14" exit 1 fi diff --git a/metadata/packagessniper_v2.json b/metadata/packagessniper_v2.json index b722faa5f..8fcdfb0b8 100644 --- a/metadata/packagessniper_v2.json +++ b/metadata/packagessniper_v2.json @@ -9567,6 +9567,11 @@ ], "engine_name": "DREAMM" } + { + "name": "changine", + "command": "./run-changine.sh", + "engine_name": "changine" + } ] }, "notice_translation": [ From 717767a96eee4df7e4fe3c1de2c61f8bff722d61 Mon Sep 17 00:00:00 2001 From: Jpxe Date: Sat, 9 Sep 2023 01:51:37 +0200 Subject: [PATCH 4/6] More metadata --- metadata/packagessniper_v2.json | 39 +++++++++++++++++++++++++++++++-- 1 file changed, 37 insertions(+), 2 deletions(-) diff --git a/metadata/packagessniper_v2.json b/metadata/packagessniper_v2.json index 8fcdfb0b8..c65f696a9 100644 --- a/metadata/packagessniper_v2.json +++ b/metadata/packagessniper_v2.json @@ -9566,10 +9566,45 @@ "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_8" + ], + "engine_name": "changine" + }, { - "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": [ + "GE-Proton8-14" + ], + "engine_name": "changine" + }, + { + "name": "Steam Linux Runtime Soldier", + "command": "./run-changine.sh", + "command_args": [ + "steamlinuxruntime" + ], "engine_name": "changine" } ] From a5472c6de7c68a0f1661ecf7122317ff552d1c39 Mon Sep 17 00:00:00 2001 From: Jpxe Date: Sat, 9 Sep 2023 11:14:46 +0200 Subject: [PATCH 5/6] Chaned AppId to SteamAppID env variable --- engines/changine/assets/run-changine.sh | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/engines/changine/assets/run-changine.sh b/engines/changine/assets/run-changine.sh index 1dc92914c..7155fa3e3 100755 --- a/engines/changine/assets/run-changine.sh +++ b/engines/changine/assets/run-changine.sh @@ -1,8 +1,5 @@ #!/bin/bash -# Define the app ID -app_id="32310" - # Check if a command argument was provided if [ $# -eq 1 ]; then command_args="$1" @@ -20,8 +17,8 @@ else fi # Construct the Steam command -steam_command="steam -applaunch $app_id \"steam://nav/console/ +app_change_compat_tool $app_id $compat_tool \\\"\\\" 250\"" +steam_command="steam -applaunch $SteamAppId \"steam://nav/console/ +app_change_compat_tool $SteamAppId $compat_tool \\\"\\\" 250\"" # Execute the Steam command -echo "Launching $app_id with $compat_tool" +echo "Launching $SteamAppId with $compat_tool" eval "$steam_command" From 6ed57fbe4a8b3fa47749db08ca5f9ff670fb7d99 Mon Sep 17 00:00:00 2001 From: Jpxe Date: Sat, 9 Sep 2023 16:37:24 +0200 Subject: [PATCH 6/6] variables for latest Proton-GE and Proton-Stable --- metadata/packagessniper_v2.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/metadata/packagessniper_v2.json b/metadata/packagessniper_v2.json index c65f696a9..75e7926bd 100644 --- a/metadata/packagessniper_v2.json +++ b/metadata/packagessniper_v2.json @@ -9579,7 +9579,7 @@ "name": "Proton (stable)", "command": "./run-changine.sh", "command_args": [ - "proton_8" + "$proton_stable_latest" ], "engine_name": "changine" }, @@ -9595,7 +9595,7 @@ "name": "Proton (GE)", "command": "./run-changine.sh", "command_args": [ - "GE-Proton8-14" + "$proton_ge_latest" ], "engine_name": "changine" },