8000 Add Apple Silicon (aarch64-apple-darwin) build support by Copilot · Pull Request #8 · Mnehmos/mnehmos.rpg.mcp · GitHub
[go: up one dir, main page]

Skip to content

Add Apple Silicon (aarch64-apple-darwin) build support - #8

Closed
Mnehmos with Copilot wants to merge 5 commits into
mainfrom
copilot/fix-installation-issue-m4-macbook-air
Closed

Mnehmos with Copilot wants to merge 5 commits into
mainfrom
copilot/fix-installation-issue-m4-macbook-air

Conversation

Copilot AI commented Dec 24, 2025 •
Copy link
Copy Markdown
8000

Build script only targeted x64 architectures, causing M4 MacBook Air users to hit resource path 'rpg-mcp-server-aarch64-apple-darwin' doesn't exist when integrating with Tauri frontend.

Changes

  • esbuild.config.mjs: Added node20-macos-arm64 to pkg targets and darwin-arm64 to platform mappings. Fixed deployment paths from src-tauri/ to ../src-tauri/ (relative from rpg-mcp repo to frontend). Added separate Intel/ARM64 instructions.

  • README.md: Split macOS sections by architecture (Intel vs Apple Silicon). Added uname -m detection helper. Clarified Quest Keeper AI integration requires relative paths.

  • tests/build/build-config.test.ts: Validates all 4 platforms (win-x64, macos-x64, macos-arm64, linux-x64), prebuild URLs, and Tauri binary name mappings.

  • .gitignore: Changed dist/ and build/ to /dist/ and /build/ to allow tracking tests/build/ directory.

Build Output

bin/
├── rpg-mcp-macos-arm64                # Maps to rpg-mcp-server-aarch64-apple-darwin
├── rpg-mcp-macos                      # Maps to rpg-mcp-server-x86_64-apple-darwin
├── better_sqlite3-macos-arm64.node
└── better_sqlite3-macos.node

M4 Mac users can now build and deploy ARM64 binaries with correct Tauri target names.

Original prompt

This section details on the original issue you should resolve

<issue_title>Installation issue, M4 MacBook Air</issue_title>
<issue_description>After installation of dependencies and building of binaries (btw many of the commands on the homepage seem no longer up to date based on paths and filenames), I get this error:

[Prepare MCP] Copying better_sqlite3.node to target directories...
[Prepare MCP] ✓ Copied to debug/
[Prepare MCP] ✓ Copied to release/
[Prepare MCP] Native module preparation complete!

VITE v7.2.2 ready in 131 ms

➜ Local: http://localhost:1420/
Running DevCommand (cargo run --no-default-features --color always --)
Info Watching /Users/briannewton/Documents/QuestKeeperAI-v2/src-tauri for changes...
Compiling wry v0.53.5
Compiling tauri-runtime v2.9.1
Compiling temp_init v0.1.0 (/Users/briannewton/Documents/QuestKeeperAI-v2/src-tauri)
error: failed to run custom build command for temp_init v0.1.0 (/Users/briannewton/Documents/QuestKeeperAI-v2/src-tauri)

Caused by:
process didn't exit successfully: /Users/briannewton/Documents/QuestKeeperAI-v2/src-tauri/target/debug/build/temp_init-cbab2fb7260604a9/build-script-build (exit status: 1)
--- stdout
cargo:rerun-if-env-changed=TAURI_CONFIG
cargo:rustc-check-cfg=cfg(desktop)
cargo:rustc-cfg=desktop
cargo:rustc-check-cfg=cfg(mobile)
cargo:rerun-if-changed=/Users/briannewton/Documents/QuestKeeperAI-v2/src-tauri/tauri.conf.json
cargo:rustc-env=TAURI_ANDROID_PACKAGE_NAME_APP_NAME=ai
cargo:rustc-env=TAURI_ANDROID_PACKAGE_NAME_PREFIX=com_questkeeper
cargo:rustc-check-cfg=cfg(dev)
cargo:rustc-cfg=dev
cargo:PERMISSION_FILES_PATH=/Users/briannewton/Documents/QuestKeeperAI-v2/src-tauri/target/debug/build/temp_init-54db9b2d9057298f/out/app-manifest/app-permission-files
cargo:rerun-if-changed=capabilities
cargo:rerun-if-env-changed=REMOVE_UNUSED_COMMANDS
cargo:rustc-env=TAURI_ENV_TARGET_TRIPLE=aarch64-apple-darwin
resource path rpg-mcp-server-aarch64-apple-darwin doesn't exist
warning: build failed, waiting for other jobs to finish...

It's unclear where it's looking for that file. After building binaries I got this output:

🎉 Build complete! Files in bin/:

better_sqlite3-linux.node 1.99 MB
better_sqlite3-macos.node 1.82 MB
better_sqlite3-win.node 1.81 MB
better_sqlite3.node 1.81 MB
rpg-mcp-linux 57.95 MB
rpg-mcp-macos 52.26 MB
rpg-mcp-win.exe 44.68 MB

📦 Deployment instructions:

For Tauri (Windows):
copy bin\rpg-mcp-win.exe src-tauri\binaries\rpg-mcp-server-x86_64-pc-windows-msvc.exe
copy bin\better_sqlite3.node src-tauri\binaries\

For Tauri (macOS):
cp bin/rpg-mcp-macos src-tauri/binaries/rpg-mcp-server-x86_64-apple-darwin
cp bin/better_sqlite3-macos.node src-tauri/binaries/better_sqlite3.node

For Tauri (Linux):
cp bin/rpg-mcp-linux src-tauri/binaries/rpg-mcp-server-x86_64-unknown-linux-gnu
cp bin/better_sqlite3-linux.node src-tauri/binaries/better_sqlite3.node

Those paths are not correct (it has to be ../src-tauri/

And as you can see there's no aarch64 file. Also I had to manually create the binaries directory under src-tauri as it wasn't there. I tried renaming the x86_64-apple-darwin to aarch64 (which I wouldn't suspect would work) and it gave me the asme error of not being able to find it, so I don't even know if it's looking in the right place.</issue_description>

Comments on the Issue (you are @copilot in this section)


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Copilot AI and others added 3 commits December 24, 2025 06:57
…M2/M3/M4 Macs

Co-authored-by: Mnehmos <193347153+Mnehmos@users.noreply.github.com>
…forms

Co-authored-by: Mnehmos <193347153+Mnehmos@users.noreply.github.com>
…forms

Co-authored-by: Mnehmos <193347153+Mnehmos@users.noreply.github.com>
@Mnehmos
Mnehmos marked this pull request as ready for review December 24, 2025 07:02
Co-authored-by: Mnehmos <193347153+Mnehmos@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix installation issue on M4 MacBook Air Add Apple Silicon (aarch64-apple-darwin) build support Dec 24, 2025
Copilot AI requested a review from Mnehmos December 24, 2025 07:04
@Mnehmos Mnehmos closed this Dec 28, 2025
@Mnehmos
Mnehmos deleted the copilot/fix-installation-issue-m4-macbook-air branch June 2, 2026 23:39
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.

Installation issue, M4 MacBook Air

2 participants

0