aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruce Gray <bruce.gray@acm.org>2011-03-08 14:04:56 -0600
committerBruce Gray <bruce.gray@acm.org>2011-03-08 14:04:56 -0600
commit936462ea4956f89944d29c469edb4dc1b7b17897 (patch)
treeed74fc4e3d4b2db808d8bb3f7b3660b832f9664f
parentfd840ede0860ed16ed1964d09d75cfdbf644e6dd (diff)
Add Camelia icon to the packaged contents
-rwxr-xr-xbuild/binary/darwin_dmg/package_darwin_dmg.pl13
1 files changed, 11 insertions, 2 deletions
diff --git a/build/binary/darwin_dmg/package_darwin_dmg.pl b/build/binary/darwin_dmg/package_darwin_dmg.pl
index 7c25dc9..3989cad 100755
--- a/build/binary/darwin_dmg/package_darwin_dmg.pl
+++ b/build/binary/darwin_dmg/package_darwin_dmg.pl
@@ -198,9 +198,18 @@ print "Copying Rakudo files\n";
run "CpMac -r '$src_dir' '$vol_dir'";
run "cp ../HOW_TO_INSTALL.txt '$vol_dir'";
+run "touch '$vol_dir/Rakudo_Star/Icon\r'";
run "cp ../2000px-Camelia.svg.icns $vol_dir/.VolumeIcon.icns";
-run "SetFile -c icnC $vol_dir/.VolumeIcon.icns";
-run "SetFile -a C $vol_dir";
+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_Star/bin/perl6'";
+run "Rez -append tempicns.rsrc -o '$vol_dir/Rakudo_Star/Icon\r'";
+run "SetFile -c icnC '$vol_dir/.VolumeIcon.icns'";
+run "SetFile -a C '$vol_dir'";
+run "SetFile -a C '$vol_dir/Rakudo_Star'";
+run "SetFile -a C '$vol_dir/Rakudo_Star/bin/perl6'";
+run "SetFile -a V '$vol_dir/Rakudo_Star/Icon\r'";
+run "rm tempicns.rsrc";
print ">>> Adjusting sizes and positions in installation window\n";