Skip to content

Commit e9abc45

Browse files
lmanganicursoragent
andcommitted
Fix hdiutil blank DMG creation on macOS CI runners.
Drop -format UDRW when creating a sized empty image; macOS requires -srcfolder if -format is set. Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent 4c752c8 commit e9abc45

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

scripts/build-installer-pkg.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,12 +82,12 @@ create_dmg_from_app() {
8282
rm -f "$tmp_rw" "$dmg_path"
8383

8484
echo "Creating ${dmg_mb}MB DMG for ${src_mb}MB app (free: $(disk_free))..."
85+
# Blank read-write image: do not pass -format without -srcfolder (macOS rejects it).
8586
hdiutil create \
8687
-size "${dmg_mb}m" \
8788
-volname "$volname" \
8889
-fs HFS+ \
8990
-layout SPUD \
90-
-format UDRW \
9191
-ov \
9292
"$tmp_rw"
9393

0 commit comments

Comments
 (0)