Skip to content

feat(mermaid-tools): add macOS support with auto-detection#23

Open
gucs wants to merge 1 commit intodaymade:mainfrom
gucs:main
Open

feat(mermaid-tools): add macOS support with auto-detection#23
gucs wants to merge 1 commit intodaymade:mainfrom
gucs:main

Conversation

@gucs
Copy link

@gucs gucs commented Mar 10, 2026

feat(mermaid-tools): add macOS support with auto-detection

Description

Add OS detection to extract-and-generate.sh script to support both macOS and WSL2/Linux. Includes platform-specific Chrome paths, separate Puppeteer configs for each OS, and updated documentation with macOS installation instructions.

Type of Change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update
  • New skill
  • Enhancement to existing skill
  • Infrastructure/tooling improvement

Related Issues

Fixes #
Relates to #

Changes Made

Detailed list of changes:

  • OS Detection: Added uname based OS detection in extract-and-generate.sh to distinguish between macOS and Linux/WSL2.
  • Platform-specific Chrome Paths: Automated detection of Google Chrome installation paths for both macOS (/Applications/Google Chrome.app/...) and Linux/WSL2.
  • Command Compatibility: Resolved differences in the stat command between BSD (macOS) and GNU (Linux) for file size validation.
  • Puppeteer Configuration: Added puppeteer-config-macos.json with optimized arguments for running Puppeteer on macOS.
  • Path Remapping: Restricted WSL2-specific path remapping to Linux environments only.
  • Documentation: Updated SKILL.md with comprehensive macOS installation instructions using Homebrew.

Affected Skills

Which skills are affected by this PR?

  • skill-creator
  • github-ops
  • markdown-tools
  • mermaid-tools
  • statusline-generator
  • teams-channel-post-writer
  • repomix-unmixer
  • llm-icon-finder
  • Marketplace infrastructure
  • Documentation only

Testing Done

How has this been tested?

  • Tested on macOS
  • Tested on Linux
  • Tested on Windows
  • Manual testing performed
  • Automated tests added/updated
  • Validated with skill-creator validation script

Test description:

  1. Verified extract-and-generate.sh correctly identifies macOS and locates Chrome.
  2. Confirmed PNG generation works with the new macOS Puppeteer config.
  3. Validated stat command output on macOS for file size checks.

Quality Checklist

For All PRs

  • Code follows the style guidelines of this project
  • Self-review of code performed
  • Comments added for complex code
  • Documentation updated (if applicable)
  • No new warnings generated
  • Changes don't break existing functionality
  • Commit messages are clear and descriptive

For Documentation Changes

  • Checked for typos and grammar
  • Links are working
  • Code examples are tested
  • Screenshots updated (if applicable)
  • Chinese translation updated (if applicable)

Add OS detection to extract-and-generate.sh script to support both macOS and WSL2/Linux. Includes platform-specific Chrome paths, separate Puppeteer configs for each OS, and updated documentation with macOS installation instructions.
@gucs gucs closed this Mar 10, 2026
@gucs gucs reopened this Mar 10, 2026
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