aboutsummaryrefslogtreecommitdiff
path: root/packages/darwin_app/Makefile
diff options
context:
space:
mode:
authorHans-Christoph Steiner <eighthave@users.sourceforge.net>2007-05-17 15:57:13 +0000
committerHans-Christoph Steiner <eighthave@users.sourceforge.net>2007-05-17 15:57:13 +0000
commit5ca5a312491728bf11800ecce72b7312f3e12ee2 (patch)
tree6716b2d136a48981841fed9b5d31fe36ae1c7376 /packages/darwin_app/Makefile
parenta7db06d7b5b74f7db8064785917deee973dc8286 (diff)
set the name of the mounted disk image to always be 'Pd-extended so that .DS_Store and other settings will work
svn path=/trunk/; revision=7689
Diffstat (limited to 'packages/darwin_app/Makefile')
-rw-r--r--packages/darwin_app/Makefile25
1 files changed, 13 insertions, 12 deletions
diff --git a/packages/darwin_app/Makefile b/packages/darwin_app/Makefile
index 91dcc60e..ab9c7da8 100644
--- a/packages/darwin_app/Makefile
+++ b/packages/darwin_app/Makefile
@@ -257,24 +257,25 @@ darwin_app_externals_c++:
package: dmg
+VOLUME_NAME = Pd-extended
dmg:
hdiutil create -format UDRW -fs HFS+ -srcfolder "$(BUILD_BASE)" \
- -volname Pd-extended build.dmg
+ -volname $(VOLUME_NAME) build.dmg
# detach one with the same name first
- -hdiutil detach "/Volumes/$(PACKAGE_NAME)"
+ -hdiutil detach "/Volumes/$(VOLUME_NAME)"
hdiutil attach build.dmg
- install -p $(manualsdir)/Pd/ReadMe.html "/Volumes/$(PACKAGE_NAME)"
- install -p -m0644 org.puredata.pd.plist "/Volumes/$(PACKAGE_NAME)"
- install -d "/Volumes/$(PACKAGE_NAME)/.imagefolder"
+ install -p $(manualsdir)/Pd/ReadMe.html "/Volumes/$(VOLUME_NAME)"
+ install -p -m0644 org.puredata.pd.plist "/Volumes/$(VOLUME_NAME)"
+ install -d "/Volumes/$(VOLUME_NAME)/.imagefolder"
# add link to /Applications for easy install
- cd "/Volumes/$(PACKAGE_NAME)/" && ln -s /Applications
-# background image will only show when the disk image is called "Pd-extended
+ 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/$(PACKAGE_NAME)/.imagefolder/"
- install -p DS_Store "/Volumes/$(PACKAGE_NAME)/.DS_Store"
- install -p VolumeIcon.icns "/Volumes/$(PACKAGE_NAME)/.VolumeIcon.icns"
- chmod -R a-w "/Volumes/$(PACKAGE_NAME)/$(PD_APP_NAME).app/Contents/Resources/doc"
- hdiutil detach `mount | grep $(PACKAGE_NAME) | cut -d ' ' -f 1`
+ install -p background.png "/Volumes/$(VOLUME_NAME)/.imagefolder/"
+ install -p DS_Store "/Volumes/$(VOLUME_NAME)/.DS_Store"
+ install -p VolumeIcon.icns "/Volumes/$(VOLUME_NAME)/.VolumeIcon.icns"
+ 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
rm -f build.dmg
# install license