From aa9ca1329c30b594a57bebf81de1daf3c3448339 Mon Sep 17 00:00:00 2001 From: Mohammed Date: Fri, 1 Nov 2024 06:22:30 +0000 Subject: [PATCH] fix wix issue on versioning of windows installer --- scripts/win_installer/script.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/win_installer/script.ps1 b/scripts/win_installer/script.ps1 index 2d8fac76cc..fa0e745275 100644 --- a/scripts/win_installer/script.ps1 +++ b/scripts/win_installer/script.ps1 @@ -70,7 +70,7 @@ function BuildInstaller($arch) Invoke-WebRequest "https://plaintext.ir/wintun-0.14.1.zip" -OutFile wintun.zip Expand-Archive wintun.zip Copy-Item .\wintun\wintun\bin\$wintun_arch\wintun.dll .\build\wintun.dll - $installerVersion = $version -replace '(-.*$)', '' + $installerVersion = $version -replace '(^v|-.+$)', '' $productWxs = Get-Content -Path Product.wxs $newContent = $productWxs -replace "skywireVersion", $installerVersion Set-Content -Path Product.wxs -Value $newContent