Skip to content

Commit

Permalink
Revert "build.ps1 - Upgrade to support new version scheme"
Browse files Browse the repository at this point in the history
This reverts commit 1f39e42.
  • Loading branch information
amaitland committed Apr 10, 2019
1 parent 0987e32 commit 9a8736c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@ function WriteAssemblyVersion
$CurrentYear = Get-Date -Format yyyy

$NewString = $AssemblyInfo -replace $Regex, "public const string AssemblyVersion = ""$AssemblyVersion"""
$NewString = $NewString -replace $Regex2, "public const string AssemblyFileVersion = ""$AssemblyVersion"""
$NewString = $NewString -replace $Regex2, "public const string AssemblyFileVersion = ""$AssemblyVersion.0"""
$NewString = $NewString -replace $Regex3, "public const string AssemblyCopyright = ""Copyright © $CurrentYear The CefSharp Authors"""

$Utf8NoBomEncoding = New-Object System.Text.UTF8Encoding $False
Expand All @@ -358,7 +358,7 @@ function WriteVersionToManifest($manifest)
$Regex = 'assemblyIdentity version="(.*?)"';

$ManifestData = Get-Content -Encoding UTF8 $Filename
$NewString = $ManifestData -replace $Regex, "assemblyIdentity version=""$AssemblyVersion"""
$NewString = $ManifestData -replace $Regex, "assemblyIdentity version=""$AssemblyVersion.0"""

$Utf8NoBomEncoding = New-Object System.Text.UTF8Encoding $False
[System.IO.File]::WriteAllLines($Filename, $NewString, $Utf8NoBomEncoding)
Expand Down

0 comments on commit 9a8736c

Please sign in to comment.