Skip to content

Commit 8752b2f

Browse files
committed
fix(ci): copy resource bundle to app root for SPM compatibility
- Swift Package Manager's resource_bundle_accessor.swift looks for bundles in app root - Copy resource bundle to both standard location (Contents/Resources) and app root - This ensures compatibility with SPM-generated resource access code
1 parent c5d0547 commit 8752b2f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/release.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,10 @@ jobs:
4242
mkdir -p ClaudeCodeMonitor.app/Contents/Resources
4343
cp ClaudeCodeMonitor ClaudeCodeMonitor.app/Contents/MacOS/
4444
cp Info.plist ClaudeCodeMonitor.app/Contents/
45-
# Copy resource bundle
45+
# Copy resource bundle to the standard macOS location
4646
cp -R .build/arm64-apple-macosx/release/ClaudeCodeMonitor_ClaudeCodeMonitor.bundle ClaudeCodeMonitor.app/Contents/Resources/ || true
47+
# Also copy to app bundle root for SPM compatibility
48+
cp -R .build/arm64-apple-macosx/release/ClaudeCodeMonitor_ClaudeCodeMonitor.bundle ClaudeCodeMonitor.app/ || true
4749
# Update version in Info.plist
4850
/usr/libexec/PlistBuddy -c "Set :CFBundleShortVersionString ${{ steps.version.outputs.version }}" ClaudeCodeMonitor.app/Contents/Info.plist
4951
/usr/libexec/PlistBuddy -c "Set :CFBundleVersion ${{ steps.version.outputs.version }}" ClaudeCodeMonitor.app/Contents/Info.plist

0 commit comments

Comments
 (0)