Mercurial > hg > sonic-visualiser
view deploy/win32/generate-wxs.ps1 @ 2530:89895d455b98
Ensure correct width is calculated when requesting to render whole of a view that hasn't finished loading yet; avoid over-eagerly feeding unknown binary files to RDF decoder on load
author | Chris Cannam |
---|---|
date | Thu, 30 Apr 2020 16:03:51 +0100 |
parents | 119588c42772 |
children | 8ac67c315afa |
line wrap: on
line source
Set-StrictMode -Version 2.0 $ErrorActionPreference = "Stop" $version = (Get-Content version.h) -replace '#define SV_VERSION ','' -replace '"','' $wxs = "deploy\win32\sonic-visualiser.wxs" $in = "$wxs.in" echo "Generating $wxs..." echo " ...for SV version $version" echo " ...from $in" echo "" if (!(Test-Path -Path $in -PathType Leaf)) { echo "ERROR: Input file $in not found" exit 1 } (Get-Content $in) -replace '@VERSION@', $version -replace '@W@', '<!-- DO NOT EDIT THIS FILE: it is auto-generated -->' | Out-File -encoding ASCII $wxs echo "Done"