-
Notifications
You must be signed in to change notification settings - Fork 165
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Windows MSI to the release #560
Conversation
It has proper support for CustomAction.
SOURCEFILEDIR didn'1 work with wixl 100 ...
After reviews, please squash when merging: I had to use CI to test various steps and there is no need to keep that history. |
@@ -5,7 +5,7 @@ go 1.21 | |||
toolchain go1.21.7 | |||
|
|||
require ( | |||
github.com/goreleaser/goreleaser v1.25.1 | |||
github.com/goreleaser/goreleaser-pro v1.25.1-pro |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I didn't realise you could directly use the pro version, interesting.
I'll try to get a Windows machine to try this out. If I can't, I'll merge this as is. Thank you, @pjanotti! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was an interesting exercise: I installed Windows 11 in a VM on Gnome Boxes with an ISO downloaded from Microsoft, and after the rather painful setup (compared to Linux), I was able to install the MSI that I generated on my Fedora (hint: you might need the msitools
package).
I'm not sure how to assess whether it's working, but I was able to confirm that the service is in the "Running" state on the services list. I wasn't able to figure out where the logs are, but I think I have enough evidence showing that the installation itself works.
I believe this is making the v0.102.0 release fail (example: https://github.com/open-telemetry/opentelemetry-collector-releases/actions/runs/9366469950/job/25784153242) with
|
Thanks @mx-psi - it seems that I need to add the |
…elemetry#570) This reverts commit b8551a7.
Redo over at #572 |
I'm volunteering myself to own the tier 2 support for windows/amd64. This will put the windows/amd64 on par with the other tier 2 platforms by having a specific person owning it. Some of Windows related things that I contribute(d): * Codeowner of various Windows related components in contrib (pkg/winperfcounters, activedirectorydsreceiver, iisreceiver, windowseventlogreceiver, and windowsperfcountersreceiver) * Fixing Windows related issues (e.g.: #9042, #9689, #9726, open-telemetry/opentelemetry-collector-contrib#30743) * MSI on the collector releases repo (open-telemetry/opentelemetry-collector-releases#560)
Add Windows MSI installers to
otelcol
andotelcol-contrib
. The installers follow the behavior described at open-telemetry/opentelemetry-collector#10043 (comment).Fixes #157
Some notes about this change:
ubuntu-22.04
in order to install the latestmsitools/wixl
. On the previous version the support toCustomAction
seems to be broken.windows-installer.wxs
andopentelemetry.ico
are duplicated on theotelcol
andotelcol-contrib
folders, they are exactly the same. I will look at generating at least the wxs either in this repo or by adding it as an option to the builder, to avoid this duplication.Tests:
INSTALLDIR
andCOLLECTOR_SVC_ARGS
otelcol
otelcol-contrib