Skip to content

Conversation

@domdomegg
Copy link
Owner

sharp uses optional dependencies that only install for the current platform. This adds an explicit install step to include darwin-arm64, darwin-x64, linux-x64, and win32-x64 binaries in the MCPB package.

Fixes #31

sharp uses optional dependencies that only install for the current platform.
This adds an explicit install step to include darwin-arm64, darwin-x64,
linux-x64, and win32-x64 binaries in the MCPB package.

Fixes #31
- Add @img/sharp-libvips-* packages for darwin/linux (required shared libs)
- Add codesign step for macOS binaries (for Gatekeeper compatibility)
- Switch CI to macos-latest for proper signing support
Runs xattr -cr on node_modules before importing native deps.
This fixes Gatekeeper blocking MCPB packages downloaded from the internet.
The xattr -cr hack on startup handles quarantine, so we don't need
macOS CI or explicit code signing.
@domdomegg domdomegg merged commit fbb715d into master Dec 5, 2025
4 checks passed
@domdomegg domdomegg deleted the adamj/fix-mcpb-cross-platform branch December 5, 2025 18:58
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.

MCPB doesn't work cross-platform due to native dependencies

2 participants