From d822137bbb0cf5135e5a4525af73624407528b95 Mon Sep 17 00:00:00 2001 From: George Lambert Date: Wed, 14 Oct 2026 04:33:32 -0400 Subject: [PATCH] fix: align deb/site to HelperVersion 0.3.6 (version audit) todo-list-3 version-audit: fix stale 0.3.4 defaults in build-deb.sh and printit index deb blurb; document audit in PACKAGING; smoke asserts deb fallback. CDN last-published 0.3.2/0.1.2 checksums left intentional. --- docs/PACKAGING.md | 20 ++++++++++++++++++-- platform/linux/deb/build-deb.sh | 10 +++++++--- platform/smoke-packaging-metadata.sh | 13 +++++++++++++ site/printit.verae.ai/index.html | 2 +- 4 files changed, 39 insertions(+), 6 deletions(-) diff --git a/docs/PACKAGING.md b/docs/PACKAGING.md index 908c363..b607911 100644 --- a/docs/PACKAGING.md +++ b/docs/PACKAGING.md @@ -25,12 +25,28 @@ same string when `job.go` is not on disk): `packaging-metadata.txt`. - Binary build: `scripts/build-win-linux.sh` greps `HelperVersion` from `job.go`. -- Smoke: `platform/smoke-packaging-metadata.sh` fails if tray/menubar scripts - drift from `HelperVersion`. +- Linux deb: `platform/linux/deb/build-deb.sh` greps `HelperVersion` (fallback + `"0.3.6"`). +- Smoke: `platform/smoke-packaging-metadata.sh` fails if tray/menubar/deb + scripts drift from `HelperVersion`. Override for a one-off stamp: `VERSION=x.y.z` (env) on the build/install scripts. Do not invent a second version constant. +### HelperVersion 0.3.6 audit (todo-list-3) + +Scan date: 2026-10-14. Source of truth: `internal/job.HelperVersion` = **0.3.6**. + +| Area | Status | +|------|--------| +| `job.go` / sidecar / certificate.html / site product string | **0.3.6** | +| NSIS / WiX / common.ps1 / menubar / build-pkg / build-installer fallbacks | **0.3.6** | +| `platform/linux/deb/build-deb.sh` fallback was **0.3.4** | **Fixed** → grep `HelperVersion` + fallback **0.3.6** | +| Site deb blurb was **0.3.4** | **Fixed** → **0.3.6** + lag note | +| CDN `DOWNLOADS-MANIFEST` checksums | Intentionally last-published **0.3.2** / **0.1.2**; 0.3.6 Windows rows remain **TBD** until upload | + +Re-run: `./platform/smoke-packaging-metadata.sh` + ## Windows tray (no elevated MSI) User-level presence only. **No elevated MSI**, no admin rights, no WiX diff --git a/platform/linux/deb/build-deb.sh b/platform/linux/deb/build-deb.sh index 93ff435..954a00d 100755 --- a/platform/linux/deb/build-deb.sh +++ b/platform/linux/deb/build-deb.sh @@ -5,13 +5,17 @@ # Usage: # ./platform/linux/deb/build-deb.sh [amd64|arm64|all] # Env: -# VERSION=0.1.2 +# VERSION=0.3.6 # default: internal/job.HelperVersion # BIN_AMD64=path/to/verae-print BIN_ARM64=path/to/verae-print # OUT=build/deb set -euo pipefail ROOT="$(cd "$(dirname "$0")/../../.." && pwd)" -VERSION="${VERSION:-0.3.4}" +# Package version = internal/job.HelperVersion (single source of truth). +if [[ -z "${VERSION:-}" ]]; then + VERSION="$(grep -E 'HelperVersion[[:space:]]*=' "$ROOT/internal/job/job.go" | head -1 | sed -E 's/.*"([^"]+)".*/\1/')" +fi +VERSION="${VERSION:-0.3.6}" OUT="${OUT:-$ROOT/build/deb}" ARCHS="${1:-all}" PKG_NAME="verae-print" @@ -181,7 +185,7 @@ resolve_bin() { local cand for cand in \ "$ROOT/build/win-linux/VeraePrintStamp-${label}-${VERSION}/verae-print" \ - "$ROOT/build/win-linux/VeraePrintStamp-${label}-0.1.2/verae-print" \ + "$ROOT/build/win-linux/VeraePrintStamp-${label}/verae-print" \ "$ROOT/build/linux-bins/verae-print-${arch}" do if [[ -f "$cand" ]]; then diff --git a/platform/smoke-packaging-metadata.sh b/platform/smoke-packaging-metadata.sh index 8a89221..21e42e9 100755 --- a/platform/smoke-packaging-metadata.sh +++ b/platform/smoke-packaging-metadata.sh @@ -117,6 +117,19 @@ else fi fi +# Linux deb builder must resolve HelperVersion (no stale 0.3.x hard default). +DEB_SH="$ROOT/platform/linux/deb/build-deb.sh" +if [[ -f "$DEB_SH" ]]; then + if grep -q 'HelperVersion' "$DEB_SH" \ + && grep -Fq "VERSION=\"\${VERSION:-$HELPER}\"" "$DEB_SH"; then + pass "deb build-deb.sh HelperVersion fallback=$HELPER" + else + bad "deb build-deb.sh missing HelperVersion path or fallback $HELPER" + fi +else + bad "missing $DEB_SH" +fi + # Tray scripts must not implement IPP POST (pure GET presence). for f in \ "$ROOT/platform/windows/scripts/verae-tray.ps1" \ diff --git a/site/printit.verae.ai/index.html b/site/printit.verae.ai/index.html index b9cec7a..e10e499 100644 --- a/site/printit.verae.ai/index.html +++ b/site/printit.verae.ai/index.html @@ -194,7 +194,7 @@

Debian / Ubuntu

-

.deb package 0.3.4 · verae-print + “Verae Timestamping” printer. Your first print opens a sign-in window to get your key.

+

.deb package 0.3.6 (HelperVersion; published download builds may lag — see DOWNLOADS-MANIFEST) · verae-print + “Verae Timestamping” printer. Your first print opens a sign-in window to get your key.