Skip to content

chore: reduce bundle size ~41 MB#2

Merged
YashD5291 merged 1 commit intomainfrom
chore/reduce-bundle-size
Apr 2, 2026
Merged

chore: reduce bundle size ~41 MB#2
YashD5291 merged 1 commit intomainfrom
chore/reduce-bundle-size

Conversation

@YashD5291
Copy link
Copy Markdown
Owner

Summary

  • Enable strip=True in PyInstaller spec — strips debug symbols from esper-server binary and bundled .so/.dylib files (~34 MB)
  • Exclude hf_xet from bundle — lazy-imported behind try/except in huggingface_hub, never triggered by Esper's local model path (~5.6 MB)
  • Thin Sparkle.framework to arm64-only during build — app targets arm64 exclusively but Sparkle ships universal binaries (~1.2 MB)

Test plan

  • 119/119 tests pass
  • All src modules import cleanly
  • PyInstaller spec parses correctly
  • build-dmg.sh passes bash -n syntax check
  • Full build + DMG creation to verify size reduction
  • Verify app launches and transcribes after build

Related

- Enable strip=True in PyInstaller EXE and COLLECT to strip debug
  symbols from the esper-server binary (~34 MB savings)
- Exclude hf_xet from bundle — only lazy-imported behind try/except
  in huggingface_hub, never triggered by Esper's local model path (~5.6 MB)
- Thin Sparkle.framework to arm64-only during build — app targets
  arm64 exclusively but Sparkle ships universal binaries (~1.2 MB)
@YashD5291 YashD5291 merged commit 41537a4 into main Apr 2, 2026
1 check passed
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