add link to Applications into dmg

This commit is contained in:
Jan Gerber 2015-03-31 18:26:58 +02:00
parent 6423efb88f
commit 0731e8c963
2 changed files with 3 additions and 3 deletions

View file

@ -116,7 +116,7 @@ class Install(Thread):
plist = os.path.expanduser('~/Library/LaunchAgents/%s.plist'%name)
with open(plist, 'w') as f:
f.write('''<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>

View file

@ -3,9 +3,9 @@
name="Open Media Library"
tmp="${name}.tmp.dmg"
dmg="${name}.dmg"
tmpdir=`mktemp -d -t oml`
cp -r "${name}.app" $tmpdir/
cp -r "${name}.app" "$tmpdir/"
ln -s /Applications "$tmpdir/Applications"
rm -rf "$dmg" "$tmp"
hdiutil create -srcfolder "$tmpdir" -volname "$name" -format UDZO "$tmp"
hdiutil convert -format UDZO -imagekey zlib-level=9 -o "$dmg" "$tmp"