Skip to content

Add Mac support#6

Open
matipojo wants to merge 1 commit into
mainfrom
add-mac-support
Open

Add Mac support#6
matipojo wants to merge 1 commit into
mainfrom
add-mac-support

Conversation

@matipojo
Copy link
Copy Markdown
Owner

@matipojo matipojo commented Sep 23, 2024

Fixes #5

Add MacOS support to the project.

  • core/taskbar.py: Refactor to create a Taskbar interface with WindowsTaskbar and MacTaskbar implementations. Use conditional imports and platform checks to select the appropriate implementation. Move Windows-specific code to WindowsTaskbar class and add MacOS-specific code to MacTaskbar class.
  • core/tray.py: Refactor to create a Tray interface with WindowsTray and MacTray implementations. Use conditional imports and platform checks to select the appropriate implementation. Move Windows-specific code to WindowsTray class and add MacOS-specific code to MacTray class.
  • .github/workflows/release.yml: Add macos-latest to the runs-on matrix for build and release jobs. Update pyinstaller command to build MacOS executable. Update artifact upload paths for MacOS.
  • README.md: Update requirements to include MacOS. Add installation instructions for MacOS. Update usage instructions to include MacOS.
  • requirements.txt: Add pyobjc dependency for MacOS support.

For more details, open the Copilot Workspace session.

Fixes #5

Add MacOS support to the project.

* **core/taskbar.py**: Refactor to create a `Taskbar` interface with `WindowsTaskbar` and `MacTaskbar` implementations. Use conditional imports and platform checks to select the appropriate implementation. Move Windows-specific code to `WindowsTaskbar` class and add MacOS-specific code to `MacTaskbar` class.
* **core/tray.py**: Refactor to create a `Tray` interface with `WindowsTray` and `MacTray` implementations. Use conditional imports and platform checks to select the appropriate implementation. Move Windows-specific code to `WindowsTray` class and add MacOS-specific code to `MacTray` class.
* **.github/workflows/release.yml**: Add `macos-latest` to the `runs-on` matrix for build and release jobs. Update `pyinstaller` command to build MacOS executable. Update artifact upload paths for MacOS.
* **README.md**: Update requirements to include MacOS. Add installation instructions for MacOS. Update usage instructions to include MacOS.
* **requirements.txt**: Add `pyobjc` dependency for MacOS support.

---

For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/matipojo/baafucha/issues/5?shareId=XXXX-XXXX-XXXX-XXXX).
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.

Add Mac support

1 participant