From 172adb321325cb9980409470f0b50d81ac947687 Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Sat, 20 Oct 2007 23:57:46 +0000 Subject: moved dmg code from branch-v0-39-2-extended, the disk image icon works, but not the background... svn path=/trunk/; revision=8853 --- packages/darwin_app/Makefile | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) (limited to 'packages/darwin_app') diff --git a/packages/darwin_app/Makefile b/packages/darwin_app/Makefile index 3e6ad419..ab1b99e7 100644 --- a/packages/darwin_app/Makefile +++ b/packages/darwin_app/Makefile @@ -258,14 +258,20 @@ dmg: -hdiutil detach "/Volumes/$(VOLUME_NAME)" hdiutil attach build.dmg install -p $(manualsdir)/Pd/ReadMe.html "/Volumes/$(VOLUME_NAME)" - install -d "/Volumes/$(VOLUME_NAME)/.imagefolder" # add link to /Applications for easy install ln -s /Applications /Volumes/$(VOLUME_NAME)/Applications -# background image will only show when the disk image is called "$(VOLUME_NAME) -# the background image needs to be added to the .DS_Store to work - install -p background.png "/Volumes/$(VOLUME_NAME)/.imagefolder/" +# Install to .background for easier manual DS_Store makeing + install -d "/Volumes/$(VOLUME_NAME)/.background" +# The full path to the background image needs to be added to .DS_Store to work +# Hence the background image will only show when the disk image is called +# "$(VOLUME_NAME)=Pd-extended - that is what the current DS_Store uses. +# To create the DS_Store file one must... search the net. + install -p background.png "/Volumes/$(VOLUME_NAME)/.background/" install -p DS_Store "/Volumes/$(VOLUME_NAME)/.DS_Store" install -p VolumeIcon.icns "/Volumes/$(VOLUME_NAME)/.VolumeIcon.icns" +# To enable the local image icon + /Developer/Tools/SetFile -a C /Volumes/$(VOLUME_NAME)/.VolumeIcon.icns \ + /Volumes/$(VOLUME_NAME) chmod -R a-w "/Volumes/$(VOLUME_NAME)/$(PD_APP_NAME).app/Contents/Resources/doc" hdiutil detach `mount | grep $(VOLUME_NAME) | cut -d ' ' -f 1` hdiutil convert -format UDZO -o "$(PACKAGE_NAME).dmg" build.dmg -- cgit v1.2.1