Skip to content

Commit b03a1a6

Browse files
authored
ci: add xcodebuild -runFirstLaunch for actool support (#45)
actool requires Xcode's first-launch initialization to load its plugins. Without this, build.sh falls back to .icns-only (no Assets.car), causing the app icon to not display in Finder. Added to both release and CI workflows.
1 parent ba81836 commit b03a1a6

2 files changed

Lines changed: 7 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,13 @@ jobs:
3737
- name: Build (Release)
3838
run: swift build -c release
3939

40+
- name: Initialize Xcode tools
41+
run: sudo xcodebuild -runFirstLaunch
42+
4043
- name: Verify app bundle
4144
run: |
4245
./scripts/build.sh release
4346
test -d VocaMac.app || exit 1
4447
codesign -v VocaMac.app
48+
test -f VocaMac.app/Contents/Resources/Assets.car || echo "⚠️ Assets.car missing"
4549
echo "App bundle verified"

.github/workflows/release.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ jobs:
2727
sed -i '' "s/CFBundleVersion.*/<key>CFBundleVersion<\/key>/" scripts/build.sh || true
2828
echo "Building version: ${{ steps.version.outputs.VERSION }}"
2929
30+
- name: Initialize Xcode tools
31+
run: sudo xcodebuild -runFirstLaunch
32+
3033
- name: Build release app bundle
3134
run: ./scripts/build.sh release
3235

0 commit comments

Comments
 (0)