Skip to content

fix(build): read VERSION dynamically in NewsAlerts.spec and fix macOS DMG packaging #80

Done

Description

@mlgitdev

Description

  1. NewsAlerts.spec:120-121 hardcodes macOS CFBundleVersion and CFBundleShortVersionString to '2.9.0' instead of reading the root VERSION SSOT (2.12.0+).
  2. scripts/package_macos_dmg.sh:28 copies app web assets requirements.txt run_app.py into Contents/Resources/ but omits VERSION, causing app/version.py:_load_version() to fall back to stale hardcoded '2.4.5' (app/version.py:164).
  3. scripts/package_macos_dmg.sh:63 executes bare python3 "$DIR/run_app.py" without checking for a bundled PyInstaller .app or local .venv.

References: NewsAlerts.spec:120-121, scripts/package_macos_dmg.sh:28, 59-64, app/version.py:164

Steps to Reproduce

  1. Inspect NewsAlerts.spec lines 120-121 -> hardcoded '2.9.0' despite VERSION being 2.12.0.
  2. Inspect scripts/package_macos_dmg.sh line 28 -> VERSION is not copied into Contents/Resources/.

Expected Behavior

NewsAlerts.spec should read root VERSION dynamically; scripts/package_macos_dmg.sh should package the PyInstaller dist/NewsAlerts.app bundle when available (and copy VERSION + detect .venv in script fallback mode).

Operating System & Version

  • OS: Windows 11 x64 / macOS arm64 / Linux x86_64
  • Version: v2.12.0
  • Display / Scale: Verified via live Chrome CDP (1600x960) & local unit/backend suite

Logs & Additional Context

Backend verification confirmed VERSION=2.12.0, NewsAlerts.spec hardcodes 2.9.0, and package_macos_dmg.sh omits VERSION.

Activity

  1. self-assigned this
    on Dec 2, 2026
  2. added
    bug
    on Dec 2, 2026
  3. github-actions commented on Dec 2, 2026

    @github-actions

    ✅ Issue Validation Passed

    • Conventional Commit title syntax (fix(build))
    • Verified issue type: BUG
    • Required template sections present and filled out

    This issue is well-structured and ready for work according to the Issue-First Protocol.

  4. mlgitdev commented on Dec 2, 2026

    @mlgitdev
    OwnerAuthor

    🚀 Resolution In Progress

    A fix for this issue has been implemented and submitted in Pull Request #82 (v2.12.1).

    • Branch: fix/audit-remediation-67
    • PR URL: fix(core): resolve 15 verified audit issues across UI, API, concurrency, audio, and packaging (v2.12.1) #82
    • Summary of Changes: Updated NewsAlerts.spec to read root VERSION dynamically for macOS CFBundleVersion/CFBundleShortVersionString, and updated scripts/package_macos_dmg.sh to package dist/NewsAlerts.app (and include VERSION + .venv detection in fallback mode). Verified via unit tests.
    • Verification: compileall clean, 84/84 unit tests passing (including tests/test_audit_fixes.py), and live Chrome CDP verification passed.

    This issue will automatically close upon PR #82 review and merge into main.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions