diff --git a/pocketmine/pocketmine.json b/pocketmine/pocketmine.json index f016a93..fdf843c 100644 --- a/pocketmine/pocketmine.json +++ b/pocketmine/pocketmine.json @@ -59,11 +59,14 @@ }, { "type": "docker", - "image": "ubuntu" + "image": "pufferpanel/ubuntu" } ], "requirements": { "os": "linux", - "arch": "amd64" + "arch": "amd64", + "binaries": [ + "curl" + ] } } diff --git a/terraria-tmodloader/terraria-tmodloader.json b/terraria-tmodloader/terraria-tmodloader.json index 0d47b2c..5bad237 100644 --- a/terraria-tmodloader/terraria-tmodloader.json +++ b/terraria-tmodloader/terraria-tmodloader.json @@ -296,19 +296,31 @@ }, "install": [ { + "if": "env == 'host'", "type": "download", "files": [ - "https://github.com/tModLoader/tModLoader/releases/download/${tversion}/tModLoader.zip", "https://dotnetcli.azureedge.net/dotnet/Runtime/${dotnetversion}/dotnet-runtime-${dotnetversion}-linux-${arch}.tar.gz" ] }, { + "if": "env == 'host'", "type": "command", "commands": [ "rm -rf dotnet", "mkdir -p dotnet", "tar -xzf dotnet-runtime-${dotnetversion}-linux-${arch}.tar.gz -C dotnet", - "rm -rf dotnet-runtime-linux-${arch}.tar.gz", + "rm -rf dotnet-runtime-linux-${arch}.tar.gz" + ] + }, + { + "type": "download", + "files": [ + "https://github.com/tModLoader/tModLoader/releases/download/${tversion}/tModLoader.zip" + ] + }, + { + "type": "command", + "commands": [ "unzip tModLoader.zip -d .", "rm tModLoader.zip", "mkdir -p ./${wp}" @@ -316,7 +328,15 @@ } ], "run": { - "command": "dotnet/dotnet tModLoader.dll -server ${steam} -ip ${ip} ${disableannouncementbox} -announcementboxrange ${abr} -config ./serverconfig.txt -autocreate ${size}", + "command": [ + { + "if": "env == 'docker'", + "command": "dotnet tModLoader.dll -server ${steam} -ip ${ip} ${disableannouncementbox} -announcementboxrange ${abr} -config ./serverconfig.txt -autocreate ${size}", + }, + { + "command": "dotnet/dotnet tModLoader.dll -server ${steam} -ip ${ip} ${disableannouncementbox} -announcementboxrange ${abr} -config ./serverconfig.txt -autocreate ${size}", + } + ], "stop": "exit", "pre": [ { @@ -341,7 +361,7 @@ }, { "type": "docker", - "image": "pufferpanel/ubuntu" + "image": "mcr.microsoft.com/dotnet/runtime:${dotnetversion}" } ], "requirements": { diff --git a/terraria-tshock/terraria-tshock.json b/terraria-tshock/terraria-tshock.json index db88699..e9048b5 100644 --- a/terraria-tshock/terraria-tshock.json +++ b/terraria-tshock/terraria-tshock.json @@ -108,23 +108,36 @@ }, "install": [ { + "if": "env == 'host'", "type": "download", "files": [ - "https://github.com/Pryaxis/TShock/releases/download/v${tshockversion}/TShock-${tshockversion}-for-Terraria-${version}-linux-${arch}-Release.zip", "https://dotnetcli.azureedge.net/dotnet/Runtime/${dotnetversion}/dotnet-runtime-${dotnetversion}-linux-${arch}.tar.gz" ] }, + { + "if": "env == 'host'", + "type": "command", + "commands": [ + "rm -rf dotnet", + "mkdir -p dotnet", + "tar -xzf dotnet-runtime-${dotnetversion}-linux-${arch}.tar.gz -C dotnet", + "rm -rf dotnet-runtime-linux-${arch}.tar.gz" + ] + }, + { + "type": "download", + "files": [ + "https://github.com/Pryaxis/TShock/releases/download/v${tshockversion}/TShock-${tshockversion}-for-Terraria-${version}-linux-${arch}-Release.zip" + ] + }, { "type": "command", "commands": [ "unzip TShock-${tshockversion}-for-Terraria-${version}-linux-${arch}-Release.zip", "tar xf TShock-Beta-linux-${arch}-Release.tar", "mkdir worlds", - "mkdir dotnet", - "tar xzf dotnet-runtime-${dotnetversion}-linux-${arch}.tar.gz -C dotnet", "rm -rf TShock-${tshockversion}-for-Terraria-${version}-linux-${arch}-Release.zip", - "rm -rf TShock-Beta-linux-${arch}-Release.tar", - "rm -rf dotnet-runtime-linux-${arch}.tar.gz" + "rm -rf TShock-Beta-linux-${arch}-Release.tar" ] } ], @@ -150,7 +163,7 @@ }, { "type": "docker", - "image": "pufferpanel/ubuntu" + "image": "mcr.microsoft.com/dotnet/runtime:${dotnetversion}" } ], "requirements": {