hdiutil create -srcfolder /users/test1/ -volname test1 /users/test/test1.dmg 转载于:https://www.cnblogs.com/cuthead/p/dmg.html