75 lines
2.9 KiB
JSON
75 lines
2.9 KiB
JSON
[
|
|
{
|
|
"UpdateStageName":"Server Directory Creation",
|
|
"UpdateSourcePlatform":"All",
|
|
"UpdateSource":"CreateDirectory",
|
|
"UpdateSourceArgs":"{{$FullBaseDir}}server"
|
|
},
|
|
{
|
|
"UpdateStageName":"Data Directory Creation",
|
|
"UpdateSourcePlatform":"All",
|
|
"UpdateSource":"CreateDirectory",
|
|
"UpdateSourceArgs":"{{$FullBaseDir}}data"
|
|
},
|
|
{
|
|
"UpdateStageName":"Server Download",
|
|
"UpdateSourcePlatform":"All",
|
|
"UpdateSource":"FetchURL",
|
|
"UpdateSourceData":"{{DownloadURL}}",
|
|
"UpdateSourceTarget":"{{$FullBaseDir}}server",
|
|
"UpdateSourceArgs":"FoundryVTT.zip",
|
|
"UnzipUpdateSource":true,
|
|
"OverwriteExistingFiles":true,
|
|
"DeleteAfterExtract":true
|
|
},
|
|
{
|
|
"UpdateStageName":"Node.js Download",
|
|
"UpdateSourcePlatform":"Linux",
|
|
"UpdateSource":"FetchURL",
|
|
"UpdateSourceData":"https://nodejs.org/download/release/{{NodeVersion}}/node-{{NodeVersion}}-linux-x64.tar.gz",
|
|
"UpdateSourceArch":"x86_64",
|
|
"UpdateSourceTarget":"{{$FullBaseDir}}"
|
|
},
|
|
{
|
|
"UpdateStageName":"Node.js Extract",
|
|
"UpdateSourcePlatform":"Linux",
|
|
"UpdateSource":"Executable",
|
|
"UpdateSourceData":"/bin/bash",
|
|
"UpdateSourceArgs":"-c 'cd foundry-vtt && rm -Rf node && tar xf node-{{NodeVersion}}-linux-x64.tar.gz && mv node-{{NodeVersion}}-linux-x64 node && rm node-{{NodeVersion}}-linux-x64.tar.gz'",
|
|
"UpdateSourceArch":"x86_64"
|
|
},
|
|
{
|
|
"UpdateStageName":"Node.js Download",
|
|
"UpdateSourcePlatform":"Linux",
|
|
"UpdateSource":"FetchURL",
|
|
"UpdateSourceData":"https://nodejs.org/download/release/{{NodeVersion}}/node-{{NodeVersion}}-linux-arm64.tar.gz",
|
|
"UpdateSourceArch":"aarch64",
|
|
"UpdateSourceTarget":"{{$FullBaseDir}}"
|
|
},
|
|
{
|
|
"UpdateStageName":"Node.js Extract",
|
|
"UpdateSourcePlatform":"Linux",
|
|
"UpdateSource":"Executable",
|
|
"UpdateSourceData":"/bin/bash",
|
|
"UpdateSourceArgs":"-c 'cd foundry-vtt && rm -Rf node && tar xf node-{{NodeVersion}}-linux-arm64.tar.gz && mv node-{{NodeVersion}}-linux-arm64 node && rm node-{{NodeVersion}}-linux-arm64.tar.gz'",
|
|
"UpdateSourceArch":"aarch64"
|
|
},
|
|
{
|
|
"UpdateStageName":"Node.js Download",
|
|
"UpdateSourcePlatform":"Windows",
|
|
"UpdateSource":"FetchURL",
|
|
"UpdateSourceData":"https://nodejs.org/download/release/{{NodeVersion}}/node-{{NodeVersion}}-win-x64.zip",
|
|
"UpdateSourceTarget":"{{$FullBaseDir}}",
|
|
"UnzipUpdateSource":true,
|
|
"OverwriteExistingFiles":true,
|
|
"DeleteAfterExtract":true
|
|
},
|
|
{
|
|
"UpdateStageName":"Node.js Extract",
|
|
"UpdateSourcePlatform":"Windows",
|
|
"UpdateSource":"Executable",
|
|
"UpdateSourceData":"cmd.exe",
|
|
"UpdateSourceArgs":"/C cd foundry-vtt & rmdir /S /Q node & rename node-{{NodeVersion}}-win-x64 node"
|
|
}
|
|
]
|