eclipse.platform.releng.aggregator icon indicating copy to clipboard operation
eclipse.platform.releng.aggregator copied to clipboard

[Build] Unify and clean-up eclipse product executable icons

Open HannesWell opened this issue 2 weeks ago • 9 comments

Explicitly use the eclipse.ico icon for the Windows executable, even though the executable binary produced by Equinox contains that icon already by default in the eclipse case. Unify the name of the linux icon, too.

HannesWell avatar Nov 14 '25 23:11 HannesWell

Explicitly use the eclipse.ico icon for the Windows executable, even though the executable binary produced by Equinox contains that icon already by default

What is the benefit here? This will likely invalidate the signature of the eclipse.exe as Tycho will try to replace the icon (again) and I'm not sure it is really a no-op then...

laeubi avatar Nov 15 '25 04:11 laeubi

What is the benefit here?

I'd say consistency across platforms. It's more difficult to understand why Windows is different, which would also make it more difficult to update the icon if desired.

This will likely invalidate the signature of the eclipse.exe as Tycho will try to replace the icon (again) and I'm not sure it is really a no-op then...

The Windows executable is signed during the build anyways. So it the signature should stay intact.

HannesWell avatar Nov 15 '25 11:11 HannesWell

I'd say consistency across platforms. It's more difficult to understand why Windows is different

It is not consistent between platforms anyways, e.g. windows embeds the icon, other OS require it to be located in the folder (and maybe even completely ignored). SO beside that taking the build longer I don't see much of a benefit here.

laeubi avatar Nov 15 '25 11:11 laeubi

Be careful here. It's already the case that if one uses the branding iron, the native window executables in the p2 repository, "hidden" binary files, are not signed and an update will materialize that unsigned executable into the user's installation. The platform doesn't suffer this problem because it's not using the branding iron to specialize the icons, but if you change that, you will create a new problem.

merks avatar Nov 15 '25 11:11 merks

OK, if this is so complicated then I suggest to keep the product configuration as before with respect to Windows and delete the effectively unused icon file.

HannesWell avatar Nov 15 '25 14:11 HannesWell

I would love it to be less complicated! But as long as the Platform doesn't have the problem it's probably not going to get less complicated. And the problem is subtle, so you won't notice it until someone complains about it.

If we could convince the signing service to process a zip containing executables, that would helpful (I think). I might have an opportunity to discuss that next week...

merks avatar Nov 15 '25 14:11 merks

If we could convince the signing service to process a zip containing executables, that would helpful (I think). I might have an opportunity to discuss that next week...

As far as I understood the documentation of the eclipse-winsigner-plugin used in https://github.com/eclipse-platform/eclipse.platform.releng.aggregator/blob/45c733165ed55680555148a1ed12d4ae1c413dc5/eclipse.platform.releng.tychoeclipsebuilder/eclipse.platform.repository/pom.xml#L217-L229

... it just signs the exe file(s). And if that happens before the zip is packed it should be fine, shouldn't it? Of course then the question is which file is added to the P2 repository? I assume that's what you mean when asking to process a zip? The zips in the binaries folder of the repo that contain the two executables for Windows (the .exe and the c.exe). After signing, we probably would also have to fix the metadata to adjust the checksums (there is a Tycho mojo for that). But yes, that's all very convoluted and cumbersome.

HannesWell avatar Nov 15 '25 14:11 HannesWell

I might have an opportunity to discuss that next week...

So do you think there is a chance for 'custom' images in the foreseeable future with proper signing? Do you therefore suggest to keep the Windows icon or are you fine with this change?

HannesWell avatar Nov 15 '25 14:11 HannesWell

If you want to brand with an icon (like the installer does) you'd have to do what's described here:

https://tycho.eclipseprojects.io/doc/main/SignProducts.html

Or you will have the problem described here:

https://github.com/eclipse-tycho/tycho/issues/2510

merks avatar Nov 15 '25 15:11 merks

Thanks for the details and review. Then lets keep it simple and go with this for now.

HannesWell avatar Nov 16 '25 08:11 HannesWell