-
Notifications
You must be signed in to change notification settings - Fork 343
/
Copy pathteeworldsupdates.json
61 lines (61 loc) · 2.59 KB
/
teeworldsupdates.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
[
{
"UpdateStageName": "Server Download",
"UpdateSourcePlatform": "Windows",
"UpdateSource": "FetchURL",
"UpdateSourceData": "https://github.com/teeworlds/teeworlds/releases/download/0.7.5/teeworlds-0.7.5-win64.zip",
"UpdateSourceTarget": "{{$FullBaseDir}}",
"UnzipUpdateSource": true,
"OverwriteExistingFiles": true,
"DeleteAfterExtract": true
},
{
"UpdateStageName": "Server Download",
"UpdateSourcePlatform": "Linux",
"UpdateSource": "FetchURL",
"UpdateSourceData": "https://github.com/teeworlds/teeworlds/releases/download/0.7.5/teeworlds-0.7.5-linux_x86_64.tar.gz",
"UpdateSourceTarget": "{{$FullBaseDir}}",
"UnzipUpdateSource": true,
"OverwriteExistingFiles": true,
"DeleteAfterExtract": true
},
{
"UpdateStageName": "Server Files Copy",
"UpdateSourcePlatform": "Windows",
"UpdateSource": "Executable",
"UpdateSourceData": "cmd.exe",
"UpdateSourceArgs": "/C cd teeworlds && del /Q /F teeworlds-0.7.5-win64\\storage.cfg > NUL 2>&1 && xcopy /E /Y /I teeworlds-0.7.5-win64\\* .\\ > NUL 2>&1 && rmdir /Q /S teeworlds-0.7.5-win64 > NUL 2>&1",
"SkipOnFailure": false
},
{
"UpdateStageName": "Server Files Copy",
"UpdateSourcePlatform": "Linux",
"UpdateSource": "Executable",
"UpdateSourceData": "/bin/bash",
"UpdateSourceArgs": "-c \"cd teeworlds && rm -f teeworlds-0.7.5-linux_x86_64/storage.cfg >/dev/null 2>&1 && \\cp -rf teeworlds-0.7.5-linux_x86_64/* ./ >/dev/null 2>&1 && rm -rf teeworlds-0.7.5-linux_x86_64 >/dev/null 2>&1\"",
"SkipOnFailure": false
},
{
"UpdateStageName": "Create User Directory",
"UpdateSourcePlatform": "All",
"UpdateSource": "CreateDirectory",
"UpdateSourceArgs": "{{$FullBaseDir}}user"
},
{
"UpdateStageName": "Serverconfig.cfg File Download",
"UpdateSourcePlatform": "All",
"UpdateSource": "FetchURL",
"UpdateSourceData": "https://raw.githubusercontent.com/CubeCoders/AMPTemplates/main/teeworldsserverconfig.cfg",
"UpdateSourceArgs": "serverconfig.cfg",
"UpdateSourceTarget": "{{$FullBaseDir}}user",
"OverwriteExistingFiles": false
},
{
"UpdateStageName": "Create Storage.cfg File",
"UpdateSourcePlatform": "All",
"UpdateSource": "CreateFile",
"UpdateSourceData": "add_path user\nadd_path $DATADIR\nadd_path $CURRENTDIR",
"UpdateSourceArgs": "{{$FullBaseDir}}storage.cfg",
"OverwriteExistingFiles": false
}
]