Skip to content

Add macOS .app bundle and resource handling and packaging instructions #5

Open
durul wants to merge 2 commits intoTomBadash:masterfrom
durul:master
Open

Add macOS .app bundle and resource handling and packaging instructions #5
durul wants to merge 2 commits intoTomBadash:masterfrom
durul:master

Conversation

@durul
Copy link

@durul durul commented Mar 14, 2026

No description provided.

durul added 2 commits March 14, 2026 15:48
Mouser.spec: commented out the binaries/datas filters and added a macOS BUNDLE block to build a .app (sets icon, bundle_identifier and Info.plist entries such as CFBundleShortVersionString, LSUIElement and NSHighResolutionCapable). main_qml.py: when frozen on darwin, set ROOT to Contents/Resources inside the .app bundle; keep the existing _internal path for other PyInstaller builds. These changes enable correct resource lookup and packaging for macOS app bundles and support menu-bar/background behavior and high-DPI.
Add a "Packaging as a macOS App" section to readme_mac_osx.md. Documents building a self-contained .app with PyInstaller (pyinstaller Mouser.spec), where the output appears (dist/Mouser.app), explains the app is packaged as an LSUIElement (runs silently in background / menu bar only), and warns to grant Accessibility permissions if the built app has permission issues or silent-crashes.
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