57 lines
2.1 KiB
JSON
57 lines
2.1 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",
|
||
|
"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'"
|
||
|
},
|
||
|
{
|
||
|
"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"
|
||
|
}
|
||
|
]
|