cannot get pkg-dmg to work
I'm unable to get this to work programmatically using the mozilla pkg-dmg script. When I mount the .dmg, the finder window appears in the correct place and is the correct size, and the file icons appear in the correct places. But, the background image does not appear. It is present, just not displayed.
I can create a .dmg manually and have the background display nicely. It's just that I cannot get the pkg-dmg script to work. I assume that the problem has something to do with the .DS_Store file that I use, but I cannot figure out what the problem is. Here is how I create it.
1) Use disk utility to create a 10 MB image that is read/write.
2) Use command-line mkdir to create a hidden directory that will hold the background image.
3) Use command-line cp to copy the background image into the new directory. (It is a .png file.)
4) Use command-line mv to move into the new disk image the application and its file of release notes.
5) Use Finder -> View -> Show view options to set
- This folder only
- Set the background image
6) Close folder and unmount disk image by dragging it to the trash
7) Re-open disk image
8) Use command-line cp to copy .DS_Store from the image to a file named just DS_Store (no dot) in my application source tree.
Now, if I take the original image, unmount it and create a read-only image from it, the new read-only image works fine. If I create a new image using the pkg-dmg script and then open it, the background image does not appear.
It seems as if I'm doing everything correctly. Does anyone see anything that is obviously wrong? Any suggestions?
Thanks,
j-birder