Mercurial > hg > sonic-visualiser
comparison deploy/win32/generate-wxs.ps1 @ 2448:119588c42772
Generate the WXS files from templated inputs, substituting in the version and redistributable paths; also include OpenSSL libraries in the package, fixing #1895 Windows build fails to open https locations
author | Chris Cannam |
---|---|
date | Tue, 14 Jan 2020 13:23:04 +0000 |
parents | |
children | 8ac67c315afa |
comparison
equal
deleted
inserted
replaced
2447:d7b724db4bd0 | 2448:119588c42772 |
---|---|
1 | |
2 Set-StrictMode -Version 2.0 | |
3 $ErrorActionPreference = "Stop" | |
4 | |
5 $version = (Get-Content version.h) -replace '#define SV_VERSION ','' -replace '"','' | |
6 $wxs = "deploy\win32\sonic-visualiser.wxs" | |
7 | |
8 $in = "$wxs.in" | |
9 | |
10 echo "Generating $wxs..." | |
11 echo " ...for SV version $version" | |
12 echo " ...from $in" | |
13 echo "" | |
14 | |
15 if (!(Test-Path -Path $in -PathType Leaf)) { | |
16 echo "ERROR: Input file $in not found" | |
17 exit 1 | |
18 } | |
19 | |
20 (Get-Content $in) -replace '@VERSION@', $version -replace '@W@', '<!-- DO NOT EDIT THIS FILE: it is auto-generated -->' | Out-File -encoding ASCII $wxs | |
21 | |
22 echo "Done" |