Skip to content
Browse files
-Fix: fix make bundle_dmg in travis-ci OS X environment
  • Loading branch information
miniupnp committed Jan 5, 2017
1 parent efb948a commit 23c1b7e90410728b6dfdaf72771ef50f0d326ec7
Showing 1 changed file with 4 additions and 1 deletion.
@@ -116,12 +116,15 @@ bundle_dmg: bundle
$(eval TMP_DMG := $(shell mktemp -u -t opendunedmg).dmg)
$(Q)hdiutil create -srcfolder $(BUNDLE_DIR) -size 4m -ov -format UDRW -fs HFS+ -volname $(VOLUME_NAME) $(TMP_DMG)
$(Q)DEV_NAME=$$(hdiutil attach -readwrite -noverify -noautoopen "$(TMP_DMG)" | grep '/Volumes/' | egrep '^/dev/' | sed 1q | awk '{print $$1}') && \
echo "$(TMP_DMG) mounted as $${DEV_NAME}" && \
cp "$(ROOT_DIR)/os/macosx/opendune.icns" $(MOUNT_DIR)/.VolumeIcon.icns && \
$(SETFILE) -c icnC $(MOUNT_DIR)/.VolumeIcon.icns && \
$(SETFILE) -a C $(MOUNT_DIR) && \
bless --folder $(MOUNT_DIR) --openfolder $(MOUNT_DIR) && \
hdiutil detach $$DEV_NAME
$(Q)hdiutil convert -ov -o $(BUNDLES_DIR)/$(BUNDLE_NAME).dmg -format UDZO -imagekey zlib-level=9 "$(TMP_DMG)"
$(Q)mkdir -p $(BUNDLES_DIR)
$(Q)hdiutil convert $(TMP_DMG) -format UDZO -imagekey zlib-level=9 -o $(BUNDLES_DIR)/$(BUNDLE_NAME).dmg
$(Q)$(RM) "$(TMP_DMG)"

bundle_exe: all

0 comments on commit 23c1b7e

Please sign in to comment.