Skip to content

Commit

Permalink
Added step to verify the DMG.
Browse files Browse the repository at this point in the history
  • Loading branch information
aburgh committed Nov 23, 2012
1 parent 62e10f4 commit 4da419d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions DiskArbitrator.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -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;
};
Expand All @@ -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;
Expand Down
3 changes: 2 additions & 1 deletion Source/build_dmg.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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}"

0 comments on commit 4da419d

Please sign in to comment.