Re: Programatically Creating a Consistent DMG
Re: Programatically Creating a Consistent DMG
- Subject: Re: Programatically Creating a Consistent DMG
- From: Nick Blievers <email@hidden>
- Date: Fri, 18 Apr 2008 09:38:52 +0800
We generate a .dmg in our makefiles... I am not sure if you can have
background images etc this way, but I would assume its possible:
$(DRIVER).dmg: $(DRIVER).pkg
@-rm -f $@
@mkdir CXFS
@echo Copying pkg into temp location...
@cp -r $^ CXFS
@echo Creating disk image...
hdiutil makehybrid -o $@.tmp CXFS -hfs-openfolder dmg.tmp/$@ -hfs && \
hdiutil convert $@.tmp.dmg -format UDRO -o $@ && \
hdiutil internet-enable -yes $@
@rm -rf CXFS $@.tmp.dmg
The hdiutil commands are the interesting ones.
At least I think thats what you trying to do :)
Nick
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Filesystem-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden