-
Notifications
You must be signed in to change notification settings - Fork 322
/
Copy pathassetto-corsaupdates.json
117 lines (117 loc) · 5.75 KB
/
assetto-corsaupdates.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
[
{
"UpdateStageName": "SteamCMD Server Download",
"UpdateSourcePlatform": "All",
"UpdateSource": "SteamCMD",
"UpdateSourceData": "302550",
"UpdateSourceArgs": "244210",
"ForceDownloadPlatform": "Windows"
},
{
"UpdateStageName": "Modded Server Download",
"UpdateSourcePlatform": "Windows",
"UpdateSource": "GithubRelease",
"UpdateSourceArgs": "compujuckel/AssettoServer",
"UpdateSourceData": "assetto-server-win-x64.zip",
"UpdateSourceTarget": "{{$FullBaseDir}}",
"UnzipUpdateSource": true,
"OverwriteExistingFiles": true,
"DeleteAfterExtract": true,
"UpdateSourceConditionSetting": "ServerVersion",
"UpdateSourceConditionValue": "modded"
},
{
"UpdateStageName": "Modded Server Download",
"UpdateSourcePlatform": "Linux",
"UpdateSource": "GithubRelease",
"UpdateSourceArgs": "compujuckel/AssettoServer",
"UpdateSourceData": "assetto-server-linux-x64.tar.gz",
"UpdateSourceTarget": "{{$FullBaseDir}}",
"UnzipUpdateSource": true,
"OverwriteExistingFiles": true,
"DeleteAfterExtract": true,
"UpdateSourceConditionSetting": "ServerVersion",
"UpdateSourceConditionValue": "modded"
},
{
"UpdateStageName": "Modded Server Overwrite",
"UpdateSourcePlatform": "Windows",
"UpdateSource": "Executable",
"UpdateSourceData": "cmd.exe",
"UpdateSourceArgs": "/C move /Y assetto-corsa\\302550\\AssettoServer.exe assetto-corsa\\302550\\acServer.exe",
"UpdateSourceConditionSetting": "ServerVersion",
"UpdateSourceConditionValue": "modded",
"SkipOnFailure": false
},
{
"UpdateStageName": "Modded Server Overwrite",
"UpdateSourcePlatform": "Linux",
"UpdateSource": "Executable",
"UpdateSourceData": "/bin/bash",
"UpdateSourceArgs": "-c \"mv -f ./assetto-corsa/302550/AssettoServer ./assetto-corsa/302550/acServer && chmod +x ./assetto-corsa/302550/acServer\"",
"UpdateSourceConditionSetting": "ServerVersion",
"UpdateSourceConditionValue": "modded",
"SkipOnFailure": false
},
{
"UpdateStageName": "SteamCMD Component Download",
"UpdateSourcePlatform": "All",
"UpdateSource": "SteamCMD",
"UpdateSourceData": "1007",
"UpdateSourceTarget": "302550",
"UpdateSourceConditionSetting": "ServerVersion",
"UpdateSourceConditionValue": "modded"
},
{
"UpdateStageName": "Create Dotnet Directory",
"UpdateSourcePlatform": "All",
"UpdateSource": "CreateDirectory",
"UpdateSourceArgs": "{{$FullBaseDir}}dotnet",
"UpdateSourceConditionSetting": "ServerVersion",
"UpdateSourceConditionValue": "modded"
},
{
"UpdateStageName": "ASP.NET Core Runtime Download",
"UpdateSourcePlatform": "Linux",
"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\\\"\"",
"UpdateSourceConditionSetting": "ServerVersion",
"UpdateSourceConditionValue": "modded",
"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\\\" }\"",
"UpdateSourceConditionSetting": "ServerVersion",
"UpdateSourceConditionValue": "modded",
"SkipOnFailure": false
},
{
"UpdateStageName": "ASP.NET Core Runtime Extract",
"UpdateSourcePlatform": "Linux",
"UpdateSource": "ExtractArchive",
"UpdateSourceData": "dotnet.tar.gz",
"UpdateSourceTarget": "{{$FullBaseDir}}dotnet",
"OverwriteExistingFiles": true,
"DeleteAfterExtract": true,
"UpdateSourceConditionSetting": "ServerVersion",
"UpdateSourceConditionValue": "modded",
"SkipOnFailure": false
},
{
"UpdateStageName": "ASP.NET Core Runtime Extract",
"UpdateSourcePlatform": "Windows",
"UpdateSource": "ExtractArchive",
"UpdateSourceData": "dotnet.zip",
"UpdateSourceTarget": "{{$FullBaseDir}}dotnet",
"OverwriteExistingFiles": true,
"DeleteAfterExtract": true,
"UpdateSourceConditionSetting": "ServerVersion",
"UpdateSourceConditionValue": "modded",
"SkipOnFailure": false
}
]