Add nascent make_dmg script.
[dcpomatic.git] / platform / osx / make_dmg.sh
1 #!/bin/bash
2
3 VERSION=@version@
4
5 # DMG size in megabytes
6 DMG_SIZE=64
7
8 dmg_name="dvdomatic-$VERSION"
9
10 mkdir -p build/platform/osx/mnt
11
12 hdiutil create -megabytes $DMG_SIZE build/platform/osx/dvdomatic.dmg
13 device=$(hdid -nomount build/platform/osx/dvdomatic.dmg | grep Apple_HFS | cut -f 1 -d ' ')
14 newfs_hfs -v "$dmg_name" "$device"
15 mount -t hfs "${device}" build/platform/osx/mnt