跳到正文
TakoAPI
返回技能列表

macos-spm-app-packaging

由 dimillian 提供

iOS & macOS Development
1.9k下载量由 clawskills.sh 提供
2星标
0浏览量
0 个赞登录后即可为这个技能点赞
—暂无评分
你的评分

简介

Scaffold, build, and package SwiftPM-based.

描述

该技能的功能

Scaffolds, builds, and packages SwiftPM-based macOS apps without an Xcode project file. Provides template scripts for .app bundle assembly, code signing, notarization, and Sparkle appcast generation. Covers the full lifecycle from project bootstrap to GitHub release.

Removes the need for an Xcode project file, making the entire build and release pipeline scriptable and CI-friendly.

何时使用

  • Setting up a new macOS menu bar app without Xcode
  • Packaging a SwiftPM binary into a distributable .app bundle
  • Automating notarization and stapling for a release build
  • Generating Sparkle appcast entries for over-the-air updates
  • Creating a dev-loop script that rebuilds and relaunches on each change

示例工作流

输入

User asks: scaffold a new macOS menu bar app and package it for distribution

智能体
  1. 1

    Copy assets/templates/bootstrap/ into the new repo directory

  2. 2

    Rename MyApp references in Package.swift, Sources/, and version.env

  3. 3

    Set APP_NAME, BUNDLE_ID, and MENU_BAR_APP=1 in the packaging script

  4. 4

    Run swift build to verify the project compiles

  5. 5

    Run Scripts/package_app.sh to produce the signed .app bundle

输出

A signed .app bundle ready for notarization or direct distribution

前置要求

  • Apple Developer account (for code signing and notarization)
  • APPLE_ID, APP_PASSWORD, and TEAM_ID environment variables for notarization
  • Xcode command-line tools (for build_icon.sh only)

安装

clawhub install dimillian/macos-spm-app-packaging

运行 CLI 命令,或把这段提示词粘贴到 Claude Code、Cursor、Codex 或你在用的任意编程智能体里。

链接