Files
desktop-edge-win/scripts/update-versions.ps1
Clint Dovholuk 2f7e53f02c Allow registry overrides.conflict.free (#992)
* feat: bump dependencies (NuGet 8 -> 10, NLog 5 -> 6)

* feat: shared IPC data structures for policy state

* feat: registry policy reader with WMI watcher

* feat: monitor service policy enforcement, maintenance window, deferred install

* feat: UI policy state propagation, locks, deferred-install + sentinel UX fix

* feat: ADMX/ADML templates, admin guide, helper script, test runbook

* chore: build tooling, MSI SHA256, version bump, release notes

* more reworking around the adml/admx/md

* build and upload ADMX/ADML admin templates zip

* updates from looking at / testing GPO UI

* missed the prepare-for-tests ps1

* add boms to all ps1's just in case

* update test-run for more vebosity to allow humans to understand

* more updates to release notes

* Fix alignment on "from" label for maintenance window

* Remove arrow pointing to task bar

* Remove unused selection changed stub

* Ensure logical hour value is passed to maintenance window start/end

* Fix invalid URL error not showing - ensure maintenance start/end time errors return correctly

Change variable names

* reworking new-upcoming-releasenotes

* publish admin templates zip + sha256 sidecar to GitHub release, update release note

* add tatooing words

* reword clamping words

---------

Co-authored-by: Christopher Britton <christopher.l.britton@outlook.com>
2026-05-06 09:14:57 -04:00

54 lines
2.0 KiB
PowerShell

param(
[string]$version
)
function NormalizeVersion([System.Version] $v) {
$major = $v.Major
$minor = $v.Minor
$build = $v.Build
$rev = $v.Revision
if ($major -lt 0) { $major = 0}
if ($minor -lt 0) { $major = 0}
if ($build -lt 0) { $build = 0}
if ($rev -lt 0) { $rev = 0}
$ver = "$major.$minor.$build.$rev"
return [System.Version]($ver)
}
echo "==================================== update-versions.ps1 begins ===================================="
if(-not $version.Trim()) {
echo "Obtaining version information from .\version"
#$rawVersion=(Get-Content -Path .\version)
$installerVersion=(Get-Content -Path ${scriptPath}\..\version)
if($null -ne $env:ZITI_DESKTOP_EDGE_VERSION) {
echo "ZITI_DESKTOP_EDGE_VERSION is set. Using that: ${env:ZITI_DESKTOP_EDGE_VERSION} instead of version found in file ${installerVersion}"
$installerVersion=$env:ZITI_DESKTOP_EDGE_VERSION
echo "Version set to: ${installerVersion}"
}
} else {
$installerVersion = $version
}
$v=NormalizeVersion($installerVersion)
echo " version: $v"
echo ""
$assemblyInfo="./DesktopEdge/Properties/AssemblyInfo.cs"
$assemblyInfoReplaced="${assemblyInfo}.replaced"
echo "Replacing version in $assemblyInfo into $assemblyInfoReplaced"
(Get-Content -Encoding UTF8 -path $assemblyInfo -Raw) -replace 'Version\("[0-9]*.[0-9]*.[0-9]*.[0-9]*', "Version(""${v}" | Set-Content -Encoding UTF8 -Path "$assemblyInfoReplaced" -NoNewline
Remove-Item $assemblyInfo
Move-Item $assemblyInfoReplaced $assemblyInfo
$assemblyInfo="./ZitiUpdateService/Properties/AssemblyInfo.cs"
$assemblyInfoReplaced="${assemblyInfo}.replaced"
echo "Replacing version in $assemblyInfo into $assemblyInfoReplaced"
(Get-Content -Encoding UTF8 -path $assemblyInfo -Raw) -replace 'Version\("[0-9]*.[0-9]*.[0-9]*.[0-9]*', "Version(""${v}" | Set-Content -Encoding UTF8 -Path "$assemblyInfoReplaced" -NoNewline
Remove-Item $assemblyInfo
Move-Item $assemblyInfoReplaced $assemblyInfo
echo "==================================== update-versions.ps1 complete ===================================="