From e60e0fefe43d911a099860cba786a2f6d827462c Mon Sep 17 00:00:00 2001 From: Jonathan Wilkes <jon.w.wilkes@gmail.com> Date: Fri, 16 Dec 2016 18:21:28 -0500 Subject: [PATCH] very ugly fix to get the OSX dmg to build properly on the first try --- packages/darwin_app/Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/darwin_app/Makefile b/packages/darwin_app/Makefile index 536d57db9..14c7387f7 100644 --- a/packages/darwin_app/Makefile +++ b/packages/darwin_app/Makefile @@ -215,7 +215,11 @@ dmg: # detach one with the same name first -hdiutil detach "/Volumes/$(VOLUME_NAME)" hdiutil attach build.dmg - install -p $(DESTDIR)$(manualsdir)/Pd/ReadMe.html "/Volumes/$(VOLUME_NAME)" +# enormous hack to get around the error caused by mutating m_pd.h in the +# middle of building. We can't use $(DESTDIR) here because it depends on +# TEST_VERSION from m_pd.h, the value of which gets changed to the current +# date in the middle of the build!!! + install -p $(BUILD_BASE)/*.app/Contents/Resources/app.nw/$(manualsdir)/Pd/ReadMe.html "/Volumes/$(VOLUME_NAME)" # add link to /Applications for easy install ln -s /Applications /Volumes/$(VOLUME_NAME)/Applications # Install to .background for easier manual DS_Store makeing -- GitLab