# 설치 프로그램 빌드 (Windows). scripts/build-release.sh 로 만든 dist\payload 가 있어야 한다. # powershell -ExecutionPolicy Bypass -File installer\build.ps1 [-Iscc ] # 결과: dist\VoiceChangerSetup.exe param([string]$Iscc) $ErrorActionPreference = 'Stop' $here = Split-Path -Parent $PSScriptRoot if (-not (Test-Path (Join-Path $here 'dist\payload\VoiceChanger.exe'))) { throw 'dist\payload 가 없습니다. scripts/build-release.sh 를 먼저 실행하세요' } if (-not $Iscc) { $Iscc = @("$env:LOCALAPPDATA\Programs\Inno Setup 6\ISCC.exe", "${env:ProgramFiles(x86)}\Inno Setup 6\ISCC.exe", "$env:ProgramFiles\Inno Setup 6\ISCC.exe") | Where-Object { Test-Path $_ } | Select-Object -First 1 } if (-not $Iscc) { throw 'Inno Setup 6 (https://jrsoftware.org/isdl.php) 를 설치하거나 -Iscc 로 ISCC.exe 경로를 주세요' } & $Iscc (Join-Path $here 'installer\VoiceChanger.iss') if ($LASTEXITCODE -ne 0) { throw "ISCC 실패 ($LASTEXITCODE)" }