12 lines
436 B
PowerShell
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 }
|