omlapp/build.sh

13 lines
319 B
Bash
Raw Normal View History

2014-08-04 19:41:30 +00:00
#!/bin/sh
2014-08-12 12:05:12 +00:00
name="Open Media Library"
tmp="${name}.tmp.dmg"
dmg="${name}.dmg"
2014-08-04 19:41:30 +00:00
tmpdir=`mktemp -d -t oml`
2014-08-12 12:05:12 +00:00
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"