Community
Participate
Working Groups
Build ID: I20090611-1540 Steps To Reproduce: I have an RCP Product Export configuration containing the following: <launcher name="ReCourse"> <linux icon="/org.tencompetence.ldauthor/branding/linux/ldauthor.xpm"/> <macosx icon="/org.tencompetence.ldauthor/branding/mac/ldauthor.icns"/> <solaris/> <win useIco="true"> <ico path="/org.tencompetence.ldauthor/branding/windows/ldauthor.ico"/> <bmp/> </win> </launcher> I launch the Product Export wizard and select "Export for multiple platforms" and then select linux (gtk/86), macosx (carbon/x86) and win32 (win32/x86). I look in the exported folder for Mac and see in the ReCourse.app/Contents/Resources folder that the wrong icon has been copied: ldauthor.xpm <---- This is the linux icon! When it should be: ldauthor.icns <----- Mac icon! It's copied over the icon from the Linux configuration and also added the incorrect entry to the Info.plist file! However, if I run the export wizard without choosing "Export for multiple platforms" it's OK. This broke in 3.5 More information:
Are you exporting with metadata? ("Generate metadata repository")
(In reply to comment #1) > Are you exporting with metadata? ("Generate metadata repository") > I tried both options. Still the same result.
Created attachment 140014 [details] Product Info file Attached Product Info file fore reference.
Ok, I see the problem. This is a consequence the change we made to run one multi-platform build instead of N single platform builds. Branding is done using a list of icons: icons = ${launcherIcons}, iconA, iconB The list depends on the platform, except ${launcherIcons} goes first. UI sets launcherIcons to be the full set for all platforms. The branding iron itself is just using icons[0] on the platforms that only use 1 icon. If you aren't using metadata, workaround is to do one platform at a time. If you are using metadata, you could still do that, except the resulting metadata wouldn't be multi-platform and you couldn't use the same repo to update all platforms. Possible fixes are 1) put ${launcherIcons} at the end of the list instead of the beginning 2) make the branding iron smarter, we are lucky enough that the different platforms all use different extensions for their icons.
Created attachment 144884 [details] patch
DJ can you please review
Released.
*** Bug 291389 has been marked as a duplicate of this bug. ***