diff options
| author | Carl Hetherington <cth@carlh.net> | 2013-05-29 23:14:18 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2013-05-29 23:14:18 +0100 |
| commit | 54240e17805da475fdf2063378370d49cad52045 (patch) | |
| tree | 5fd94ec8acd64d3a9a893523da2f10e3b32a0ff6 | |
| parent | fa1c0e32be95d6507ed2100fffcb3230269a880e (diff) | |
Add nascent make_dmg script.
| -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 |
