summaryrefslogtreecommitdiffstats
path: root/build/mac
diff options
context:
space:
mode:
authorthomasvl@chromium.org <thomasvl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-05-08 20:24:08 +0000
committerthomasvl@chromium.org <thomasvl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-05-08 20:24:08 +0000
commitad3016e12262917f474f0f511c8ac1a1c3e91935 (patch)
tree2460afdd4aff58385d153fab6b65fb1460573780 /build/mac
parent0800c6694b82aebb27f8021acc759e04dfe2542f (diff)
downloadchromium_src-ad3016e12262917f474f0f511c8ac1a1c3e91935.zip
chromium_src-ad3016e12262917f474f0f511c8ac1a1c3e91935.tar.gz
chromium_src-ad3016e12262917f474f0f511c8ac1a1c3e91935.tar.bz2
Add a simple dmg script to the mac build dir to build a dmg out of the app.
Add a target to build a dmg out of the app. Add a target to all that will build everything and the dmg (since we don't include the dmg in all since developers really don't need to wait for that). Review URL: http://codereview.chromium.org/113152 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@15672 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'build/mac')
-rwxr-xr-xbuild/mac/build_app_dmg40
1 files changed, 40 insertions, 0 deletions
diff --git a/build/mac/build_app_dmg b/build/mac/build_app_dmg
new file mode 100755
index 0000000..ec12418
--- /dev/null
+++ b/build/mac/build_app_dmg
@@ -0,0 +1,40 @@
+#!/bin/sh
+
+# Copyright (c) 2009 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+# Normally you don't want to build a dmg out of a debug build.
+if [ "${CONFIGURATION}" != "Release" ] ; then
+ echo "warning: building dmg in non-release mode" >&2
+fi
+
+# Make sure we got the branding passed to us
+if [ $# -ne 1 ]; then
+ echo "error: missing branding as an argument" >&2
+ exit 1
+fi
+
+# fail on anything from here out
+set -e
+
+TOP="${SRCROOT}/.."
+PKG_DMG="${TOP}/build/mac/pkg-dmg"
+
+APP_NAME=$1
+SRC_APP_PATH="${BUILT_PRODUCTS_DIR}/${APP_NAME}.app"
+VOL_NAME="${APP_NAME}"
+# Do we want a svn version in the DMG name?
+DMG_NAME="${APP_NAME}.dmg"
+DST_DMG_PATH="${BUILT_PRODUCTS_DIR}/${DMG_NAME}"
+
+# show things as we run them
+set -x
+
+# Call the real working
+"${PKG_DMG}" --source /var/empty \
+ --target "${DST_DMG_PATH}" \
+ --format UDBZ \
+ --volname "${VOL_NAME}" \
+ --tempdir "${TEMP_DIR}" \
+ --copy "${SRC_APP_PATH}/:/${APP_NAME}.app/"