From 59f5e08e349ca265ca7ee014dfe8c9ce04973d9b Mon Sep 17 00:00:00 2001 From: dovholuknf <46322585+dovholuknf@users.noreply.github.com> Date: Tue, 20 Oct 2020 10:28:43 -0400 Subject: [PATCH] update travis to get versions updated automatically if needed --- update-versions.ps1 | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/update-versions.ps1 b/update-versions.ps1 index e4b2f531..186e8f06 100644 --- a/update-versions.ps1 +++ b/update-versions.ps1 @@ -14,28 +14,14 @@ $installerReplaced="${installer}.replaced" echo "Replacing version in $assemblyInfo into $assemblyInfoReplaced" (Get-Content -Encoding UTF8 -path $assemblyInfo -Raw) -replace 'Version\("[0-9]*.[0-9]*.[0-9]*.0', "Version\(""${v}.0" | Set-Content -Encoding UTF8 -Path "$assemblyInfoReplaced" -NoNewline - -echo "echoing content of $assemblyInfoReplaced" -(Get-Content -Encoding UTF8 -path $assemblyInfoReplaced -Raw) - rm $assemblyInfo mv $assemblyInfoReplaced $assemblyInfo -echo "echoing content of $assemblyInfo" -(Get-Content -Encoding UTF8 -path $assemblyInfo -Raw) - echo "Replacing version in $installer into $installerReplaced" (Get-Content -Encoding UTF8 -path $installer -Raw) -replace '"ProductVersion" Value="[0-9]*\.[0-9]*\.[0-9]*"', """ProductVersion"" Value=""${v}""" | Set-Content -Path "${installer}.replaced" -Encoding UTF8 -NoNewline - -echo "echoing content of $installerReplaced" -(Get-Content -Encoding UTF8 -path $installerReplaced -Raw) - rm $installer mv $installerReplaced $installer -echo "echoing content of $installer" -(Get-Content -Encoding UTF8 -path $installer -Raw) - git status echo "==================================== update-versions.ps1 complete ====================================" \ No newline at end of file