From 4af4cb6b21a54dcc45b9c361be977d0c8339ab9d Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Sun, 11 May 2008 14:27:28 +0000 Subject: fixed up Info.plist versioning following Marius' research: http://lists.puredata.info/pipermail/pd-list/2008-02/059627.html and this blog post: http://www.dribin.org/dave/blog/archives/2006/08/02/versioning_os_x_apps/ svn path=/trunk/; revision=9782 --- packages/darwin_app/Info.plist.in | 6 ++++-- packages/darwin_app/Makefile | 4 +++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/packages/darwin_app/Info.plist.in b/packages/darwin_app/Info.plist.in index 6c4d9a69..2d1a877d 100644 --- a/packages/darwin_app/Info.plist.in +++ b/packages/darwin_app/Info.plist.in @@ -29,11 +29,13 @@ CFBundlePackageType APPL CFBundleSignature - ???? + PdPd CFBundleIconFile pd.icns + CFBundleShortVersionString + CFBUNDLESHORTVERSIONSTRING CFBundleVersion - PD_VERSION + CFBUNDLEVERSION LSUIPresentationMode 0 LSUIElement diff --git a/packages/darwin_app/Makefile b/packages/darwin_app/Makefile index 84a86e25..86224788 100644 --- a/packages/darwin_app/Makefile +++ b/packages/darwin_app/Makefile @@ -156,10 +156,12 @@ darwin_app_devel_wrapper: Info.plist #------------------------------------------------------------------------------# # generate Info.plist using PD_APP_NAME and PD_VERSION +Info.plist: CFBUNDLEVERSION_DATE := $(shell date +%Y.%m.%d) Info.plist: Info.plist.in cat Info.plist.in | \ sed 's/PD_APP_NAME/$(PD_APP_NAME)/' | \ - sed 's/PD_VERSION/$(PD_VERSION)/' > \ + sed 's/CFBUNDLESHORTVERSIONSTRING/$(PD_MAJOR_VERSION).$(PD_MINOR_VERSION).$(PD_BUGFIX_VERSION)/' | \ + sed 's/CFBUNDLEVERSION/$(CFBUNDLEVERSION_DATE)/' > \ Info.plist # tigital's Gem window focus black magic -- cgit v1.2.1