Skip to content
This repository has been archived by the owner on May 30, 2018. It is now read-only.

Commit

Permalink
Add script to change version manually and change default encoding to …
Browse files Browse the repository at this point in the history
…ASCII [ci skip]
  • Loading branch information
Archomeda committed Mar 10, 2015
1 parent 7d5f7f6 commit bba2ed2
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
2 changes: 1 addition & 1 deletion appveyor/ApplyVersion.ps1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Function ApplyVersion($file, $regex, $replace, $encoding = "UTF8") {
Function ApplyVersion($file, $regex, $replace, $encoding = "ASCII") {
(Get-Content $file -encoding $encoding) -replace $regex,$replace | Set-Content $file -encoding $encoding
}

Expand Down
14 changes: 14 additions & 0 deletions appveyor/SetVersion.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
param (
[string]$version = $(throw "No version specified")
)

. ./appveyor/ApplyVersion.ps1

Write-Host "Apply to appveyor.yml" -ForegroundColor "Yellow"
ApplyVersionToAppVeyorYml "$version.{build}"

Write-Host "Apply to src\VersionInfo.h" -ForegroundColor "Yellow"
ApplyVersionToVersionInfoH "$version-dev"

Write-Host "Apply to src\LightFXExtender.rc" -ForegroundColor "Yellow"
ApplyVersionToResource "$version.0-dev"

0 comments on commit bba2ed2

Please sign in to comment.