89 lines
3.1 KiB
JSON
89 lines
3.1 KiB
JSON
[
|
|
{
|
|
"UpdateStageName":"Server Download",
|
|
"UpdateSourcePlatform":"All",
|
|
"UpdateSource":"GithubRelease",
|
|
"UpdateSourceArgs":"Anuken/Mindustry",
|
|
"UpdateSourceData":"server-release.jar",
|
|
"UpdateSourceVersion":"{{ServerVersion}}",
|
|
"UpdateSourceTarget":"{{$FullRootDir}}",
|
|
"OverwriteExistingFiles":true
|
|
},
|
|
{
|
|
"UpdateStageName":"Java Download",
|
|
"UpdateSourcePlatform":"Windows",
|
|
"UpdateSource":"FetchURL",
|
|
"UpdateSourceData":"https://download.oracle.com/java/17/latest/jdk-17_windows-x64_bin.zip",
|
|
"UpdateSourceTarget":"{{$FullRootDir}}",
|
|
"UnzipUpdateSource":true,
|
|
"OverwriteExistingFiles":true,
|
|
"DeleteAfterExtract":true
|
|
},
|
|
{
|
|
"UpdateStageName":"Remove Old Java Directory",
|
|
"UpdateSourcePlatform":"Windows",
|
|
"UpdateSource":"Executable",
|
|
"UpdateSourceData":"cmd.exe",
|
|
"UpdateSourceArgs":"/C rd /S /Q .\\mindustry\\java"
|
|
},
|
|
{
|
|
"UpdateStageName":"Java Download",
|
|
"UpdateSourcePlatform":"Linux",
|
|
"UpdateSource":"FetchURL",
|
|
"UpdateSourceData":"https://download.oracle.com/java/17/latest/jdk-17_linux-x64_bin.tar.gz",
|
|
"UpdateSourceArch":"x86_64",
|
|
"UpdateSourceTarget":"{{$FullRootDir}}",
|
|
"UnzipUpdateSource":true,
|
|
"OverwriteExistingFiles":true,
|
|
"DeleteAfterExtract":true
|
|
},
|
|
{
|
|
"UpdateStageName":"Java Download",
|
|
"UpdateSourcePlatform":"Linux",
|
|
"UpdateSource":"FetchURL",
|
|
"UpdateSourceData":"https://download.oracle.com/java/17/latest/jdk-17_linux-aarch64_bin.tar.gz",
|
|
"UpdateSourceArch":"aarch64",
|
|
"UpdateSourceTarget":"{{$FullRootDir}}",
|
|
"UnzipUpdateSource":true,
|
|
"OverwriteExistingFiles":true,
|
|
"DeleteAfterExtract":true
|
|
},
|
|
{
|
|
"UpdateStageName":"Pause Update Stages",
|
|
"UpdateSourcePlatform":"Windows",
|
|
"UpdateSource":"Pause",
|
|
"UpdateSourceArgs":"1"
|
|
},
|
|
{
|
|
"UpdateStageName":"Rename New Java Directory",
|
|
"UpdateSourcePlatform":"Windows",
|
|
"UpdateSource":"Executable",
|
|
"UpdateSourceData":"cmd.exe",
|
|
"UpdateSourceArgs":"/C move .\\mindustry\\jdk* .\\mindustry\\java"
|
|
},
|
|
{
|
|
"UpdateStageName":"Replace Java Directory",
|
|
"UpdateSourcePlatform":"Linux",
|
|
"UpdateSource":"Executable",
|
|
"UpdateSourceData":"/bin/bash",
|
|
"UpdateSourceArgs":"-c 'rm -rf ./mindustry/java ; mv ./mindustry/jdk* ./mindustry/java ; chmod +x ./mindustry/java/bin/java'"
|
|
},
|
|
{
|
|
"UpdateStageName":"Create Maps Directory",
|
|
"UpdateSourcePlatform":"All",
|
|
"UpdateSource":"CreateDirectory",
|
|
"UpdateSourceArgs":"{{$FullBaseDir}}config/maps"
|
|
},
|
|
{
|
|
"UpdateStageName":"Create Mods Directory",
|
|
"UpdateSourcePlatform":"All",
|
|
"UpdateSource":"CreateDirectory",
|
|
"UpdateSourceArgs":"{{$FullBaseDir}}config/mods"
|
|
},
|
|
{
|
|
"UpdateStageName":"Create Saves Directory",
|
|
"UpdateSourcePlatform":"All",
|
|
"UpdateSource":"CreateDirectory",
|
|
"UpdateSourceArgs":"{{$FullBaseDir}}config/saves"
|
|
}
|
|
] |