Skip to content

Commit

Permalink
Use built-in ops for archives
Browse files Browse the repository at this point in the history
  • Loading branch information
LordRalex committed Apr 22, 2024
1 parent 642b4c8 commit af08623
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 6 deletions.
19 changes: 17 additions & 2 deletions terraria-tmodloader/terraria-tmodloader.json
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,19 @@
"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"
]
},
{
"if": "env == 'host'",
"type": "extract",
"source": "dotnet-runtime-${dotnetversion}-linux-${arch}.tar.gz",
"destination": "dotnet"
},
{
"if": "env == 'host'",
"type": "command",
"commands": [
"rm -rf dotnet-runtime-linux-${arch}.tar.gz"
]
},
Expand All @@ -318,10 +330,13 @@
"https://github.com/tModLoader/tModLoader/releases/download/${tversion}/tModLoader.zip"
]
},
{
"type": "extract",
"source": "tModLoader.zip"
},
{
"type": "command",
"commands": [
"unzip tModLoader.zip -d .",
"rm tModLoader.zip",
"mkdir -p ./${wp}"
]
Expand Down
26 changes: 23 additions & 3 deletions terraria-tshock/terraria-tshock.json
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,19 @@
"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"
]
},
{
"if": "env == 'host'",
"type": "extract",
"source": "dotnet-runtime-${dotnetversion}-linux-${arch}.tar.gz",
"destination": "dotnet"
},
{
"if": "env == 'host'",
"type": "command",
"commands": [
"rm -rf dotnet-runtime-linux-${arch}.tar.gz"
]
},
Expand All @@ -130,11 +142,19 @@
"https://github.com/Pryaxis/TShock/releases/download/v${tshockversion}/TShock-${tshockversion}-for-Terraria-${version}-linux-${arch}-Release.zip"
]
},
{
"type": "extract",
"source": "TShock-${tshockversion}-for-Terraria-${version}-linux-${arch}-Release.zip",
"destination": "."
},
{
"type": "extract",
"source": "TShock-Beta-linux-${arch}-Release.tar",
"destination": "."
},
{
"type": "command",
"commands": [
"unzip TShock-${tshockversion}-for-Terraria-${version}-linux-${arch}-Release.zip",
"tar xf TShock-Beta-linux-${arch}-Release.tar",
"mkdir worlds",
"rm -rf TShock-${tshockversion}-for-Terraria-${version}-linux-${arch}-Release.zip",
"rm -rf TShock-Beta-linux-${arch}-Release.tar"
Expand Down
6 changes: 5 additions & 1 deletion terraria-vanilla/terraria-vanilla.json
Original file line number Diff line number Diff line change
Expand Up @@ -257,11 +257,15 @@
"https://terraria.org/api/download/pc-dedicated-server/terraria-server-${version}.zip"
]
},
{
"type": "extract",
"source": "terraria-server-${version}.zip",
"destination": "."
},
{
"type": "command",
"commands": [
"rm -rf ./server",
"unzip terraria-server-${version}.zip",
"mkdir ./server",
"cp -r ./${version}/Linux/. ./server",
"chmod +x ./server/TerrariaServer",
Expand Down

0 comments on commit af08623

Please sign in to comment.