Skip to content

armgit / chops

Public Imported from GitHub
0

Your AI agent skills, finally organized. A macOS app to browse, edit, and manage skills across Claude Code, Cursor, Codex, Windsurf, and Amp.

feat: replace CI release with local release script (macOS 26 requires local build)

Josh Pigford1e07ff432d67
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
deleted file mode 100644
index c1a512b..0000000
--- a/.github/workflows/release.yml
+++ /dev/null
@@ -1,89 +0,0 @@
-name: Build, Notarize & Release
-
-on:
- push:
- tags:
- - 'v*'
-
-jobs:
- build-and-release:
- runs-on: macos-latest
- env:
- APPLE_ID: ${{ secrets.APPLE_ID }}
- APPLE_PASSWORD: ${{ secrets.APPLE_PASSWORD }}
- APPLE_TEAM_ID: ${{ secrets.APPLE_TEAM_ID }}
- DEVELOPER_ID_APPLICATION: ${{ secrets.DEVELOPER_ID_APPLICATION }}
-
- steps:
- - name: Checkout
- uses: actions/checkout@v4
-
- - name: Install xcodegen
- run: brew install xcodegen
-
- - name: Generate Xcode project
- run: xcodegen generate
-
- - name: Build release archive
- run: |
- xcodebuild -project Chops.xcodeproj \
- -scheme Chops \
- -configuration Release \
- -archivePath build/Chops.xcarchive \
- archive \
- CODE_SIGN_IDENTITY="${DEVELOPER_ID_APPLICATION}" \
- DEVELOPMENT_TEAM="${APPLE_TEAM_ID}"
-
- - name: Export archive to .app
- run: |
- # Substitute team ID into ExportOptions.plist
- sed -i '' "s/\${APPLE_TEAM_ID}/${APPLE_TEAM_ID}/g" ExportOptions.plist
- xcodebuild -exportArchive \
- -archivePath build/Chops.xcarchive \
- -exportOptionsPlist ExportOptions.plist \
- -exportPath build/export
-
- - name: Create .dmg
- run: |
- hdiutil create -volname "Chops" \
- -srcfolder build/export/Chops.app \
- -ov -format UDZO \
- build/Chops.dmg
-
- - name: Notarize .dmg
- run: |
- xcrun notarytool submit build/Chops.dmg \
- --apple-id "${APPLE_ID}" \
- --password "${APPLE_PASSWORD}" \
- --team-id "${APPLE_TEAM_ID}" \
- --wait
-
- - name: Staple notarization ticket to .app
- run: |
- xcrun stapler staple build/export/Chops.app
-
- - name: Re-create .dmg after stapling
- run: |
- rm build/Chops.dmg
- hdiutil create -volname "Chops" \
- -srcfolder build/export/Chops.app \
- -ov -format UDZO \
- build/Chops.dmg
-
- - name: Staple notarization ticket to .dmg
- run: |
- xcrun stapler staple build/Chops.dmg
-
- - name: Create GitHub Release
- uses: softprops/action-gh-release@v2
- with:
- files: build/Chops.dmg
- generate_release_notes: true
-
- - name: Generate Sparkle appcast
- run: |
- if command -v generate_appcast &> /dev/null; then
- generate_appcast build/
- else
- echo "generate_appcast not found, skipping appcast generation"
- fi
diff --git a/scripts/release.sh b/scripts/release.sh
new file mode 100755
index 0000000..ced4cf3
--- /dev/null
+++ b/scripts/release.sh
@@ -0,0 +1,68 @@
+#!/bin/bash
+set -euo pipefail
+
+# Usage: ./scripts/release.sh 1.0.0
+
+VERSION="${1:?Usage: ./scripts/release.sh <version>}"
+TEAM_ID="W33JZPPPFN"
+SIGNING_IDENTITY="Developer ID Application: Sabotage Media, LLC ($TEAM_ID)"
+APPLE_ID="[email protected]"
+BUNDLE_ID="com.joshpigford.Chops"
+
+echo "πŸ”¨ Building Chops v$VERSION..."
+
+# Generate Xcode project
+xcodegen generate
+
+# Clean build
+rm -rf build
+mkdir -p build
+
+# Archive
+xcodebuild -project Chops.xcodeproj \
+ -scheme Chops \
+ -configuration Release \
+ -archivePath build/Chops.xcarchive \
+ archive \
+ CODE_SIGN_IDENTITY="$SIGNING_IDENTITY" \
+ DEVELOPMENT_TEAM="$TEAM_ID" \
+ MARKETING_VERSION="$VERSION" \
+ CURRENT_PROJECT_VERSION="$VERSION"
+
+# Export
+sed "s/\${APPLE_TEAM_ID}/$TEAM_ID/g" ExportOptions.plist > build/ExportOptions.plist
+xcodebuild -exportArchive \
+ -archivePath build/Chops.xcarchive \
+ -exportOptionsPlist build/ExportOptions.plist \
+ -exportPath build/export
+
+echo "πŸ“¦ Creating DMG..."
+hdiutil create -volname "Chops" \
+ -srcfolder build/export/Chops.app \
+ -ov -format UDZO \
+ build/Chops.dmg
+
+echo "πŸ” Notarizing..."
+xcrun notarytool submit build/Chops.dmg \
+ --keychain-profile "AC_PASSWORD" \
+ --wait
+
+echo "πŸ“Ž Stapling..."
+xcrun stapler staple build/export/Chops.app
+rm build/Chops.dmg
+hdiutil create -volname "Chops" \
+ -srcfolder build/export/Chops.app \
+ -ov -format UDZO \
+ build/Chops.dmg
+xcrun stapler staple build/Chops.dmg
+
+echo "🏷️ Tagging v$VERSION..."
+git tag "v$VERSION"
+git push --tags
+
+echo "πŸš€ Creating GitHub Release..."
+gh release create "v$VERSION" build/Chops.dmg \
+ --title "Chops v$VERSION" \
+ --generate-notes
+
+echo "βœ… Done! Release: https://github.com/Shpigford/chops/releases/tag/v$VERSION"