mac: Fix build rule for dmg.

Also add the version string to the folder used for creating the dmg,
since that will appear when mounting it.

Change-Id: Ibf5918bf51ae37082d7b2ca5baf919319f6e568d
This commit is contained in:
Dominik Riebeling 2020-06-29 21:08:57 +02:00
parent 82716bbe20
commit 3cfd129cd9

View file

@ -168,6 +168,6 @@ $(BIN2C):
# OS X specifics
$(OUTPUT).dmg: $(OUTPUT)
$(info DMG $@)
$(SILENT)$(call mkdir,$(OUTPUT)-dmg))
$(SILENT)cp -p $(OUTPUT) $(OUTPUT)-dmg
$(SILENT)hdiutil create -srcfolder $(OUTPUT)-dmg $@
$(SILENT)$(call mkdir,"$(OUTPUT)-$(APPVERSION)")
$(SILENT)cp -p $(OUTPUT) "$(OUTPUT)-$(APPVERSION)"
$(SILENT)hdiutil create -srcfolder "$(OUTPUT)-$(APPVERSION)" $@