Commit 1550902d authored by Brendon Justin's avatar Brendon Justin Committed by Rafaël Carré

Make the Mac DMG prettier.

Modified-by: Rafaël Carré's avatarRafaël Carré <funman@videolan.org>
    Specify mount point explicitely
    Quote $(srcdir)
Signed-off-by: Rafaël Carré's avatarRafaël Carré <funman@videolan.org>
parent 2257fcdb
on run argv
tell application "Finder"
tell disk (item 1 of argv)
open
set current view of container window to icon view
set toolbar visible of container window to false
set statusbar visible of container window to false
set the bounds of container window to {300, 100, 750, 500}
set theViewOptions to the icon view options of container window
set arrangement of theViewOptions to not arranged
set icon size of theViewOptions to 104
# Don't set a background image, for now
# set background picture of theViewOptions to file ".background/background.png"
set position of item "VLC.app" of container window to {110, 100}
set position of item "Applications" of container window to {335, 100}
set position of item "Read Me.rtf" of container window to {110, 275}
set position of item "Goodies" of container window to {335, 275}
# Force saving changes to the disk by closing and opening the window
close
open
update without registering applications
delay 5
end tell
end tell
end run
......@@ -69,7 +69,11 @@ package-macosx: VLC-release.app
cp $(srcdir)/extras/package/macosx/Resources/about_bg.png $(top_builddir)/vlc-$(VERSION)/.background/background.png
$(LN_S) -f /Applications $(top_builddir)/vlc-$(VERSION)/
rm -f "$(top_builddir)/vlc-$(VERSION)-rw.dmg"
hdiutil create -verbose -srcfolder "$(top_builddir)/vlc-$(VERSION)" "$(top_builddir)/vlc-$(VERSION)-rw.dmg" -scrub
hdiutil create -verbose -srcfolder "$(top_builddir)/vlc-$(VERSION)" "$(top_builddir)/vlc-$(VERSION)-rw.dmg" -scrub -format UDRW
mkdir -p ./mount
hdiutil attach -readwrite -noverify -noautoopen -mountRoot ./mount "vlc-$(VERSION)-rw.dmg"
osascript "$(srcdir)"/extras/package/macosx/dmg_setup.scpt "vlc-$(VERSION)"
hdiutil detach ./mount/"vlc-$(VERSION)"
# Make sure the image is not writable
# Note: We can't directly create a read only dmg as we do the bless stuff
rm -f "$(top_builddir)/vlc-$(VERSION).dmg"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment