comparison 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
comparison
equal deleted inserted replaced
2548:6f7065085911 2549:8ac67c315afa
1 1
2 Set-StrictMode -Version 2.0 2 Set-StrictMode -Version 2.0
3 $ErrorActionPreference = "Stop" 3 $ErrorActionPreference = "Stop"
4 4
5 $version = (Get-Content version.h) -replace '#define SV_VERSION ','' -replace '"','' 5 $version = (Get-Content version.h) -replace '#define SV_VERSION ','' -replace '"','' -replace '-pre.*',''
6 $wxs = "deploy\win32\sonic-visualiser.wxs" 6 $wxs = "deploy\win32\sonic-visualiser.wxs"
7 7
8 $in = "$wxs.in" 8 $in = "$wxs.in"
9 9
10 echo "Generating $wxs..." 10 echo "Generating $wxs..."