From 4b05417d2fac2bf42a7b6b89fdb121ba170570d7 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Mon, 23 Mar 2015 13:33:08 +0100 Subject: [PATCH] OSX bundle updates for 4.X[-rcX] --- .../{Ardour3.icns => Ardour.icns} | Bin tools/osx_packaging/Info.plist.in | 4 +-- tools/osx_packaging/InfoPlist.strings.in | 4 +-- tools/osx_packaging/osx_build | 24 +++++++++++------- tools/osx_packaging/startup_script | 2 +- 5 files changed, 20 insertions(+), 14 deletions(-) rename tools/osx_packaging/{Ardour3.icns => Ardour.icns} (100%) diff --git a/tools/osx_packaging/Ardour3.icns b/tools/osx_packaging/Ardour.icns similarity index 100% rename from tools/osx_packaging/Ardour3.icns rename to tools/osx_packaging/Ardour.icns diff --git a/tools/osx_packaging/Info.plist.in b/tools/osx_packaging/Info.plist.in index d210150ed2..3fffd4d7ac 100644 --- a/tools/osx_packaging/Info.plist.in +++ b/tools/osx_packaging/Info.plist.in @@ -23,13 +23,13 @@ CFBundleExecutable - Ardour3 + @EXECUTABLE@ CFBundleGetInfoString @INFOSTRING@ CFBundleIconFile appIcon.icns CFBundleIdentifier - org.ardour.Ardour3 + org.ardour.@IDSUFFIX@ CFBundleInfoDictionaryVersion 6.0 CFBundleName diff --git a/tools/osx_packaging/InfoPlist.strings.in b/tools/osx_packaging/InfoPlist.strings.in index 04b906fee7..fff8210d94 100644 --- a/tools/osx_packaging/InfoPlist.strings.in +++ b/tools/osx_packaging/InfoPlist.strings.in @@ -1,4 +1,4 @@ CFBundleName = "@APPNAME@"; CFBundleShortVersionString = "@VERSION@"; -CFBundleGetInfoString = "@APPNAME@ v @VERSION@ Copyright 2001-2011 Paul Davis"; -NSHumanReadableCopyright = "Copyright 2001-20011 Paul Davis."; +CFBundleGetInfoString = "@APPNAME@ v @VERSION@ Copyright 2001-2015 Paul Davis"; +NSHumanReadableCopyright = "Copyright 2001-2015 Paul Davis."; diff --git a/tools/osx_packaging/osx_build b/tools/osx_packaging/osx_build index 1673db3622..611c6a2300 100755 --- a/tools/osx_packaging/osx_build +++ b/tools/osx_packaging/osx_build @@ -99,7 +99,7 @@ fi # setup directory structure -APPDIR=${APPNAME}.app +APPDIR=${APPNAME}${major_version}.app APPROOT=$APPDIR/Contents Frameworks=$APPROOT/lib Resources=$APPROOT/Resources @@ -163,7 +163,8 @@ mkdir -p $PatchFiles # maybe set variables env="" if test x$SAE != x ; then - appname="Ardour3/SAE" + appname="Ardour${major_version}-SAE" + EXECUTABLE=${appname} env="$envARDOUR_SAEtrue" # # current default for SAE version is German keyboard layout without a keypad @@ -172,6 +173,7 @@ if test x$SAE != x ; then env="$envARDOUR_UI_CONFardour3_ui_sae.conf" elif test x$MIXBUS != x ; then appname="Mixbus" + EXECUTABLE=${appname}${major_version} env="$envARDOUR_MIXBUStrue" # # current default for MIXBUS version is US keyboard layout without a keypad @@ -179,7 +181,8 @@ elif test x$MIXBUS != x ; then env="$envARDOUR_KEYBOARD_LAYOUTus-nokeypad" env="$envARDOUR_UI_CONFardour3_ui.conf" else - appname="Ardour3" + appname="Ardour${major_version}" + EXECUTABLE=${appname} fi # @@ -192,10 +195,13 @@ env="$envDYLIB_FALLBACK_LIBRARY_PATH/usr/local/lib:/opt/libLSEnvironment$envARDOUR_BUNDLEDtrue" + # edit plist sed -e "s?@ENV@?$env?g" \ -e "s?@VERSION@?$release_version?g" \ - -e "s?@INFOSTRING@?$info_string?g" < Info.plist.in > Info.plist + -e "s?@INFOSTRING@?$info_string?g" \ + -e "s?@IDSUFFIX@?$EXECUTABLE?g" \ + -e "s?@EXECUTABLE@?$EXECUTABLE?g" < Info.plist.in > Info.plist # and plist strings sed -e "s?@APPNAME@?$appname?" \ -e "s?@ENV@?$env?g" \ @@ -213,14 +219,14 @@ rm -f Resources/InfoPlist.strings # # if we build a bundle without jack, then -# make the Ardour3 executable a helper +# make the Ardour executable a helper # script that checks to see if JACK is # installed. # -cp startup_script $APPROOT/MacOS/Ardour3 -chmod 775 $APPROOT/MacOS/Ardour3 -MAIN_EXECUTABLE=Ardour3.bin +cp startup_script $APPROOT/MacOS/$EXECUTABLE +chmod 775 $APPROOT/MacOS/$EXECUTABLE +MAIN_EXECUTABLE=Ardour.bin ## used in startup_script echo "Copying ardour executable ...." cp $BUILD_ROOT/gtk2_ardour/ardour-$release_version $APPROOT/MacOS/$MAIN_EXECUTABLE @@ -230,7 +236,7 @@ if test x$SAE != x ; then elif test x$MIXBUS != x ; then cp Mixbus.icns $Resources/appIcon.icns else - cp Ardour3.icns $Resources/appIcon.icns + cp Ardour.icns $Resources/appIcon.icns fi cp typeArdour.icns $Resources/ diff --git a/tools/osx_packaging/startup_script b/tools/osx_packaging/startup_script index f807dd2b59..75ed7200d1 100644 --- a/tools/osx_packaging/startup_script +++ b/tools/osx_packaging/startup_script @@ -27,4 +27,4 @@ export PREBUNDLE_ENV="$(env)" # in folders likes /home/user/Frank's Wild Years CWD="`/usr/bin/dirname \"$0\"`" -exec "$CWD/Ardour3.bin" "$@" +exec "$CWD/Ardour.bin" "$@"