Skip to content

feat: add macOS support#583

Open
yueliang13 wants to merge 1 commit into
nelvko:masterfrom
yueliang13:feat/macos-support
Open

feat: add macOS support#583
yueliang13 wants to merge 1 commit into
nelvko:masterfrom
yueliang13:feat/macos-support

Conversation

@yueliang13

Copy link
Copy Markdown

Summary

Add initial macOS support for clashctl.

Changes

  • Add Darwin/macOS binary download support for:
    • mihomo
    • yq
    • subconverter
  • Add launchd service support via a new plist template.
  • Support macOS-compatible command handling for:
    • port detection
    • local IP detection
    • random port generation
    • sed -i
    • rm
    • tr with /dev/urandom
    • TUN status detection
  • Update install flow so resources/config are prepared before service registration/startup.
  • Update README to document macOS support.

Notes

  • macOS currently supports mihomo only.
  • clash kernel remains Linux-only.
  • TUN mode on macOS may require elevated permissions.

Validation

  • Ran shell syntax checks with bash -n.
  • Validated launchd plist with plutil -lint.
  • Verified macOS release asset URLs for mihomo, yq, and subconverter.

@codacy-production

Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.

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