Change hdiutil detach

The detach now always fetches the correct mountpoint.
pull/1837/head
Stefan Graupner 8 years ago committed by Jussi Pakkanen
parent 5ec6151e56
commit 80f252bb5c
  1. 5
      manual tests/4 standalone binaries/build_osx_package.sh

@ -9,12 +9,9 @@ mkdir -p mnttmp
rm -f working.dmg
gunzip < template.dmg.gz > working.dmg
hdiutil attach working.dmg -noautoopen -quiet -mountpoint mnttmp
# NOTE: output of hdiutil changes every now and then.
# Verify that this is still working.
DEV=`hdiutil info|tail -1|awk '{print $1}'`
rm -rf mnttmp/myapp.app
mv /tmp/myapp.app mnttmp
hdiutil detach ${DEV}
hdiutil detach $(hdiutil info|grep "mnttmp"|awk '{print $1}')
rm -rf mnttmp
rm -f myapp.dmg
hdiutil convert working.dmg -quiet -format UDZO -imagekey zlib-level=9 -o myapp.dmg

Loading…
Cancel
Save