Skip to content

Commit

Permalink
Get correct installer path
Browse files Browse the repository at this point in the history
  • Loading branch information
dalyIsaac committed Jun 26, 2022
1 parent 8768a25 commit c277fe0
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions scripts/Create-Installer.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,18 @@ $buildDir = "src\Whim.Runner\bin\${Architecture}\Release\net6.0-windows10.0.1904
$version = (Get-Item "${buildDir}\Whim.Runner.exe").VersionInfo.ProductVersion
$installerName = "WhimInstaller-${Architecture}-${version}"

& "C:\Program Files (x86)\Inno Setup 6\ISCC.exe" .\whim-installer.iss `
$output = & "C:\Program Files (x86)\Inno Setup 6\ISCC.exe" .\whim-installer.iss `
/DMyBuildDir="$buildDir" `
/DMyOutputBaseFilename="$installerName" `
/DMyVersion="$version"

return "bin\${installerName}.exe"
$path = $output.Split("\n")[-1]

# Test if the installer exists.
if (Test-Path $path) {
return $path
} else {
Write-Host "Failed to create installer"
Write-Host $output
exit 1
}

0 comments on commit c277fe0

Please sign in to comment.