File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -23,8 +23,8 @@ if (-not $cargoWix) {
2323 cargo install cargo- wix
2424}
2525
26- # Verify main.wxs exists (we use custom WiX config, not cargo wix init )
27- $wixFile = Join-Path $ProjectDir " packaging\windows \main.wxs"
26+ # Verify wix/ main.wxs exists (cargo-wix expects this default location )
27+ $wixFile = Join-Path $ProjectDir " wix \main.wxs"
2828if (-not (Test-Path $wixFile )) {
2929 Write-Error " WiX source file not found: $wixFile "
3030 exit 1
@@ -33,7 +33,7 @@ if (-not (Test-Path $wixFile)) {
3333# Build MSI with version parameter
3434Write-Host " Building MSI..."
3535Push-Location $ProjectDir
36- cargo wix -- nocapture -- target $Target -- output " $BuildDir \$MsiName " -- input " $wixFile " - D " Version= $Version "
36+ cargo wix -- nocapture -- target $Target -- output " $BuildDir \$MsiName " -- - DVersion = " $Version "
3737Pop-Location
3838
3939Write-Host " MSI created at: $BuildDir \$MsiName "
File renamed without changes.
You can’t perform that action at this time.
0 commit comments