From 9c57b660bbb77401bb4c5c6d9c82895ce3416774 Mon Sep 17 00:00:00 2001 From: d10sfan <4337981+d10sfan@users.noreply.github.com> Date: Fri, 10 May 2024 21:36:53 -0500 Subject: [PATCH] Add SurrealEngine (#1209) * Add SurrealEngine * Update packagessniper_v2.json --- engines/surreal_engine/build.sh | 18 ++++++++ engines/surreal_engine/env.json | 9 ++++ metadata/packagessniper_v2.json | 73 ++++++++++++++++++++++++--------- 3 files changed, 81 insertions(+), 19 deletions(-) create mode 100755 engines/surreal_engine/build.sh create mode 100644 engines/surreal_engine/env.json diff --git a/engines/surreal_engine/build.sh b/engines/surreal_engine/build.sh new file mode 100755 index 000000000..b1c22c071 --- /dev/null +++ b/engines/surreal_engine/build.sh @@ -0,0 +1,18 @@ +#!/bin/bash + +# CLONE PHASE +git clone https://github.com/dpjudas/SurrealEngine.git source +pushd source +git checkout "$COMMIT_HASH" +popd + +# BUILD PHASE +pushd "source" +mkdir build +cd build +cmake -DCMAKE_BUILD_TYPE=Release .. +make -j "$(nproc)" +popd + +# COPY PHASE +cp -rfv source/build/SurrealEngine* "$diststart/common/dist/" diff --git a/engines/surreal_engine/env.json b/engines/surreal_engine/env.json new file mode 100644 index 000000000..32a773e4d --- /dev/null +++ b/engines/surreal_engine/env.json @@ -0,0 +1,9 @@ +{ + "STEAM_APP_ID_LIST": [ + "13240", + "13250" + ], + "LICENSE_PATH": "./source/LICENSE.md", + "COMMON_PACKAGE": true, + "COMMIT_HASH": "fb53642" +} diff --git a/metadata/packagessniper_v2.json b/metadata/packagessniper_v2.json index a6efd13bb..6fa18654a 100644 --- a/metadata/packagessniper_v2.json +++ b/metadata/packagessniper_v2.json @@ -4748,31 +4748,43 @@ "file": "utbonuspack4-zip.zip" } ], - "command": "./run-ut99-469d.sh", - "app_ids_deps": [ - 1070560 - ], - "download_config": [ + "choices": [ { - "extract_location": "../linuxdata-469d", - "strip_prefix": "", - "setup": true, - "download_name": "binaries-469d" + "name": "ut99", + "engine_name": "ut99", + "command": "./run-ut99-469d.sh", + "app_ids_deps": [ + 1070560 + ], + "download_config": [ + { + "extract_location": "../linuxdata-469d", + "strip_prefix": "", + "setup": true, + "download_name": "binaries-469d" + }, + { + "setup": true, + "extract_location": "../utbonuspack4", + "download_name": "ut99 Bonus Pack 4" + } + ], + "setup": { + "complete_path": "../ready-469d", + "command": "./setup-ut99-469d.sh", + "uninstall_command": "./uninstall-ut99-469d.sh", + "license_path": "../linuxdata-469d/legal.txt" + } }, { - "setup": true, - "extract_location": "../utbonuspack4", - "download_name": "ut99 Bonus Pack 4" + "name": "SurrealEngine", + "command": "./SurrealEngine", + "download": [ + "surreal_engine" + ] } ], - "setup": { - "complete_path": "../ready-469d", - "command": "./setup-ut99-469d.sh", - "uninstall_command": "./uninstall-ut99-469d.sh", - "license_path": "../linuxdata-469d/legal.txt" - }, "use_original_command_directory": true, - "engine_name": "ut99", "cloudNotAvailable": true, "app_id": "13240" }, @@ -4804,6 +4816,13 @@ "download": [ "unreal-gold-64" ] + }, + { + "name": "SurrealEngine", + "command": "./SurrealEngine", + "download": [ + "surreal_engine" + ] } ], "use_original_command_directory": true, @@ -10890,6 +10909,22 @@ "controllerNotSupported": true, "engine_name": "Descent3", "internal_engine_name": "descent3" + }, + { + "engine_link": "https://github.com/dpjudas/SurrealEngine", + "version": "fb53642", + "author": "d10sfan", + "author_link": "https://github.com/d10sfan", + "license": "Zlib", + "license_link": "https://github.com/dpjudas/SurrealEngine/blob/master/LICENSE.md", + "controllerNotSupported": true, + "engine_name": "SurrealEngine", + "internal_engine_name": "surreal_engine", + "notices": [ + { + "key": "in_progress" + } + ] } ], "default_engine": {