OSX bundle updates for 4.X[-rcX]
authorRobin Gareus <robin@gareus.org>
Mon, 23 Mar 2015 12:33:08 +0000 (13:33 +0100)
committerRobin Gareus <robin@gareus.org>
Mon, 23 Mar 2015 12:33:08 +0000 (13:33 +0100)
tools/osx_packaging/Ardour.icns [new file with mode: 0644]
tools/osx_packaging/Ardour3.icns [deleted file]
tools/osx_packaging/Info.plist.in
tools/osx_packaging/InfoPlist.strings.in
tools/osx_packaging/osx_build
tools/osx_packaging/startup_script

diff --git a/tools/osx_packaging/Ardour.icns b/tools/osx_packaging/Ardour.icns
new file mode 100644 (file)
index 0000000..3fa4722
Binary files /dev/null and b/tools/osx_packaging/Ardour.icns differ
diff --git a/tools/osx_packaging/Ardour3.icns b/tools/osx_packaging/Ardour3.icns
deleted file mode 100644 (file)
index 3fa4722..0000000
Binary files a/tools/osx_packaging/Ardour3.icns and /dev/null differ
index d210150ed24fd8c77dd6bacc7a0d9100fd57b8a4..3fffd4d7ac789fa78349205dd3dd7f3f0523fdea 100644 (file)
                </dict>
        </array>
        <key>CFBundleExecutable</key>
-       <string>Ardour3</string>
+       <string>@EXECUTABLE@</string>
        <key>CFBundleGetInfoString</key>
        <string>@INFOSTRING@</string>
        <key>CFBundleIconFile</key>
        <string>appIcon.icns</string>
        <key>CFBundleIdentifier</key>
-       <string>org.ardour.Ardour3</string>
+       <string>org.ardour.@IDSUFFIX@</string>
        <key>CFBundleInfoDictionaryVersion</key>
        <string>6.0</string>
        <key>CFBundleName</key>
index 04b906fee7f9b51c278c0b75a7d98e6275c26e34..fff8210d941d6a03fb4fbb1bfb30e97c4835e1aa 100644 (file)
@@ -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.";
index 1673db36224a67256ae1b105e20b759f352cd268..611c6a2300781af41187f2ce18db5084bbf4aeb2 100755 (executable)
@@ -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="$env<key>ARDOUR_SAE</key><string>true</string>"
     #
     # current default for SAE version is German keyboard layout without a keypad
@@ -172,6 +173,7 @@ if test x$SAE != x ; then
     env="$env<key>ARDOUR_UI_CONF</key><string>ardour3_ui_sae.conf</string>"
 elif test x$MIXBUS != x ; then
     appname="Mixbus"
+    EXECUTABLE=${appname}${major_version}
     env="$env<key>ARDOUR_MIXBUS</key><string>true</string>"
     #
     # current default for MIXBUS version is US keyboard layout without a keypad
@@ -179,7 +181,8 @@ elif test x$MIXBUS != x ; then
     env="$env<key>ARDOUR_KEYBOARD_LAYOUT</key><string>us-nokeypad</string>"
     env="$env<key>ARDOUR_UI_CONF</key><string>ardour3_ui.conf</string>"
 else
-    appname="Ardour3"
+    appname="Ardour${major_version}"
+    EXECUTABLE=${appname}
 fi
 
 #
@@ -192,10 +195,13 @@ env="$env<key>DYLIB_FALLBACK_LIBRARY_PATH</key><string>/usr/local/lib:/opt/lib</
 
 env="<key>LSEnvironment</key><dict>$env<key>ARDOUR_BUNDLED</key><string>true</string></dict>"
 
+
 # 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/
 
index f807dd2b59987884d1c5005d9576108de284b6ec..75ed7200d129f310d8ec3e18c887c70d4be6dd51 100644 (file)
@@ -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" "$@"