fix(release): stage only the .app into the DMG
The export folder also contains DistributionSummary.plist and Packaging.log, which must not ship inside the image. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
1 changed file +7 −2
modified
scripts/release.sh
+7 −2
@@ -49,7 +49,12 @@ xcodebuild -exportArchive \ | |||||
| 49 | codesign -dv --verbose=4 "$BUILD_DIR/export/$APP.app" | 49 | codesign -dv --verbose=4 "$BUILD_DIR/export/$APP.app" | ||
| 50 | codesign --verify --deep --strict "$BUILD_DIR/export/$APP.app" | 50 | codesign --verify --deep --strict "$BUILD_DIR/export/$APP.app" | ||
| 51 | 51 | ||||
| 52 | −# 4. Build DMG (create-dmg, background art in Assets/DMG/) | 52 | +# 4. Build DMG (create-dmg, background art in Assets/DMG/). Stage only | ||
| 53 | +# the .app — the export folder also contains packaging logs that must | ||||
| 54 | +# not ship inside the image. | ||||
| 55 | +STAGE="$BUILD_DIR/dmg-stage" | ||||
| 56 | +rm -rf "$STAGE" && mkdir -p "$STAGE" | ||||
| 57 | +cp -R "$BUILD_DIR/export/$APP.app" "$STAGE/" | ||||
| 53 | create-dmg \ | 58 | create-dmg \ | ||
| 54 | --volname "$APP" \ | 59 | --volname "$APP" \ | ||
| 55 | --window-size 540 380 \ | 60 | --window-size 540 380 \ | ||
@@ -58,7 +63,7 @@ create-dmg \ | |||||
| 58 | --app-drop-link 400 190 \ | 63 | --app-drop-link 400 190 \ | ||
| 59 | --background "Assets/DMG/background.png" \ | 64 | --background "Assets/DMG/background.png" \ | ||
| 60 | --no-internet-enable \ | 65 | --no-internet-enable \ | ||
| 61 | − "$DMG" "$BUILD_DIR/export/" | 66 | + "$DMG" "$STAGE/" | ||
| 62 | 67 | ||||
| 63 | # 5. Sign the DMG itself | 68 | # 5. Sign the DMG itself | ||
| 64 | codesign --sign "$SIGN_IDENTITY" --timestamp "$DMG" | 69 | codesign --sign "$SIGN_IDENTITY" --timestamp "$DMG" | ||
| 65 | 70 | ||||