Skip to content

Conversation

@Olamshin
Copy link

Summary

  • Hide the macOS dock icon since the app already has a menu bar icon, allowing it to run seamlessly in the background
  • Add native error dialog for startup crashes using osascript so users see errors instead of silent failures
  • Add PyInstaller spec file for macOS builds with LSUIElement: True in Info.plist

Changes

  • tray.py: Use NSApplicationActivationPolicyAccessory via AppKit to hide dock icon after tkinter initialization
  • main.py: Add show_error_dialog() function using native macOS osascript for startup error display
  • ClipCascade_macos.spec: New PyInstaller spec file with LSUIElement: True and tkinter hidden import
  • requirements_mac.txt: Add pyinstaller dependency
  • .gitignore: Add build artifacts (build/, dist/, .venv/)

Fixes #101

- Add PyInstaller spec file with LSUIElement to hide dock icon
- Use NSApplicationActivationPolicyAccessory to fully hide dock icon
- Add native macOS error dialog using osascript for startup crashes
- Add tkinter and pyinstaller to requirements_mac.txt
- Update .gitignore with build artifacts
@Olamshin
Copy link
Author

it is not clear to me if there is any build automation/steps. To build this:
cd ClipCascade_Desktop/src
pyinstaller ClipCascade_macos.spec

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.

App icon remains in MacOS dock

1 participant