Skip to content

Commit 90afd6e

Browse files
committed
fix(ci): improve macOS build workflow for permissions and CI compatibility
- Set CI=true for native build to ensure correct environment in CI runs - Add chmod step to guarantee executable permissions on built binary - Use ditto instead of zip to archive app bundle, preserving permissions and signatures
1 parent 404db59 commit 90afd6e

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

.github/workflows/build-macos.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,8 @@ jobs:
8787
security list-keychain -d user -s $KEYCHAIN_PATH
8888
8989
- name: Build native
90+
env:
91+
CI: true
9092
run: bun run tauri build
9193

9294
- name: Upload architecture-specific artifacts
@@ -203,6 +205,9 @@ jobs:
203205
"$AARCH64_APP/Contents/MacOS/claudia" \
204206
"$X86_64_APP/Contents/MacOS/claudia"
205207
208+
# Ensure executable permissions are set
209+
chmod +x dmg_temp/Claudia.app/Contents/MacOS/claudia
210+
206211
echo "✅ Universal binary created"
207212
lipo -info dmg_temp/Claudia.app/Contents/MacOS/claudia
208213
@@ -262,8 +267,9 @@ jobs:
262267
mkdir -p dist/macos-universal
263268
cp Claudia.dmg dist/macos-universal/
264269
265-
# Also save the app bundle
266-
cd dmg_temp && zip -r ../dist/macos-universal/Claudia.app.zip Claudia.app && cd ..
270+
# Also save the app bundle using ditto to preserve permissions and signatures
271+
ditto -c -k --sequesterRsrc --keepParent \
272+
dmg_temp/Claudia.app dist/macos-universal/Claudia.app.zip
267273
268274
# Generate checksum
269275
shasum -a 256 dist/macos-universal/* > dist/macos-universal/checksums.txt

0 commit comments

Comments
 (0)