From 00fd1959016e72ca4ca75b6120a97872385b419b Mon Sep 17 00:00:00 2001 From: Steve Mynott Date: Thu, 11 Feb 2016 14:19:47 +0000 Subject: move Camelia from being folder icon to being folder background since it confused the london.pm mac users in testing into thinking the folder was an app --- ports/darwin_dmg/adjust_installation_window.scpt | 6 ++++-- ports/darwin_dmg/package_darwin_dmg.pl | 3 ++- 2 files changed, 6 insertions(+), 3 deletions(-) (limited to 'ports') diff --git a/ports/darwin_dmg/adjust_installation_window.scpt b/ports/darwin_dmg/adjust_installation_window.scpt index 5c8fa1b..c938583 100644 --- a/ports/darwin_dmg/adjust_installation_window.scpt +++ b/ports/darwin_dmg/adjust_installation_window.scpt @@ -6,6 +6,8 @@ tell application "Finder" set top_left_Y to 100 set bottom_right_X to 600 set bottom_right_Y to 500 + set theViewOptions to the icon view options of container window + set background picture of theViewOptions to POSIX file "/Volumes/Rakudo/.background/installerbg.png" tell container window set current view to icon view @@ -24,9 +26,9 @@ tell application "Finder" end tell set position of item "Rakudo" to {120, 74} - set position of item "Applications" to {360, 74} + set position of item "Applications" to {380, 74} set position of item "README.txt" to {120, 264} - set position of item "docs" to {360, 264} + set position of item "docs" to {380, 264} delay 5 close diff --git a/ports/darwin_dmg/package_darwin_dmg.pl b/ports/darwin_dmg/package_darwin_dmg.pl index 0e76e64..a277d38 100755 --- a/ports/darwin_dmg/package_darwin_dmg.pl +++ b/ports/darwin_dmg/package_darwin_dmg.pl @@ -137,7 +137,8 @@ run "cp ../2000px-Camelia.svg.icns $vol_dir/.VolumeIcon.icns"; run "sips -i $vol_dir/.VolumeIcon.icns"; run "DeRez -only icns $vol_dir/.VolumeIcon.icns > tempicns.rsrc"; run "Rez -append tempicns.rsrc -o '$vol_dir/Rakudo/bin/perl6'"; -run "Rez -append tempicns.rsrc -o '$vol_dir/Rakudo/Icon\r'"; +run "mkdir $vol_dir/.background"; +run "cp ../installerbg.png $vol_dir/.background"; run "SetFile -c icnC '$vol_dir/.VolumeIcon.icns'"; run "SetFile -a C '$vol_dir'"; run "SetFile -a C '$vol_dir/Rakudo'"; -- cgit v1.1