Skip to content

feat(macOS): Add macOS support to fetchpkg#5

Open
br3akzero wants to merge 3 commits intops5-payload-dev:masterfrom
br3akzero:feat/macOS
Open

feat(macOS): Add macOS support to fetchpkg#5
br3akzero wants to merge 3 commits intops5-payload-dev:masterfrom
br3akzero:feat/macOS

Conversation

@br3akzero
Copy link
Copy Markdown

Add macOS build support: fix basename conflict and add Makefile.macos with Homebrew curl paths.

macOS declares basename() in <string.h> with a conflicting return type,
causing a compile error. Rename the static function to avoid the conflict.
Uses Homebrew's curl include/lib paths via brew --prefix, supporting
both Apple Silicon and Intel Macs.
@br3akzero
Copy link
Copy Markdown
Author

br3akzero commented Mar 25, 2026

@john-tornblom here is my humble edit to add macOS support. The changes are minimal and I also added an CI job that runs after the original ci.yaml and it compiles to macOS.

Let me know if we need to adjust this in any way shape or form!

Thank you for this great cli!

Runs on macos-latest after CI completes successfully.
Builds with Homebrew curl and uploads arm64 artifact.
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