Skip to content

Commit

Permalink
Attempt fixes for failing templates
Browse files Browse the repository at this point in the history
  • Loading branch information
LordRalex committed Jan 5, 2024
1 parent f32810b commit 638a2c9
Show file tree
Hide file tree
Showing 8 changed files with 65 additions and 33 deletions.
3 changes: 3 additions & 0 deletions spec.json
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,9 @@
},
"autorestart": {
"type": "boolean"
},
"expectedExitCode": {
"type": "integer"
}
},
"required": [
Expand Down
1 change: 1 addition & 0 deletions squad/squad.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@
"run": {
"command": "SquadGame/Binaries/Linux/SquadGameServer Port=${port} QueryPort=${query_port} FIXEDMAXPLAYERS=${fixed_max_players} RANDOM=${random}",
"stopCode": 15,
"expectedExitCode": 143,
"pre": [
{
"if": "env == 'host'",
Expand Down
11 changes: 11 additions & 0 deletions teamspeak3/data.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[
{
"name": "teamspeak",
"variables": {
"eula": "1"
},
"environment": {
"type": "host"
}
}
]
6 changes: 4 additions & 2 deletions teamspeak3/teamspeak3.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,9 @@
"install": [
{
"type": "download",
"files": "https://files.teamspeak-services.com/releases/server/${version}/teamspeak3-server_linux_amd64-${version}.tar.bz2"
"files": [
"https://files.teamspeak-services.com/releases/server/${version}/teamspeak3-server_linux_amd64-${version}.tar.bz2"
]
},
{
"type": "command",
Expand Down Expand Up @@ -102,4 +104,4 @@
"tar"
]
}
}
}
26 changes: 6 additions & 20 deletions terraria-tmodloader/terraria-tmodloader.json
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@
},
"tversion": {
"type": "string",
"value": "",
"value": "v2023.11.3.3",
"display": "tModLoader Version (Set this to the latest tModLoader version to enable support - see https://github.com/tModLoader/tModLoader/releases/latest)",
"desc": "tModLoader Version",
"required": false,
Expand All @@ -253,35 +253,21 @@
{
"type": "download",
"files": [
"https://github.com/tModLoader/tModLoader/releases/download/v${tversion}/tModLoader.Linux.v${tversion}.tar.gz"
"https://github.com/tModLoader/tModLoader/releases/download/v${tversion}/tModLoader.zip"
]
},
{
"type": "command",
"commands": [
"mv ./${mp}/enabled.json ./",
"rm -r ./server",
"rm -rf ./server",
"mkdir ./server",
"tar -xf tModLoader.Linux.v${tversion}.tar.gz --directory ./server",
"unzip tModLoader.zip -d ./server",
"chmod +x ./server/tModLoaderServer",
"chmod +x ./server/tModLoaderServer.bin.x86",
"chmod +x ./server/tModLoaderServer.bin.x86_64",
"mkdir ./${wp}",
"mkdir ./${mp}",
"mkdir -p ./${wp}",
"rm tModLoader.Linux.v${tversion}.tar.gz"
]
},
{
"type": "writefile",
"target": "enabled.jsonn",
"text": "[\n \"Mod1\",\n \"Mod2\",\n \"Mod3\"\n]"
},
{
"type": "command",
"commands": [
"mv ./enabled.jsonn ./${mp}/enabled.json",
"mv ./enabled.json ./${mp}/enabled.json"
]
}
],
"run": {
Expand Down Expand Up @@ -311,4 +297,4 @@
"tar"
]
}
}
}
30 changes: 26 additions & 4 deletions terraria-tshock/terraria-tshock.json
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,28 @@
"desc": "Name of the worlds folder",
"required": true,
"userEdit": false
},
"wsize": {
"type": "option",
"value": "3",
"display": "World Size",
"desc": "World Size to create",
"required": true,
"userEdit": false,
"options": [
{
"value": "1",
"display": "Small"
},
{
"value": "2",
"display": "Medium"
},
{
"value": "3",
"display": "Large"
}
]
}
},
"install": [
Expand All @@ -114,10 +136,10 @@
}
],
"run": {
"command": "./TShock.Server -ip ${ip} -port ${port} -worldselectpath ${wpath} ${secure}",
"command": "./TShock.Server -ip ${ip} -port ${port} -worldselectpath ${wpath} ${secure} -autocreate ${wsize}",
"stop": "exit",
"environmentVars": {
"DOTNET_ROOT": "${rootDir}/dotnet"
"DOTNET_ROOT": "./dotnet"
},
"stdin": {
"type": "stdin"
Expand All @@ -127,12 +149,12 @@
"autorestart": false
},
"environment": {
"type": "tty"
"type": "host"
},
"requirements": {
"os": "linux",
"binaries": [
"unzip"
]
}
}
}
2 changes: 1 addition & 1 deletion terraria-vanilla/terraria-vanilla.json
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@
{
"type": "command",
"commands": [
"rm -r ./server",
"rm -rf ./server",
"unzip terraria-server-${version}.zip",
"mkdir ./server",
"cp -r ./${version}/Linux/. ./server",
Expand Down
19 changes: 13 additions & 6 deletions valheim/valheim.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
"data": {
"modpack": {
"type": "string",
"value": "Modpack to run with",
"value": "",
"display": "Modpack to run with",
"desc": "Open https://valheim.thunderstore.io/package/denikson/BepInExPack_Valheim/ in new tab and right 'manual download' click > copy link. Paste it here if you wish to use this modpack.",
"required": false,
"userEdit": true
Expand Down Expand Up @@ -56,9 +57,10 @@
]
},
{
"type": "command",
"commands": [
"chmod +x valheim_server.x86_64"
"if": "modpack != ''",
"type": "download",
"files": [
"${modpack}"
]
},
{
Expand All @@ -67,7 +69,12 @@
"commands": [
"unzip ./denikson-BepInExPack_Valheim*.zip -d ./bepin_temp/",
"cp -r ./bepin_temp/BepInExPack_Valheim/. ./",
"rm -r ./bepin_temp",
"rm -r ./bepin_temp"
]
},
{
"type": "command",
"commands": [
"chmod +x valheim_server.x86_64"
]
}
Expand All @@ -92,4 +99,4 @@
"os": "linux",
"arch": "amd64"
}
}
}

0 comments on commit 638a2c9

Please sign in to comment.