update travis to get versions updated automatically if needed

This commit is contained in:
dovholuknf
2020-10-20 10:28:43 -04:00
parent 258e4b5c6f
commit 59f5e08e34
-14
View File
@@ -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 ===================================="