Skip to content

Commit

Permalink
New-Release: fix more 32-bit stuff in WiX
Browse files Browse the repository at this point in the history
  • Loading branch information
electroly committed Oct 29, 2023
1 parent ac7634e commit acae868
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ps1/New-Release.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,11 @@ for ($i = 5; $i -lt $heatLines.Length; $i++) {
$filesXml = $filesXml.Substring(0, $filesXml.LastIndexOf('</Directory>')).Replace("<Component ", '<Component Win64="yes" ')

$wxs = (Get-Content "$srcdir\SqlNotebook.wxs").Replace("<!--FILES-->", $filesXml).Replace("<!--REFS-->", $refsXml).Replace("<!--PLATFORM-->", $Platform)

if ($Platform -eq 'x86') {
$wxs = $wxs.Replace('Win64="yes"', '').Replace('ProgramFiles64Folder', 'ProgramFilesFolder')
}

Set-Content "$relDir\SqlNotebook.wxs" $wxs

& "$wixDir\candle.exe" -nologo -pedantic "$relDir\SqlNotebook.wxs" | Write-Output
Expand Down

0 comments on commit acae868

Please sign in to comment.