omlapp/build.sh
2014-08-12 14:05:12 +02:00

12 lines
319 B
Bash
Executable file

#!/bin/sh
name="Open Media Library"
tmp="${name}.tmp.dmg"
dmg="${name}.dmg"
tmpdir=`mktemp -d -t oml`
cp -r "${name}.app" $tmpdir/
rm -rf "$dmg" "$tmp"
hdiutil create -srcfolder "$tmpdir" -volname "$name" -format UDZO "$tmp"
hdiutil convert -format UDZO -imagekey zlib-level=9 -o "$dmg" "$tmp"
rm -rf $tmpdir "$tmp"