1 # Package park sequences
2 New-Item -ItemType Directory "artifacts" -Force > $null
3 Get-ChildItem -Attributes Directory "title" | ForEach-Object {
4     $destFile = "..\..\artifacts\$($_.Name).parkseq"
5     Write-Host "Creating $($_.Name).parkseq..."
6     Push-Location $_.FullName
7         Remove-Item $destFile -ErrorAction SilentlyContinue
8         7z a -tzip -mx9 -mtc=off -r $destFile * > $null
9         if ($LASTEXITCODE -ne 0)
10         {
11             Write-Host "Failed to create $($_.Name)" -ForegroundColor Red
12         }
13     Pop-Location
14 }
15 Set-Location artifacts
16 Copy-Item v0.1.2.parkseq openrct2.parkseq
17 7z a -tzip -mx9 -mtc=off -r title-sequences.zip rct1.parkseq rct1aa.parkseq rct1aall.parkseq rct2.parkseq openrct2.parkseq
18