Skip to content

Commit

Permalink
-Fix: fix make bundle_dmg in travis-ci OS X environment
Browse files Browse the repository at this point in the history
  • Loading branch information
miniupnp committed Jan 5, 2017
1 parent efb948a commit 23c1b7e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Makefile.bundle.in
Expand Up @@ -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)$(RM) $(BUNDLES_DIR)/$(BUNDLE_NAME).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
Expand Down

0 comments on commit 23c1b7e

Please sign in to comment.