feat(version): support 4.6.51

This commit is contained in:
capyb2222 committed 2026-09-29 17:14:27 -07:00
1 parent 530def48df
commit dfe7292a14
182 files changed
+811980 -87492

No files matched your search

+18 -1
View File
@@ -1,7 +1,8 @@
param(
[string]$Config = "Release",
[switch]$Clean,
[switch]$Test
[switch]$Test,
[switch]$Package
)
$ErrorActionPreference = "Stop"
@@ -38,4 +39,20 @@ if ($Test) {
if ($LASTEXITCODE -ne 0) { throw "tests failed" }
}
# A folder that runs as is: the exe finds config\ next to itself.
if ($Package) {
$dist = Join-Path $build "dist\CapySR-win64"
if (Test-Path $dist) { Remove-Item -Recurse -Force $dist }
New-Item -ItemType Directory -Force -Path (Join-Path $dist "data") | Out-Null
Copy-Item (Join-Path $build "bin\capysr.exe") $dist
foreach ($dir in "config", "resources", "launcher") {
Copy-Item -Recurse (Join-Path $root $dir) (Join-Path $dist $dir)
}
Copy-Item (Join-Path $root "data\freesr-data.json") (Join-Path $dist "data")
$zip = "$dist.zip"
if (Test-Path $zip) { Remove-Item -Force $zip }
Compress-Archive -Path "$dist\*" -DestinationPath $zip
Write-Host "packaged $zip"
}
Write-Host "built $build\bin\capysr.exe" -ForegroundColor Green