omlapp/build.sh

13 lines
363 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`
2015-03-31 16:26:58 +00:00
cp -r "${name}.app" "$tmpdir/"
ln -s /Applications "$tmpdir/Applications"
2014-08-12 12:05:12 +00:00
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"