diff options
| -rw-r--r-- | platform/osx/make_dmg.sh | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/platform/osx/make_dmg.sh b/platform/osx/make_dmg.sh new file mode 100644 index 000000000..90e5f9e4a --- /dev/null +++ b/platform/osx/make_dmg.sh @@ -0,0 +1,15 @@ +#!/bin/bash + +VERSION=@version@ + +# DMG size in megabytes +DMG_SIZE=64 + +dmg_name="dvdomatic-$VERSION" + +mkdir -p build/platform/osx/mnt + +hdiutil create -megabytes $DMG_SIZE build/platform/osx/dvdomatic.dmg +device=$(hdid -nomount build/platform/osx/dvdomatic.dmg | grep Apple_HFS | cut -f 1 -d ' ') +newfs_hfs -v "$dmg_name" "$device" +mount -t hfs "${device}" build/platform/osx/mnt |
