add link to Applications into dmg
This commit is contained in:
parent
6423efb88f
commit
0731e8c963
2 changed files with 3 additions and 3 deletions
|
@ -116,7 +116,7 @@ class Install(Thread):
|
||||||
plist = os.path.expanduser('~/Library/LaunchAgents/%s.plist'%name)
|
plist = os.path.expanduser('~/Library/LaunchAgents/%s.plist'%name)
|
||||||
with open(plist, 'w') as f:
|
with open(plist, 'w') as f:
|
||||||
f.write('''<?xml version="1.0" encoding="UTF-8"?>
|
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">
|
<plist version="1.0">
|
||||||
<dict>
|
<dict>
|
||||||
<key>Label</key>
|
<key>Label</key>
|
||||||
|
|
4
build.sh
4
build.sh
|
@ -3,9 +3,9 @@
|
||||||
name="Open Media Library"
|
name="Open Media Library"
|
||||||
tmp="${name}.tmp.dmg"
|
tmp="${name}.tmp.dmg"
|
||||||
dmg="${name}.dmg"
|
dmg="${name}.dmg"
|
||||||
|
|
||||||
tmpdir=`mktemp -d -t oml`
|
tmpdir=`mktemp -d -t oml`
|
||||||
cp -r "${name}.app" $tmpdir/
|
cp -r "${name}.app" "$tmpdir/"
|
||||||
|
ln -s /Applications "$tmpdir/Applications"
|
||||||
rm -rf "$dmg" "$tmp"
|
rm -rf "$dmg" "$tmp"
|
||||||
hdiutil create -srcfolder "$tmpdir" -volname "$name" -format UDZO "$tmp"
|
hdiutil create -srcfolder "$tmpdir" -volname "$name" -format UDZO "$tmp"
|
||||||
hdiutil convert -format UDZO -imagekey zlib-level=9 -o "$dmg" "$tmp"
|
hdiutil convert -format UDZO -imagekey zlib-level=9 -o "$dmg" "$tmp"
|
||||||
|
|
Loading…
Reference in a new issue