mirror of
https://github.com/rizinorg/cutter
synced 2026-08-11 16:23:06 -04:00
macos_sign.sh: shrink signed DMG before conversion (#3649)
Without the final shrinking pass, diskutil verifyVolume errors with "Invalid number of allocation blocks", which causes issues for non-interactive mounting in package managers.
This commit is contained in:
parent
867c54e838
commit
26fa614d01
1 changed files with 8 additions and 0 deletions
|
|
@ -108,9 +108,17 @@ resign_dmg() {
|
|||
notarize_bundle Cutter-rw/Cutter.app
|
||||
unmount
|
||||
trap - EXIT
|
||||
# Remove temporary signing space and restore HFS+ volume consistency.
|
||||
ee hdiutil resize -size min Cutter-rw.dmg
|
||||
OUTPUT="${1%.*}-signed.dmg"
|
||||
echo_step "Creating final read-only ${OUTPUT}"
|
||||
ee hdiutil convert -format UDZO -o "${OUTPUT}" Cutter-rw.dmg
|
||||
echo_step "Verifying filesystem in ${OUTPUT}"
|
||||
ee hdiutil attach "${OUTPUT}" -readonly -nobrowse -noautofsck -mountpoint Cutter-rw
|
||||
trap unmount EXIT
|
||||
ee diskutil verifyVolume Cutter-rw
|
||||
unmount
|
||||
trap - EXIT
|
||||
}
|
||||
|
||||
case "$1" in
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue