Skip to content

Commit ab23832

Browse files
fix(newm-admin): msi build
1 parent db5e029 commit ab23832

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

newm-admin/packaging/windows/build-msi.ps1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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"
2828
if (-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
3434
Write-Host "Building MSI..."
3535
Push-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"
3737
Pop-Location
3838

3939
Write-Host "MSI created at: $BuildDir\$MsiName"

0 commit comments

Comments
 (0)