Files
HImage/scripts/package.ps1
T
2026-11-02 19:02:55 +08:00

12 lines
436 B
PowerShell

param([string]$Iscc = "ISCC.exe")
$ErrorActionPreference = 'Stop'
Push-Location "$PSScriptRoot/.."
try {
cargo build --release --locked
if ($LASTEXITCODE) { throw 'Release build failed' }
New-Item -ItemType Directory -Force dist | Out-Null
Copy-Item target/release/himage.exe dist/HImage.exe
& $Iscc platform/windows/installer.iss
if ($LASTEXITCODE) { throw 'Installer build failed' }
} finally { Pop-Location }