Skip to content

Commit b7b1815

Browse files
committed
Release v1.3.3 shared version source of truth
1 parent 0f5e210 commit b7b1815

6 files changed

Lines changed: 61 additions & 4 deletions

File tree

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
# Changelog
22

3+
## v1.3.3 - 2026-05-16
4+
5+
Version source-of-truth release.
6+
7+
### Changed
8+
9+
- The app, tray module, and installer now read the version from a single tracked `VERSION` file instead of keeping separate hardcoded version strings.
10+
- Apps and Features registration now uses that same shared version value.
11+
- Install packages now include the `VERSION` file so installed copies report the expected current version after updating.
12+
313
## v1.3.2 - 2026-05-16
414

515
Updater restart reliability release.

GW-Router-Logger.TrayMode.psm1

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,20 @@
22
# This keeps tray behavior behind the main GW-Router-Logger.ps1 entrypoint so
33
# installs only expose one app script to the user.
44

5+
function Get-AppVersionValue {
6+
$versionFilePath = Join-Path -Path $PSScriptRoot -ChildPath 'VERSION'
7+
if (Test-Path -LiteralPath $versionFilePath) {
8+
$value = (Get-Content -LiteralPath $versionFilePath -Raw -ErrorAction SilentlyContinue).Trim()
9+
if (-not [string]::IsNullOrWhiteSpace($value)) {
10+
return $value
11+
}
12+
}
13+
14+
return '1.3.3'
15+
}
16+
517
$script:AppName = 'GW Router Logger'
6-
$script:Version = '1.3.2'
18+
$script:Version = Get-AppVersionValue
719
$script:Publisher = 'Ghostwheel'
820
$script:GitHubOwner = 'GhostwheeI'
921
$script:GitHubRepo = 'GW-Router-Logger'

GW-Router-Logger.ps1

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,26 @@ param(
1212
$ErrorActionPreference = 'Stop'
1313
Set-StrictMode -Version 2
1414

15+
function Get-AppVersionValue {
16+
$versionFilePath = $null
17+
18+
if ($PSCommandPath) {
19+
$versionFilePath = Join-Path -Path (Split-Path -Path $PSCommandPath -Parent) -ChildPath 'VERSION'
20+
}
21+
elseif ($PSScriptRoot) {
22+
$versionFilePath = Join-Path -Path $PSScriptRoot -ChildPath 'VERSION'
23+
}
24+
25+
if ($versionFilePath -and (Test-Path -LiteralPath $versionFilePath)) {
26+
$value = (Get-Content -LiteralPath $versionFilePath -Raw -ErrorAction SilentlyContinue).Trim()
27+
if (-not [string]::IsNullOrWhiteSpace($value)) {
28+
return $value
29+
}
30+
}
31+
32+
return '1.3.3'
33+
}
34+
1535
# GW Router Logger
1636
# This script is intentionally organized as small functions so that later features can be
1737
# added without rewriting the listener loop, menu flow, or log retention logic.
@@ -25,7 +45,7 @@ catch {
2545
# These script-scoped values act as the main tuning points for future maintenance.
2646
# Keeping them together makes it easier to adjust behavior without searching the file.
2747
$script:AppName = 'GW Router Logger'
28-
$script:Version = '1.3.2'
48+
$script:Version = Get-AppVersionValue
2949
$script:MaxCompressedBytes = 100MB
3050
$script:ActiveLogRotateBytes = 5MB
3151
$script:ActiveLogRotateMinutes = 60

Install-GWRouterLogger.ps1

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,22 @@ param(
1212

1313
$ErrorActionPreference = 'Stop'
1414
$appName = 'GW Router Logger'
15-
$version = '1.3.2'
1615
$publisher = 'Ghostwheel'
1716

17+
function Get-AppVersionValue {
18+
$versionFilePath = Join-Path -Path (Split-Path -Parent $MyInvocation.MyCommand.Path) -ChildPath 'VERSION'
19+
if (Test-Path -LiteralPath $versionFilePath) {
20+
$value = (Get-Content -LiteralPath $versionFilePath -Raw -ErrorAction SilentlyContinue).Trim()
21+
if (-not [string]::IsNullOrWhiteSpace($value)) {
22+
return $value
23+
}
24+
}
25+
26+
return '1.3.3'
27+
}
28+
29+
$version = Get-AppVersionValue
30+
1831
function Test-IsAdministrator {
1932
$identity = [Security.Principal.WindowsIdentity]::GetCurrent()
2033
$principal = New-Object Security.Principal.WindowsPrincipal($identity)
@@ -165,6 +178,7 @@ $files = @(
165178
'GW-Router-Logger.TrayMode.psm1',
166179
'GW-Router-Logger.ps1',
167180
'Uninstall-GWRouterLogger.ps1',
181+
'VERSION',
168182
'README.md',
169183
'CHANGELOG.md',
170184
'LICENSE'

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
`GW Router Logger` is a PowerShell syslog collector for Windows, designed for home labs, residential routers, and small-network troubleshooting.
44

5-
Current release: `v1.3.2`
5+
Current release: `v1.3.3`
66

77
It focuses on the things that usually break first on normal Windows machines: elevation, pathing, firewall access, bind-address selection, log rollover, and clear on-screen status.
88

VERSION

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
1.3.3

0 commit comments

Comments
 (0)