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>
Showing 1 changed file with +7 and −2
modified
scripts/release.sh
+7 −2
@@ -49,7 +49,12 @@ xcodebuild -exportArchive \ | ||
| 49 | 49 | codesign -dv --verbose=4 "$BUILD_DIR/export/$APP.app" |
| 50 | 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 | 58 | create-dmg \ |
| 54 | 59 | --volname "$APP" \ |
| 55 | 60 | --window-size 540 380 \ |
@@ -58,7 +63,7 @@ create-dmg \ | ||
| 58 | 63 | --app-drop-link 400 190 \ |
| 59 | 64 | --background "Assets/DMG/background.png" \ |
| 60 | 65 | --no-internet-enable \ |
| 61 | − "$DMG" "$BUILD_DIR/export/" | |
| 66 | + "$DMG" "$STAGE/" | |
| 62 | 67 | |
| 63 | 68 | # 5. Sign the DMG itself |
| 64 | 69 | codesign --sign "$SIGN_IDENTITY" --timestamp "$DMG" |
| 65 | 70 | |