Automatic creation of app bundle in dmg installer

Nibbie
Posts: 3
Joined: 2010.02
Post: #1
Hi,

I have an automatic build process that generates a new build every day and I'd like to automatically create a new "installer" (app bundle inside a dmg) for it.

I've googled but haven't found any docs on how to do this.

I've tried using "hdiutil create MyGame.dmg -srcfolder buildoutput", but I'd like to have a nice background image.

After searching a bit more I found this link: "http://mac101.net/content/how-to/how-to-create-dmg-art-for-fancy-application-installations/" describing how to do it manually.

Is it possible to somehow automate that process?
Quote this message in a reply
Moderator
Posts: 1,562
Joined: 2003.10
Post: #2
As I recall, background image metadata (as well as window/icon size) is stored in .DS_Store. You might be able to get it to work by manually creating a DMG with the background image you want once, copying out its .DS_Store, and placing that .DS_Store into each DMG you automatically build afterward.
Quote this message in a reply
⌘-R in Chief
Posts: 1,265
Joined: 2002.05
Post: #3
Or use DMG Canvas. Rolleyes

DMG Canvas also works around the Snow Leopard .DS_Store file format incompatibility with previous OS versions.
Quote this message in a reply
Moderator
Posts: 453
Joined: 2008.04
Post: #4
I endorse DMG Canvas Grin

Howling Moon Software - CrayonBall for Mac and iPhone, Contract Game Dev Work
Quote this message in a reply
Nibbie
Posts: 3
Joined: 2010.02
Post: #5
Thanks, I will have a look at DMG Canvas.

I continued to search a bit and found this: "http://el-tramo.be/guides/fancy-dmg"

I will look into both options, but it seems like my problem is solved now.


Cheers,
Peter
Quote this message in a reply
⌘-R in Chief
Posts: 1,265
Joined: 2002.05
Post: #6
@peterp FYI: If you build the disk image on Snow Leopard, it will not look right on Leopard/Tiger. It'll have no background image and most of the visual settings will be lost. Snow Leopard's Finder changed which makes it incompatible with Leopard etc.

If you use DMG Canvas 2 it'll work.
Quote this message in a reply
Nibbie
Posts: 3
Joined: 2010.02
Post: #7
Thanks, I didn't know that.. I'll keep that in mind and have a chat with my colleagues.

Cheers,
Peter
Quote this message in a reply
Member
Posts: 144
Joined: 2009.11
Post: #8
Yeah FreakSW spent a few weeks harassed by a Perl library to fix the problem. It might be worth the $15 for DMGCanvas to avoid having to duplicate what FreakSW did with his Perl->Objective-C translation. I mean, look at this transcript of the insanity that ensued while he was working on it:

http://cmiller.fsdev.net/funnies/21

Everyone's favourite forum lurker!
https://github.com/NSError
Quote this message in a reply
Post Reply 

Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  Installer Compression Rasterman 12 5,137 Feb 4, 2010 09:53 AM
Last Post: Rasterman
  Tutorial: Make an Mac OSX App Bundle for your Java Application AndyKorth 0 3,652 Dec 21, 2008 09:30 PM
Last Post: AndyKorth
  from .dll to .bundle wyrmmage 5 5,089 Feb 23, 2007 04:11 PM
Last Post: Duane
  Framework and bundle problem pointer 2 2,767 Dec 8, 2006 04:29 AM
Last Post: MacFiend
  Installer for Mac Thenend 8 4,963 Nov 2, 2005 05:54 PM
Last Post: Duane