Skip to content

Commit

Permalink
Fix encoding issues with script
Browse files Browse the repository at this point in the history
  • Loading branch information
dsafa committed May 29, 2019
1 parent a78ceab commit 98d87a2
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
Binary file modified src/AudioBandInstaller/Product.wxs
Binary file not shown.
3 changes: 1 addition & 2 deletions tools/patchinstaller.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,4 @@ $targetFile = $PSScriptRoot + '/../src/AudioBandInstaller/Product.wxs'
$versionReplace = "<?define ProductVersion = '$newVersion'?>"
$guidReplace = "<?define ProductId = '$newGuid'?>"

(Get-Content -Encoding UTF8 "$targetFile").replace("$productVersionToken", "$versionReplace") | Set-Content -Encoding Unicode "$targetFile"
(Get-Content -Encoding UTF8 "$targetFile").replace("$productIdToken", "$guidReplace") | Set-Content -Encoding Unicode "$targetFile"
(Get-Content "$targetFile").replace("$productVersionToken", "$versionReplace").replace("$productIdToken", "$guidReplace") | Set-Content -Encoding UTF8 "$targetFile"

0 comments on commit 98d87a2

Please sign in to comment.