Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| f840b462c7 |
@@ -89,22 +89,11 @@ $dist = Join-Path $repoRoot 'dist'
|
|||||||
New-Item -ItemType Directory -Path $dist -Force | Out-Null
|
New-Item -ItemType Directory -Path $dist -Force | Out-Null
|
||||||
|
|
||||||
Write-Host "Compiling installer with $iscc"
|
Write-Host "Compiling installer with $iscc"
|
||||||
# Run ISCC from the .iss directory with just the bare filename. When invoked
|
# /Qp gives quiet output but still prints the line each source file matches,
|
||||||
# with a deeply-nested absolute path on the act-runner host (under
|
# which surfaces the exact source path that ISCC fails on (the default mode
|
||||||
# %SystemRoot%\System32\config\systemprofile\...), ISCC sometimes prints a
|
# only logs "The system cannot find the path specified." with no detail).
|
||||||
# generic "The system cannot find the path specified." before it touches any
|
& $iscc "/DAppVersion=$version" "/Qp" $iss
|
||||||
# source files. cd-ing first sidesteps it.
|
if ($LASTEXITCODE -ne 0) { throw 'Inno Setup compile failed' }
|
||||||
$issDir = Split-Path $iss -Parent
|
|
||||||
$issName = Split-Path $iss -Leaf
|
|
||||||
Push-Location $issDir
|
|
||||||
try {
|
|
||||||
Write-Host " cwd=$issDir"
|
|
||||||
& $iscc "/DAppVersion=$version" $issName
|
|
||||||
$exit = $LASTEXITCODE
|
|
||||||
} finally {
|
|
||||||
Pop-Location
|
|
||||||
}
|
|
||||||
if ($exit -ne 0) { throw "Inno Setup compile failed (exit $exit)" }
|
|
||||||
|
|
||||||
$out = Get-Item (Join-Path $dist "WebhookServer-Setup-$version.exe")
|
$out = Get-Item (Join-Path $dist "WebhookServer-Setup-$version.exe")
|
||||||
Write-Host ""
|
Write-Host ""
|
||||||
|
|||||||
Reference in New Issue
Block a user