-
Notifications
You must be signed in to change notification settings - Fork 343
/
Copy pathrimworld-togetherupdates.json
128 lines (128 loc) · 6.36 KB
/
rimworld-togetherupdates.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
[
{
"UpdateStageName": "Create Core Directory",
"UpdateSourcePlatform": "All",
"UpdateSource": "CreateDirectory",
"UpdateSourceArgs": "{{$FullBaseDir}}Core"
},
{
"UpdateStageName": "Create Dotnet Directory",
"UpdateSourcePlatform": "All",
"UpdateSource": "CreateDirectory",
"UpdateSourceArgs": "{{$FullBaseDir}}Dotnet"
},
{
"UpdateStageName": "ASP.NET Core Runtime Download",
"UpdateSourcePlatform": "Linux",
"UpdateSourceArch": "x86_64",
"UpdateSource": "Executable",
"UpdateSourceData": "/bin/bash",
"UpdateSourceArgs": "-c \"DotnetVersion=\\\"{{DotnetVersion}}\\\" && if [[ -z \\\"$DotnetVersion\\\" ]]; then DotnetVersion=$(wget -qO- https://builds.dotnet.microsoft.com/dotnet/release-metadata/7.0/releases.json | jq -r \\\".[\\\\\\\"latest-runtime\\\\\\\"]\\\"); fi && if [[ ! \\\"$DotnetVersion\\\" =~ ^[0-9]+\\.[0-9]+\\.[0-9]+$ ]]; then echo \\\"Invalid ASP.NET Core Runtime version format specified\\\" && exit 1; fi && wget -qO dotnet.tar.gz https://builds.dotnet.microsoft.com/dotnet/aspnetcore/Runtime/$DotnetVersion/aspnetcore-runtime-$DotnetVersion-linux-x64.tar.gz && echo \\\"ASP.NET Core Runtime v$DotnetVersion downloaded\\\"\"",
"SkipOnFailure": false
},
{
"UpdateStageName": "ASP.NET Core Runtime Download",
"UpdateSourcePlatform": "Linux",
"UpdateSourceArch": "aarch64",
"UpdateSource": "Executable",
"UpdateSourceData": "/bin/bash",
"UpdateSourceArgs": "-c \"DotnetVersion=\\\"{{DotnetVersion}}\\\" && if [[ -z \\\"$DotnetVersion\\\" ]]; then DotnetVersion=$(wget -qO- https://builds.dotnet.microsoft.com/dotnet/release-metadata/7.0/releases.json | jq -r \\\".[\\\\\\\"latest-runtime\\\\\\\"]\\\"); fi && if [[ ! \\\"$DotnetVersion\\\" =~ ^[0-9]+\\.[0-9]+\\.[0-9]+$ ]]; then echo \\\"Invalid ASP.NET Core Runtime version format specified\\\" && exit 1; fi && wget -qO dotnet.tar.gz https://builds.dotnet.microsoft.com/dotnet/aspnetcore/Runtime/$DotnetVersion/aspnetcore-runtime-$DotnetVersion-linux-arm64.tar.gz && echo \\\"ASP.NET Core Runtime v$DotnetVersion downloaded\\\"\"",
"SkipOnFailure": false
},
{
"UpdateStageName": "ASP.NET Core Runtime Download",
"UpdateSourcePlatform": "Windows",
"UpdateSource": "Executable",
"UpdateSourceData": "powershell.exe",
"UpdateSourceArgs": "-NoProfile -Command \"$ProgressPreference='SilentlyContinue'; $DotnetVersion='{{DotnetVersion}}'; if ([string]::IsNullOrWhiteSpace($DotnetVersion)) { $DotnetVersion=(Invoke-RestMethod -UseBasicParsing -Uri https://builds.dotnet.microsoft.com/dotnet/release-metadata/7.0/releases.json).\\\"latest-runtime\\\" }; if ($DotnetVersion -notmatch '^\\d+\\.\\d+\\.\\d+$') { Write-Output \\\"Invalid ASP.NET Core Runtime version format specified\\\"; exit 1 }; Invoke-WebRequest -UseBasicParsing -Uri https://builds.dotnet.microsoft.com/dotnet/aspnetcore/Runtime/$DotnetVersion/aspnetcore-runtime-$DotnetVersion-win-x64.zip -OutFile 'dotnet.zip'; if ($?) { Write-Output \\\"ASP.NET Core Runtime v$DotnetVersion downloaded\\\" }\"",
"SkipOnFailure": false
},
{
"UpdateStageName": "ASP.NET Core Runtime Extract",
"UpdateSourcePlatform": "Linux",
"UpdateSource": "ExtractArchive",
"UpdateSourceData": "dotnet.tar.gz",
"UpdateSourceTarget": "{{$FullBaseDir}}Dotnet",
"OverwriteExistingFiles": true,
"DeleteAfterExtract": true,
"SkipOnFailure": false
},
{
"UpdateStageName": "ASP.NET Core Runtime Extract",
"UpdateSourcePlatform": "Windows",
"UpdateSource": "ExtractArchive",
"UpdateSourceData": "dotnet.zip",
"UpdateSourceTarget": "{{$FullBaseDir}}Dotnet",
"OverwriteExistingFiles": true,
"DeleteAfterExtract": true,
"SkipOnFailure": false
},
{
"UpdateStageName": "Rimworld Together Download",
"UpdateSourcePlatform": "Windows",
"UpdateSource": "GithubRelease",
"UpdateSourceData": "win-x64.zip",
"UpdateSourceArgs": "RimworldTogether/Rimworld-Together",
"UpdateSourceTarget": "{{$FullBaseDir}}",
"UpdateSourceVersion": "{{ReleaseVersion}}",
"UnzipUpdateSource": true,
"OverwriteExistingFiles": true,
"DeleteAfterExtract": true
},
{
"UpdateStageName": "Rimworld Together Download",
"UpdateSourcePlatform": "Linux",
"UpdateSource": "GithubRelease",
"UpdateSourceData": "linux-x64.zip",
"UpdateSourceArgs": "RimworldTogether/Rimworld-Together",
"UpdateSourceTarget": "{{$FullBaseDir}}",
"UpdateSourceVersion": "{{ReleaseVersion}}",
"UpdateSourceArch": "x86_64",
"UnzipUpdateSource": true,
"OverwriteExistingFiles": true,
"DeleteAfterExtract": true
},
{
"UpdateStageName": "Rimworld Together Download",
"UpdateSourcePlatform": "Linux",
"UpdateSource": "GithubRelease",
"UpdateSourceData": "linux-arm64.zip",
"UpdateSourceArgs": "RimworldTogether/Rimworld-Together",
"UpdateSourceTarget": "{{$FullBaseDir}}",
"UpdateSourceVersion": "{{ReleaseVersion}}",
"UpdateSourceArch": "aarch64",
"UnzipUpdateSource": true,
"OverwriteExistingFiles": true,
"DeleteAfterExtract": true
},
{
"UpdateStageName": "Set Executable Flag",
"UpdateSourcePlatform": "Linux",
"UpdateSource": "SetExecutableFlag",
"UpdateSourceArgs": "{{$FullBaseDir}}GameServer"
},
{
"UpdateStageName": "ServerConfig.json File Download",
"UpdateSourcePlatform": "All",
"UpdateSource": "FetchURL",
"UpdateSourceData": "https://raw.githubusercontent.com/CubeCoders/AMPTemplates/main/rimworld-togetherserverconfig.json",
"UpdateSourceArgs": "ServerConfig.json",
"UpdateSourceTarget": "{{$FullBaseDir}}Core",
"OverwriteExistingFiles": true
},
{
"UpdateStageName": "Start Server",
"UpdateSourcePlatform": "All",
"UpdateSource": "StartApplication"
},
{
"UpdateStageName": "Wait For Server Start",
"UpdateSourcePlatform": "All",
"UpdateSource": "WaitForStartupComplete"
},
{
"UpdateStageName": "Stop Server",
"UpdateSourcePlatform": "All",
"UpdateSource": "ShutdownApplication"
}
]