I just have this at the moment. Although I have tried with various combinations and nothing seems to work. I’m not sure I fully understand the difference or intended use of the following
UpdateSourceData
UpdateSourceArgs
UpdateSourceTarget
In my mind I read “SourceData” as file source and “SourceTarget” as file destination.
[
{
"UpdateStageName": "Copy and extract pr files...",
"UpdateSourcePlatform": "Windows",
"UpdateSource": "CopyFilePath",
"UpdateSourceData": "C:\\pr.zip",
"UpdateSourceArgs": "",
"UpdateSourceTarget": "serverfiles",
"UnzipUpdateSource": true,
"OverwriteExistingFiles": true,
"DeleteAfterExtract": false,
"OneShot": false
}
]
EDIT:
Okay… so playing around I managed to get something working, but it isnt quite right.
[
{
"UpdateStageName": "Copy and extract pr files...",
"UpdateSourcePlatform": "Windows",
"UpdateSource": "CopyFilePath",
"UpdateSourceData": "{{$FullRootDir}}\\pr.zip",
"UpdateSourceArgs": "C:\\pr.zip",
"UpdateSourceTarget": "serverfiles",
"UnzipUpdateSource": true,
"OverwriteExistingFiles": true,
"DeleteAfterExtract": false,
"OneShot": false
}
]
Trying to update the application manually does nothing, but starting the app at least shows some logs now. I’m not sure why it silently fails sometimes…
I can see the zip file is copied from C:\pr.zip to C:\AMPDatastore\Instances\prtest0101\project-reality. “C:\AMPDatastore\Instances\prtest0101\project-reality\pr.zip”
But as you can see from the logs, its expecting the file to be in the directory up from project-reality. I haven’t told AMP that the file should be in "C:\AMPDatastore\Instances\prtest0101", but thats where its looking… Is there something hardcoded in AMPs code thats causing this? I suspect this isn’t intended behaviour and is a bug.
[21:32:06] [Core Info] : Startup mode is StartApplication.
[21:32:06] [Generic Info] : Specified executable 'C:\AMPDatastore\Instances\prtest0101\project-reality\serverfiles\prbf2_w32ded.exe does not exist. Updating application...
[21:32:06] [Core Info] : AMP is up to date.
[21:32:10] [Generic Info] : Extracting C:\AMPDatastore\Instances\prtest0101\pr.zip to C:\AMPDatastore\Instances\prtest0101\project-reality\serverfiles...
[21:32:10] [Generic Info] : Specified executable 'C:\AMPDatastore\Instances\prtest0101\project-reality\serverfiles\prbf2_w32ded.exe does not exist. Updating application...
[21:32:12] [Generic Info] : Extracting C:\AMPDatastore\Instances\prtest0101\pr.zip to C:\AMPDatastore\Instances\prtest0101\project-reality\serverfiles...