[Type] Enhancement
[Module] Toolchain /
[Priority] Major
[Jira#]
[Redmine#]
[Problem]
[Cause]
[Solution]
[TestCase]
Change-Id: I7180825a6264359b75c572c02d2f86a16c9a8f77
DMG_NAME=$1
#check tools
+REQUIRE_BINARY="hdiutil"
+echo "Checking Prerequisite..."
+for bin in $REQUIRE_BINARY
+do
+ if [ "`which $bin 2>/dev/null`" ] ; then
+ echo "checking $bin... OK"
+ else
+ echo "checking $bin... is not installed"
+ exit 1
+ fi
+done
# extract
+rm -rf ./data
+unzip $SDK_PKG_FILE -d ./
# make dmg
-hdiutil create ./${DMG_NAME}.dmg -srcfolder ./"${APP_NAME}.app" -ov"
+hdiutil create ./${DMG_NAME}.dmg -srcfolder ./data/install-manager/*.app -ov
+
+# remove extracted files
+rm -rf ./data