mirror of
https://github.com/aaddrick/claude-desktop-debian.git
synced 2026-05-17 08:36:35 +03:00
Reporter on #481 pasted the deb package version `claude-desktop 1.3561.0-2.0.0`. The classifier extracted `1.3561.0-2.0.0` verbatim, and the naive `claimed != CLAUDE_DESKTOP_VERSION` string compare flagged drift against `1.3561.0`. The issue is on the current release — no drift should fire. Fix normalizes both sides: strip a leading `v`, then strip anything from the first `-` or space onward. Handles: - `1.3561.0-2.0.0` → `1.3561.0` (deb package: upstream-REPO_VERSION) - `v1.3561.0` → `1.3561.0` (copy-paste with prefix) - `1.3561.0 stable` → `1.3561.0` (whitespace-separated qualifier) - `1.3561.0` → `1.3561.0` (bare upstream, unchanged) Same normalization applied to CURRENT_VERSION for symmetry, even though the repo variable is always the bare upstream semver — keeps the compare resilient if that ever changes. Fixes the false drift banner on #481 and prevents the same shape from tripping on any future issue where a reporter pastes their `dpkg -l | grep claude` output or AppImage filename. Co-authored-by: Claude <claude@anthropic.com>