Declare SCUM runtime executable for extensions

This commit is contained in:
npc0-hue
2026-08-24 10:14:04 +08:00
parent d1e9eefe92
commit 55b5483e68
3 changed files with 3 additions and 1 deletions
@@ -4,6 +4,7 @@
"mode": "supervised",
"outputMode": "pipes",
"executableKey": "bin/scum-start.cmd",
"targetExecutableKey": "SCUM/Binaries/Win64/SCUMServer.exe",
"arguments": [],
"environment": {
"GAME_ID": "scum",
@@ -10,6 +10,7 @@
"action": { "enum": ["install", "start", "stop", "restart", "status"] },
"mode": { "enum": ["oneshot", "supervised", "control"] },
"executableKey": { "$ref": "game-plugin.manifest.schema.json#/$defs/relativePathRef" },
"targetExecutableKey": { "$ref": "game-plugin.manifest.schema.json#/$defs/relativePathRef" },
"arguments": {
"type": "array",
"items": { "type": "string", "minLength": 1, "maxLength": 240 },
+1 -1
View File
@@ -219,7 +219,7 @@ describe("plugin manifest validation", () => {
expect(assetPaths).toEqual(expect.arrayContaining(["actions/install.json", "actions/start.json", "bin/scum-install-update.cmd", "bin/scum-start.cmd", "assets/map/scum-map-overview.jpg"]));
expect(installAction).toMatchObject({ executableKey: "bin/scum-install-update.cmd", environment: { SERVER_STEAM_APP_ID: "3792580", SERVER_STEAMCMD_UPDATE_ARGS: "+login anonymous +app_update 3792580 +quit" } });
expect(installAction.timeoutMs).toBe(7200000);
expect(startAction).toMatchObject({ executableKey: "bin/scum-start.cmd", outputMode: "pipes", environment: { SERVER_LOG_FLAG: "-log -stdout -FullStdOutLogOutput" } });
expect(startAction).toMatchObject({ executableKey: "bin/scum-start.cmd", targetExecutableKey: "SCUM/Binaries/Win64/SCUMServer.exe", outputMode: "pipes", environment: { SERVER_LOG_FLAG: "-log -stdout -FullStdOutLogOutput" } });
expect(installScript).not.toContain("taskkill /IM SCUMServer.exe /F");
expect(installScript).toContain("call :stop_matching_scum");
expect(installScript).toContain("Get-CimInstance Win32_Process");