From 4da419d3e8c77664c85dd11d105f723162505430 Mon Sep 17 00:00:00 2001 From: Aaron Burghardt Date: Fri, 23 Nov 2012 17:00:59 -0500 Subject: [PATCH] Added step to verify the DMG. --- DiskArbitrator.xcodeproj/project.pbxproj | 4 ++-- Source/build_dmg.sh | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/DiskArbitrator.xcodeproj/project.pbxproj b/DiskArbitrator.xcodeproj/project.pbxproj index 378941a..7983c2a 100644 --- a/DiskArbitrator.xcodeproj/project.pbxproj +++ b/DiskArbitrator.xcodeproj/project.pbxproj @@ -473,7 +473,7 @@ COPY_PHASE_STRIP = NO; GCC_DYNAMIC_NO_PIC = NO; GCC_OPTIMIZATION_LEVEL = 0; - PRODUCT_NAME = "Build DMG"; + PRODUCT_NAME = "Disk Arbitrator-0.4.2.dmg"; }; name = Debug; }; @@ -483,7 +483,7 @@ COMBINE_HIDPI_IMAGES = YES; COPY_PHASE_STRIP = YES; DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; - PRODUCT_NAME = "Build DMG"; + PRODUCT_NAME = "Disk Arbitrator-0.4.2.dmg"; ZERO_LINK = NO; }; name = Release; diff --git a/Source/build_dmg.sh b/Source/build_dmg.sh index 049883e..6ea33f0 100755 --- a/Source/build_dmg.sh +++ b/Source/build_dmg.sh @@ -23,11 +23,12 @@ if [ -e "$DMG_DST_PATH" ] ; then fi mkdir -p "${DMG_SRC_DIR}" -cp -R "${SRC_PRODUCT_PATH}" "${DMG_SRC_DIR}" +cp -LR "${SRC_PRODUCT_PATH}" "${DMG_SRC_DIR}" cp "${SRC_PRODUCT_PATH}/Contents/Resources/README.html" "${DMG_SRC_DIR}" cp "${SRC_PRODUCT_PATH}/Contents/Resources/Release Notes.html" "${DMG_SRC_DIR}" cp "${SRCROOT}/Resources/Disk Arbitrator Agent.plist" "${DMG_SRC_DIR}" hdiutil create -layout NONE -srcfolder "${DMG_SRC_DIR}" "$DMG_DST_PATH" +hdiutil verify "$DMG_DST_PATH" || exit 1 rm -r "${DMG_SRC_DIR}" \ No newline at end of file