无需 Xcode 项目即可搭建、构建和打包基于 SwiftPM 的 macOS 应用程序。当您需要从头开始的 macOS 应用程序布局、SwiftPM 目标/资源、自定义 .app 捆绑程序集脚本或 Xcode 外部的签名/公证/appcast 步骤时使用。
数据来源:ClawHub。 在 ClawSkills 查看
选择你使用的 Agent
方法一:命令行安装(推荐)
推荐(无需提前安装 clawhub)
npx clawhub@latest --dir ~/.claude/skills install macos-spm-app-packaging或使用 clawhub CLI(需提前安装)
clawhub --dir ~/.claude/skills install macos-spm-app-packaging⚠️ 需要 Node.js 18+,没有 Node?请使用下方方法二直接下载 ZIP。 安装 Node.js →
方法二:手动下载安装(无需 Node)
下载 ZIP,解压后将文件夹放到以下路径,重启 Agent 即可:
安装路径
~/.claude/skills/macos-spm-app-packaging/💡解压后将文件夹放到上方路径,重启 Agent 即可生效
--- name: macos-spm-app-packaging description: Scaffold, build, and package SwiftPM-based macOS apps without an Xcode project. Use when you need a from-scratch macOS app layout, SwiftPM targets/resources, a custom .app bundle assembly script, or signing/notarization/appcast steps outside Xcode. ---
Bootstrap a complete SwiftPM macOS app folder, then build, package, and run it without Xcode. Use assets/templates/bootstrap/ for the starter layout and references/packaging.md + references/release.md for packaging and release details.
1) Bootstrap the project folder - Copy assets/templates/bootstrap/ into a new repo. - Rename MyApp in Package.swift, Sources/MyApp/, and version.env. - Customize APP_NAME, BUNDLE_ID, and versions.
2) Build, package, and run the bootstrapped app - Copy scripts from assets/templates/ into your repo (for example, Scripts/). - Build/tests: swift build and swift test. - Package: Scripts/package_app.sh. - Run: Scripts/compile_and_run.sh (preferred) or Scripts/launch.sh. - Release (optional): Scripts/sign-and-notarize.sh and Scripts/make_appcast.sh. - Tag + GitHub release (optional): create a git tag, upload the zip/appcast to the GitHub release, and publish.
assets/templates/package_app.sh: Build binaries, create the .app bundle, copy resources, sign.assets/templates/compile_and_run.sh: Dev loop to kill running app, package, launch.assets/templates/build_icon.sh: Generate .icns from an Icon Composer file (requires Xcode install).assets/templates/sign-and-notarize.sh: Notarize, staple, and zip a release build.assets/templates/make_appcast.sh: Generate Sparkle appcast entries for updates.assets/templates/setup_dev_signing.sh: Create a stable dev code-signing identity.assets/templates/launch.sh: Simple launcher for a packaged .app.assets/templates/version.env: Example version file consumed by packaging scripts.assets/templates/bootstrap/: Minimal SwiftPM macOS app skeleton (Package.swift, Sources/, version.env).CFBundleVersion), so BUILD_NUMBER in version.env must increase for each update.MENU_BAR_APP=1 when packaging to emit LSUIElement in Info.plist.安装 Macos Spm 应用程序打包 后,可以对 AI 说这些话来触发它
Help me get started with Macos Spm App Packaging
Explains what Macos Spm App Packaging does, walks through the setup, and runs a quick demo based on your current project
Use Macos Spm App Packaging to scaffold, build, and package SwiftPM-based macOS apps without an Xc...
Invokes Macos Spm App Packaging with the right parameters and returns the result directly in the conversation
What can I do with Macos Spm App Packaging in my developer & devops workflow?
Lists the top use cases for Macos Spm App Packaging, with example commands for each scenario
将技能文件夹放到 ~/.claude/skills/macos-spm-app-packaging/ 目录(个人级,所有项目可用),或 .claude/skills/macos-spm-app-packaging/(项目级)。重启 AI 客户端后,用 /macos-spm-app-packaging 主动调用,或让 AI 根据上下文自动发现并使用。
Macos Spm 应用程序打包 支持 Claude、Cursor、OpenClaw,可与这些 AI 平台无缝集成,扩展其能力。
Macos Spm 应用程序打包 可免费安装使用。请查阅仓库了解许可证信息。
无需 Xcode 项目即可搭建、构建和打包基于 SwiftPM 的 macOS 应用程序。当您需要从头开始的 macOS 应用程序布局、SwiftPM 目标/资源、自定义 .app 捆绑程序集脚本或 Xcode 外部的签名/公证/appcast 步骤时使用。
Macos Spm 应用程序打包 属于「Developer & DevOps」分类,该分类的技能帮助 AI 智能体在此领域执行专业任务。
Automate my developer & devops tasks using Macos Spm App Packaging
Identifies repetitive steps in your workflow and sets up Macos Spm App Packaging to handle them automatically