mirror of
https://github.com/openziti/desktop-edge-win.git
synced 2026-10-14 16:50:03 +00:00
update travis to get versions updated automatically if needed
This commit is contained in:
@@ -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 ===================================="
|
||||
Reference in New Issue
Block a user