@@ -79,43 +79,6 @@ Write-Output "Starting new installer, please exit when done installing"
7979$out = Invoke-Expression " .\build\vstudio\Finestray-$newVersion -win64.exe" | Out-String
8080Write-Output $out
8181
82- # $installerHash = (Get-FileHash ".\build\vstudio\Finestray-$newVersion-win64.exe" -Algorithm SHA256).Hash
83- #
84- # Write-Output "Creating new manifest directory"
85- # if (!(Test-Path "manifests\b\Benbuck\Finestray\$newVersion.0.0\")) {
86- # New-Item "manifests\b\Benbuck\Finestray\$newVersion.0.0\"
87- # }
88- #
89- # Write-Output "Updating installer yaml"
90- # if (!(Test-Path "manifests\b\Benbuck\Finestray\$newVersion.0.0\Benbuck.Finestray.installer.yaml")) {
91- # Copy-Item -Path "manifests\b\Benbuck\Finestray\$oldVersion.0.0\Benbuck.Finestray.installer.yaml" -Destination "manifests\b\Benbuck\Finestray\$newVersion.0.0\"
92- # }
93- # $content = (Get-Content "manifests\b\Benbuck\Finestray\$newVersion.0.0\Benbuck.Finestray.installer.yaml")
94- # $content = $content -replace "PackageVersion: $oldVersion.0.0", "PackageVersion: $newVersion.0.0"
95- # $content = $content -replace "-$oldVersion-", "-$newVersion-"
96- # $content = $content -replace "/v$oldVersion/", "/v$newVersion/"
97- # $content = $content -replace "InstallerSha256: .*", "InstallerSha256: $installerHash"
98- # $content = $content -replace "ReleaseDate: .*", "ReleaseDate: $dateString"
99- # Set-Content -Path "manifests\b\Benbuck\Finestray\$newVersion.0.0\Benbuck.Finestray.installer.yaml" -Value $content
100- #
101- # Write-Output "Updating locale yaml"
102- # if (!(Test-Path "manifests\b\Benbuck\Finestray\$newVersion.0.0\Benbuck.Finestray.locale.en-us.yaml")) {
103- # Copy-Item -Path "manifests\b\Benbuck\Finestray\$oldVersion.0.0\Benbuck.Finestray.locale.en-us.yaml" -Destination "manifests\b\Benbuck\Finestray\$newVersion.0.0\"
104- # }
105- # $content = (Get-Content "manifests\b\Benbuck\Finestray\$newVersion.0.0\Benbuck.Finestray.locale.en-US.yaml")
106- # $content = $content -replace "PackageVersion: $oldVersion.0.0", "PackageVersion: $newVersion.0.0"
107- # $content = $content -replace "/v$oldVersion", "/v$newVersion"
108- # $content = $content -replace "InstallerSha256: .*", "InstallerSha256: $installerHash"
109- # Set-Content -Path "manifests\b\Benbuck\Finestray\$newVersion.0.0\Benbuck.Finestray.locale.en-US.yaml" -Value $content
110- #
111- # Write-Output "Updating yaml"
112- # if (!(Test-Path "manifests\b\Benbuck\Finestray\$newVersion.0.0\Benbuck.Finestray.yaml")) {
113- # Copy-Item -Path "manifests\b\Benbuck\Finestray\$oldVersion.0.0\Benbuck.Finestray.yaml" -Destination "manifests\b\Benbuck\Finestray\$newVersion.0.0\"
114- # }
115- # $content = (Get-Content "manifests\b\Benbuck\Finestray\$newVersion.0.0\Benbuck.Finestray.yaml")
116- # $content = $content -replace "PackageVersion: $oldVersion.0.0", "PackageVersion: $newVersion.0.0"
117- # Set-Content -Path "manifests\b\Benbuck\Finestray\$newVersion.0.0\Benbuck.Finestray.yaml" -Value $content
118-
11982Write-Output " Updating version in git"
12083git add -- all
12184git commit -- message " Update version to $newVersion "
0 commit comments