Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problems with hdiutil



David Litwin wrote:

>>If you add -size with a value to the create line, it'll work out
>>correctly.  I guess it's not correctly setting the size and creating
>>an invalid dmg file.
>
>I can't very well guess the compressed size :)

One option would be to create a sparse image that's larger than you'll
ever need (e.g., 1Gb), which can then be shrunk when you compress it.

This is the approach I use in my dmgutil script:

    <http://www.refnum.com/products/dmgutil/>

Sparse images require their maximum size be free at the time of
creation, but assuming you have enough local disk space this approach
works well.


-dair
___________________________________________________
mailto:email@hidden       http://www.refnum.com/
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/xcode-users/email@hidden

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.