Packaging OSX Applications Part 2
04/09/06 17:35 |
Work
So, some smart-arse emailed me (Hi, Ron), with a
suggested improvement to the script I published
yesterday, and you know, he’s right...
His suggestion was to use a compressed .dmg as opposed to zipping the image as it creates less clutter for your users when they come to use it. He sent a patch, so here’s the updated package.sh
(Note - you can use the new -b option when finalising the image to create a bzipped image, without it you get a zlib zipped image)
The next thing I wanted to get onto was how you can set the background image of your .dmg, like everyone seems to do these days. Well, here is the easiest way I know.
1. Create your temporary DMG, open it and in it create a normal folder called hidden
2. Copy a suitable image into the ‘hidden’ folder
3. Show the View Options inspector (option-j) and select ‘This window only’ and change the background picture to the one in your ‘hidden’ folder.
4. Open the Terminal.app and navigate to your mounted drive (i.e. cd /Volumes/MyApp-temp )
5. Rename the ‘hidden’ folder to ‘.hidden’ (i.e. mv hidden .hidden )
Unmount and finalise your dmg and go to the pub..
His suggestion was to use a compressed .dmg as opposed to zipping the image as it creates less clutter for your users when they come to use it. He sent a patch, so here’s the updated package.sh
(Note - you can use the new -b option when finalising the image to create a bzipped image, without it you get a zlib zipped image)
The next thing I wanted to get onto was how you can set the background image of your .dmg, like everyone seems to do these days. Well, here is the easiest way I know.
1. Create your temporary DMG, open it and in it create a normal folder called hidden
2. Copy a suitable image into the ‘hidden’ folder
3. Show the View Options inspector (option-j) and select ‘This window only’ and change the background picture to the one in your ‘hidden’ folder.
4. Open the Terminal.app and navigate to your mounted drive (i.e. cd /Volumes/MyApp-temp )
5. Rename the ‘hidden’ folder to ‘.hidden’ (i.e. mv hidden .hidden )
Unmount and finalise your dmg and go to the pub..
|