In addition to manual copy and paste: Shell script with sips, Rez, DeRez. This doesn't set the 256x256 and 512x512 representation AFAIK. And I'm not sure this is the best way to do it.
From http://forums.macrumors.com/showthread.php?t=1298391 for instance.
--------8<---------8<---------8<---------8<---------8<---------8<--------- /usr/bin/sips -i "myicon.icns" /usr/bin/DeRez -only icns "myicon.icns" > /tmp/tmp.rsrc /usr/bin/Rez -append /tmp/tmp.rsrc -o "myPackage.pkg" /usr/bin/SetFile -a C "myPackage.pkg" /bin/rm -f /tmp/tmp.rsrc On Tue, Jul 10, 2012 at 9:07 AM, Khushneet Inder Singh <ksingh@quark.com> wrote:
Hi,
Can someone tell me the how to apply custom icon to a flat package. So far I successfully managed to apply the custom icon to the expanded flat package. But as soon as I flatten back the expanded package, then icon converted back to default icon(opened brown package/box). Is there any other way to apply Custom Icon to flat package.
Thanks and regards,
Do not post admin requests to the list. They will be ignored. Installer-dev mailing list (Installer-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/installer-dev/site_archiver%40lists.... This email sent to site_archiver@lists.apple.com