diff deploy/win32/generate-wxs.ps1 @ 2549:8ac67c315afa

The installer file doesn't permit -pre in version string
author Chris Cannam
date Mon, 18 May 2020 15:29:46 +0100
parents 119588c42772
children
line wrap: on
line diff
--- a/deploy/win32/generate-wxs.ps1	Mon May 18 14:24:30 2020 +0100
+++ b/deploy/win32/generate-wxs.ps1	Mon May 18 15:29:46 2020 +0100
@@ -2,7 +2,7 @@
 Set-StrictMode -Version 2.0
 $ErrorActionPreference = "Stop"
 
-$version = (Get-Content version.h) -replace '#define SV_VERSION ','' -replace '"',''
+$version = (Get-Content version.h) -replace '#define SV_VERSION ','' -replace '"','' -replace '-pre.*',''
 $wxs = "deploy\win32\sonic-visualiser.wxs"
 
 $in = "$wxs.in"