Skip to content

fix(packaging): bundle fpcalc, disable UPX, surface mypy errors#3

Merged
comxd merged 3 commits intomainfrom
fix/packaging-improvements
Feb 7, 2026
Merged

fix(packaging): bundle fpcalc, disable UPX, surface mypy errors#3
comxd merged 3 commits intomainfrom
fix/packaging-improvements

Conversation

@comxd
Copy link
Copy Markdown
Owner

@comxd comxd commented Feb 7, 2026

Summary

  • CRITICAL: Bundle fpcalc.exe on Windows so audio fingerprinting works out-of-the-box (was completely broken)
  • HIGH: Disable UPX compression to prevent Qt DLL runtime crashes on Windows
  • MEDIUM: Replace mypy || true with continue-on-error: true so type errors show as yellow warnings in CI

Changes

  • packaging/tunecover.spec — replace chromaprint.dll search with fpcalc.exe, disable UPX on EXE + COLLECT
  • src/core/fingerprint.py — add PyInstaller bundle detection (one-folder + one-file mode) in _find_fpcalc_binary()
  • tests/test_fingerprint.py — 4 new regression tests for frozen build fpcalc detection
  • .github/workflows/ci.ymlcontinue-on-error: true on mypy step

Test plan

  • make lint passes
  • make test passes (2317 passed, 41 skipped)
  • CI passes on all 3 platforms (ubuntu, macos, windows)

comxd added 3 commits February 7, 2026 16:38
…rrors

- Replace chromaprint.dll search with fpcalc.exe in tunecover.spec so
  audio fingerprinting works out-of-the-box on Windows builds
- Add PyInstaller bundle detection in _find_fpcalc_binary() for both
  one-folder and one-file frozen builds
- Disable UPX on Windows to prevent Qt DLL runtime crashes
- Replace `mypy || true` with `continue-on-error: true` in CI so type
  errors show as yellow warnings instead of being silently swallowed
…ndows CI

Clearing os.environ removes USERPROFILE/HOMEDRIVE which makes
Path.home() raise RuntimeError on Windows. Using "FreeBSD" as
the mock platform ensures step 5 has no common paths to check.
@comxd comxd force-pushed the fix/packaging-improvements branch from 3890f30 to c602d2c Compare February 7, 2026 15:52
@comxd comxd merged commit 522dcd2 into main Feb 7, 2026
9 checks passed
@comxd comxd deleted the fix/packaging-improvements branch February 7, 2026 15:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant