Skip to content

fix: reduce macos app size#88

Merged
thisislvca merged 3 commits into
TomBadash:masterfrom
farfromrefug:fix/smaller_macos_app
Apr 14, 2026
Merged

fix: reduce macos app size#88
thisislvca merged 3 commits into
TomBadash:masterfrom
farfromrefug:fix/smaller_macos_app

Conversation

@farfromrefug

@farfromrefug farfromrefug commented Apr 12, 2026

Copy link
Copy Markdown
Collaborator

Reduce the macOS bundle by trimming unused Qt payloads while keeping the packaged dependency graph consistent.

What Changed

  • trims unused Qt frameworks/plugins from the macOS bundle
  • keeps QtDBus bundled instead of excluding it, matching PyInstaller dependency discovery
  • trims unused optional Qt Quick Controls styles while keeping Material + Basic

Size Comparison

Build .app size Release zip size
Before (master @ 8948524) 438 MB (448,808K) 161.7 MB (163,900K)
After (this PR @ 1b10e40) 146 MB (149,336K) 54.6 MB (54,260K)
Delta -66.7% -66.9%

Quick smoke test: Mouser.app/Contents/MacOS/Mouser --start-hidden launched cleanly after each change.

@thisislvca thisislvca linked an issue Apr 14, 2026 that may be closed by this pull request
1 task
@thisislvca

Copy link
Copy Markdown
Collaborator

Thanks for this, appreciate it a lot! I pushed two small follow-ups on top:

  1. stopped excluding QtDBus so the macOS bundle matches what PyInstaller is actually discovering, which removes the packaging inconsistency/warning
  2. filtered a few more unused optional Qt Quick Controls style stacks (Fusion, Imagine, Universal, FluentWinUI3, iOS, macOS) while keeping the Material + Basic pieces the app actually uses

Relative to your implementation, that took the macOS .app from 168,960K down to 149,336K (-11.6%), and the release zip from 58,944K down to 54,260K (-7.9%).

So the main reduction is still from your original change, and these follow-ups just squeeze a bit more out of the remaining Qt payload.

Thanks again!

@thisislvca thisislvca merged commit 02080a3 into TomBadash:master Apr 14, 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.

[Bug] MacOS version does not support intel + huge package

2 participants