diff --git a/Open Media Library.app/Contents/MacOS/install.py b/Open Media Library.app/Contents/MacOS/install.py index c4e4c9d..3a75b53 100755 --- a/Open Media Library.app/Contents/MacOS/install.py +++ b/Open Media Library.app/Contents/MacOS/install.py @@ -116,7 +116,7 @@ class Install(Thread): plist = os.path.expanduser('~/Library/LaunchAgents/%s.plist'%name) with open(plist, 'w') as f: f.write(''' - + Label diff --git a/build.sh b/build.sh index 7e74edb..2e4f797 100755 --- a/build.sh +++ b/build.sh @@ -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"