Skip to content

packaging(macos): ship materialcraft-cli inside MaterialCraft.app - #358

Open
davidmann4 wants to merge 1 commit into
storytold:mainfrom
davidmann4:packaging/macos-cli-in-app
Open

davidmann4 wants to merge 1 commit into
storytold:mainfrom
davidmann4:packaging/macos-cli-in-app

Conversation

@davidmann4

@davidmann4 davidmann4 commented Dec 3, 2026 •

Copy link
Copy Markdown

TL;DR: MaterialCraft.app now carries materialcraft-cli beside its executable, so on macOS the ArtCraft Launcher lists MaterialCraft for AI agents.

The launcher registers <app>-cli mcp only for apps whose CLI sits next to the app; the stable .app held only the GUI, so macOS users got no agent entry for MaterialCraft. Refs #356 (agents in the open window, #357), part of storytold/craft-ai-integrations#195.

  • packaging/macos/package.sh: copies the CLI to Contents/MacOS/materialcraft-cli and signs it as the standalone CLI is (identifier ai.storyteller.materialcraft-cli, hardened runtime) before the app's executable and the bundle are sealed (inside-out, as before). The standalone CLI zip is unchanged.
  • README.md: the download table says where the app keeps the CLI.
  • Nightly stays GUI-only on purpose (nightly-lib.sh checks that Contents/MacOS holds only the GUI).

Checks: bash -n packaging/macos/package.sh locally (Windows). The packaging itself runs only on macOS in the release workflow; not run here. No workflow changed.

🤖 Generated with Claude Code

Summary by CodeRabbit

  • New Features
    • The macOS disk image now includes the command-line tool alongside the app, making it available inside the app bundle.
  • Documentation
    • Updated the macOS downloads information to note where the bundled command-line tool is located.

The ArtCraft Launcher registers `<app>-cli mcp` for agents only when the
CLI sits next to the app; the stable .app held only the GUI. Copy the CLI
to Contents/MacOS/materialcraft-cli and sign it as the standalone CLI is,
before the app's executable and the bundle are sealed. Nightly stays
GUI-only (nightly-lib.sh checks that).

Refs storytold#356

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Dec 3, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The macOS DMG package now includes materialcraft-cli inside MaterialCraft.app/Contents/MacOS. The packaging script signs the CLI before signing the app executable and bundle. The README documents the bundled CLI path.

Changes: macOS CLI bundle

Layer / File(s) Summary
Add and sign bundled CLI
packaging/macos/package.sh, README.md
The packaging script copies materialcraft-cli into the app bundle and signs it before signing the app executable and bundle. The script comment and README document the bundled CLI.

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Feature

Possibly related issues

  • Issue 356 requests that the ArtCraft Launcher’s agent switch reach the MaterialCraft CLI and includes additional window-serving MCP behavior. This PR covers the packaging step, but not the MCP behavior.

Suggested reviewers: bflatastic, dylanmtaylor

Merge Risk: Minimal · up to 9eae0

The macOS package now includes the CLI inside the app bundle, signed before the bundle is sealed, and the README describes its location. No concrete merge-blocking risk was found. Packaging was not run on macOS, so a release-time check is advisable.

Pre-merge checks: Passed 4

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title states the main change: the macOS packaging now ships materialcraft-cli inside MaterialCraft.app. The raw summary confirms that package.sh bundles the CLI beside the app executable and the R…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title states the main change: the macOS packaging now ships materialcraft-cli inside MaterialCraft.app. The raw summary confirms that package.sh bundles the CLI beside the app executable and the README documents the CLI at Contents/MacOS/materialcraft-cli. The PR objectives describe the same goal, so the title matches the changeset.

Finishing Touches

Generate unit tests (beta)

  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

CodeRabbit Verify

  • Run CodeRabbit Verify to test the changes in this pull request.
Recent review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between 41cdc4e and 9eae054.

Files selected for processing: 2

  • README.md
  • packaging/macos/package.sh

Included review availability: This review used your included allowance. Your plan provides up to 2 included reviews per hour; 1 remain after this review.

This branch has not been deployed

No deployments
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