In WNC we prefer to have Mac OS X as our platform of choice. Not only because of almost zero administration, and also because of no problems at all. We would like everybody who has Mac OS X to to have better experience from our products by better integration Vortex with Mac OS X. For really good user experience you cannot provide the same installer as for other platforms, but you should use dmg image for installation. This is actually what I really like on Mac - to have no installation. You just copy application to /Applications folder, and that's it. No messing up the system. Also uninstaling means simply drag icon to trash.

However it is not obvious how to make really nice disk image which opens Finder window of certain size, and with certain background. I have seached internet, but all tutorials tell only partially or not mention how to include creation of dmg image to your build system. So there is sumary how do we did it.
There are two basic steps - the first one you create only once, and then with every build you repeat the second in your build script. So the strategy is to create and setup dmg image, and then you copy files to image, and pack image with every build.
I created a new sparse disk image in disk utility application. This disk image is read/write, and sparse images can grow their size when needed (up to the limit from disk utility). So I saved the newly created image as "Puakma Vortex.sparseimage". I set size to 100MB, but it doesn't matter since we shrink dmg file at the end.
So the next step is to setup this sparseimage file. Open sparseimage in Finder. The image will mount to the /Volume directory under name of sparseimage (or dmg) file. Resize the window as you want. Copy the background file to some directory in the image. Now set the window background. Press cmd+J to open view settings dialog, and set background there.
Now we will hide this directory from finder. You can use two ways - the first one is to rename directory name to start with dot, so this will be UNIX hidden file, or use SetFile utility from Apple's developer tools. I used SetFile utility from terminal which hided directory on the mounted disk image. Also note quotes around the file.
/Developer/Tools/SetFile -a V "/Volumes/Puakma Vortex/background"
At the end you will need to create link to the /Application directory. You also might want to setup position of icons in the folder. Just drag icon at some place, and that's it.
For this part you might want to use some script because this will be repeated task mostly included in your build system. So there is what I have to setup Vortex:
# mount image
hdiutil attach "Puakma Vortex.sparseimage"
# remove all directorues and files from Puakma Vortex directory from that image
rm -Rf "/Volumes/Puakma Vortex/Puakma Vortex/*"
# copy all needed files - you can use rsync instead of this command,
# and the previous one, but Vortex has setup consisting from more parts
cp -R what "/Volumes/Puakma Vortex/Puakma Vortex/"
# and unmount image at the end
hdiutil detach "/Volumes/Puakma Vortex"
The last step which should be done also in your build script is to shrink the file to the size which is necessary, and create dmg file.
hdiutil compact "Puakma Vortex.sparseimage"
rm -f "Puakma Vortex.dmg"
hdiutil convert -format UDZO -o "Puakma Vortex.dmg" "Puakma Vortex.sparseimage"
So that's all, hope you enjoy new installation procedure for Mac.
Hello, before I start writing this blog, let me introduce myself.
My name is Martin Novák. I live in Prague in Czech Republic, and I study there computer science at Czech Technical University . Prague is one of the most beautiful cities around the world which is need to visit, and spend few days. I love Prague, however I have never considered Prague being my real home. I study there, and live there, but my hometown has always been Olomouc which is in Haná region in Morava - it's in the eastern part of Czech Republic about 300 km on the east of Prague. Olomouc is beautiful historical town which is small enough to live without stress, and big enough to have lot of fun there. Olomouc has the second largest historical town in country after Prague, but it's really peacuful.
I work for webWise Network Consultants, small Aussie company from Sydney doing wonderful things around Puakma technologies , and some other computing stuff. I develop Puakma Vortex which is plugin for Eclipse helping people to develop applications for Puakma Tornado server.
I would like to write about technology, specially about Puakma, Eclipse, Java, and MacOSX. And sometimes you will hear from me some other comments about various interesting things. I hope you will enjoy reading!