LaunchKit · 2026
Back to Skills

macos-spm-app-packaging

Scaffold, build, and package SwiftPM-based.

2
1.9k downloads
by @dimillian

Setup & Installation

openclaw skills install @dimillian/macos-spm-app-packaging

Or with the ClawHub CLI, for registry-managed skill folders outside a full OpenClaw workspace:

npx clawhub install macos-spm-app-packaging

What This Skill Does

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.

When to use it

  • 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

Example Workflow

Here's how your AI assistant might use this skill in practice.

INPUT

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

AGENT
  1. 1Copy assets/templates/bootstrap/ into the new repo directory
  2. 2Rename MyApp references in Package.swift, Sources/, and version.env
  3. 3Set APP_NAME, BUNDLE_ID, and MENU_BAR_APP=1 in the packaging script
  4. 4Run swift build to verify the project compiles
  5. 5Run Scripts/package_app.sh to produce the signed .app bundle
OUTPUT

A signed .app bundle ready for notarization or direct distribution

Requirements

Accounts, API keys, or tools you or your AI assistant may need to set up while using this skill.

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