Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Pre-create the dmg mount point, attach nobrowse

Manav Rathi90d17bba36a3
diff --git a/mobile/apps/auth/macos/packaging/dmg/make-dmg.sh b/mobile/apps/auth/macos/packaging/dmg/make-dmg.sh
index e2cbb1bd63..7a9191c6b3 100755
--- a/mobile/apps/auth/macos/packaging/dmg/make-dmg.sh
+++ b/mobile/apps/auth/macos/packaging/dmg/make-dmg.sh
@@ -40,7 +40,8 @@ iconutil --convert icns "$iconset" --output "$vol/.VolumeIcon.icns"
# does not survive the -srcfolder copy into the image).
custom_icon_flag="0000000000000000040000000000000000000000000000000000000000000000"
hdiutil create -volname Auth -fs HFS+ -format UDRW -srcfolder "$vol" "$tmp/rw.dmg"
-hdiutil attach "$tmp/rw.dmg" -noautoopen -mountpoint "$tmp/mnt"
+mkdir "$tmp/mnt"
+hdiutil attach "$tmp/rw.dmg" -nobrowse -noautoopen -mountpoint "$tmp/mnt"
xattr -wx com.apple.FinderInfo "$custom_icon_flag" "$tmp/mnt"
hdiutil detach "$tmp/mnt"
hdiutil convert "$tmp/rw.dmg" -format UDZO -ov -o "$out"