From f1f3d452217ed948601e706acef4a13b8206a565 Mon Sep 17 00:00:00 2001 From: ScreenTinker Date: Thu, 18 Jun 2026 16:17:58 -0500 Subject: [PATCH] fix(server): boot banner shows the real version, not a hardcoded v1.2.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The startup ASCII banner printed "ScreenTinker Server v1.2.0". Use the already-imported VERSION (require('./version'), the single source of truth that reads the root VERSION file) in a fixed-width field (VERSION.padEnd(22).slice(0, 22) — the same padEnd discipline the port line uses) so the fixed-width box border stays aligned for any version length. No other behavior changes. Co-Authored-By: Claude Opus 4.8 (1M context) --- server/server.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/server.js b/server/server.js index 37b6753..fc30068 100644 --- a/server/server.js +++ b/server/server.js @@ -742,7 +742,7 @@ const protocol = hasSsl ? 'https' : 'http'; server.listen(listenPort, '0.0.0.0', () => { console.log(` ╔══════════════════════════════════════════════════╗ -║ ScreenTinker Server v1.2.0 ║ +║ ScreenTinker Server v${VERSION.padEnd(22).slice(0, 22)}║ ║──────────────────────────────────────────────────║ ║ Dashboard: ${protocol}://localhost:${String(listenPort).padEnd(5)} ║ ║ API: ${protocol}://localhost:${String(listenPort).padEnd(5)}/api ║