Skip to content

Commit 8fc0520

Browse files
committed
fix(ci): Hardcode MSI version in WiX file
1 parent e46a0a2 commit 8fc0520

2 files changed

Lines changed: 2 additions & 8 deletions

File tree

.github/workflows/release.yml

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -59,13 +59,7 @@ jobs:
5959
run: cargo install cargo-wix
6060

6161
- name: Build MSI installer
62-
shell: pwsh
63-
run: |
64-
$version = (Select-String -Path Cargo.toml -Pattern '^version = "(.+)"' | Select-Object -First 1).Matches.Groups[1].Value
65-
# Convert semver with prerelease to MSI-compatible format (x.y.z.w)
66-
$msiVersion = $version -replace '-.*', '' -replace '^(\d+\.\d+\.\d+)$', '$1.0'
67-
Write-Host "Building MSI with version: $msiVersion"
68-
cargo wix --nocapture -D Version=$msiVersion
62+
run: cargo wix --nocapture
6963

7064
- name: Copy MSI to workspace root
7165
run: copy target\wix\*.msi .\ferrite-windows-x64.msi

wix/main.wxs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
Manufacturer='OlaProeis'
1616
Language='1033'
1717
Codepage='1252'
18-
Version='$(var.Version)'>
18+
Version='0.2.5.2'>
1919

2020
<Package
2121
Id='*'

0 commit comments

Comments
 (0)