• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Programatically Creating a Consistent DMG
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Re: Programatically Creating a Consistent DMG
  • Next by Date: Re: Programatically Creating a Consistent DMG
  • Previous by thread: Re: Programatically Creating a Consistent DMG
  • Next by thread: Remote copy on AFP volume
  • Index(es):
    • Date
    • Thread