AMPTemplates/geyserupdates.json

85 lines
2.9 KiB
JSON

[
{
"UpdateStageName":"Server Download",
"UpdateSourcePlatform":"All",
"UpdateSource":"FetchURL",
"UpdateSourceData":"https://ci.opencollab.dev/job/GeyserMC/job/Geyser/job/master/lastStableBuild/artifact/bootstrap/standalone/build/libs/Geyser-Standalone.jar",
"UpdateSourceArgs":"Geyser.jar",
"UpdateSourceTarget":"{{$FullRootDir}}",
"OverwriteExistingFiles":true
},
{
"UpdateStageName":"Java Download",
"UpdateSourcePlatform":"Windows",
"UpdateSource":"FetchURL",
"UpdateSourceData":"https://download.oracle.com/java/{{JavaVersion}}/latest/jdk-{{JavaVersion}}_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 .\\geyser\\java"
},
{
"UpdateStageName":"Java Download",
"UpdateSourcePlatform":"Linux",
"UpdateSource":"FetchURL",
"UpdateSourceData":"https://download.oracle.com/java/{{JavaVersion}}/latest/jdk-{{JavaVersion}}_linux-x64_bin.tar.gz",
"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 .\\geyser\\jdk* .\\geyser\\java"
},
{
"UpdateStageName":"Replace Java Directory",
"UpdateSourcePlatform":"Linux",
"UpdateSource":"Executable",
"UpdateSourceData":"/bin/bash",
"UpdateSourceArgs":"-c 'rm -rf ./geyser/java ; mv ./geyser/jdk* ./geyser/java'"
},
{
"UpdateStageName":"Pause Update Stages",
"UpdateSourcePlatform":"All",
"UpdateSource":"Pause",
"UpdateSourceArgs":"2"
},
{
"UpdateStageName":"Set Executable Flag",
"UpdateSourcePlatform":"Linux",
"UpdateSource":"SetExecutableFlag",
"UpdateSourceArgs":"{{$FullBaseDir}}java/bin/java"
},
{
"UpdateStageName":"Start Server",
"UpdateSourcePlatform":"All",
"UpdateSource":"StartApplication"
},
{
"UpdateStageName":"Wait For Server Start",
"UpdateSourcePlatform":"All",
"UpdateSource":"WaitForStartupComplete"
},
{
"UpdateStageName":"Stop Server",
"UpdateSourcePlatform":"All",
"UpdateSource":"ShutdownApplication"
}
]