Mother2GbaTranslation/docker-scripts/docker-build-patch-script

19 lines
555 B
PowerShell
Executable File

#!/bin/pwsh
$Env:PATH += ":/home/m2gba/.dotnet:/home/m2gba/.dotnet/tools"
Copy-Item -Path "\home\m2gba\src\*" -Destination "\opt\src" -Recurse -Force
"Starting to build tools"
./build-tools.ps1
if ($LASTEXITCODE -ne 0) { exit -1 }
"Starting to build rom"
./build-appveyor.ps1
if ($LASTEXITCODE -ne 0) { exit -1 }
"Copying patch to output"
New-Item -Path "\home\m2gba\src" -Name "out" -ItemType "directory" -Force
Copy-Item -Path ".\bin\m12.ips" "\home\m2gba\src\out"
"Build successful, please review the folder ./out/m12.ips for the resulting patch"