-
Notifications
You must be signed in to change notification settings - Fork 39
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
feat(packaging/msi): add msi packaging #852
Conversation
Signed-off-by: Justin Kolberg <[email protected]>
Signed-off-by: Justin Kolberg <[email protected]>
Signed-off-by: Justin Kolberg <[email protected]>
@@ -19,6 +19,7 @@ This release introduces the following breaking changes: | |||
- feat: add glob config provider [#713] | |||
- feat(build): validate FIPS mode at build time and runtime [#693] | |||
- feat(ci): add windows builds to dev & pr jobs [#762] | |||
- feat(packaging/msi): add msi packaging [#852] |
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.
You probably need to add the definition of the link [#852] down below, like this:
[#852]: https://github.com/SumoLogic/sumologic-otel-collector/pull/852
CONTRIBUTING.md
Outdated
1. Install Visual Studio 2019 or newer with the `.NET desktop development` | ||
workload selected in the installer. | ||
|
||
1. Open `cmd` and add msbuild to the user PATH. The path may differ depending on |
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.
Perhaps use the "Developer Command Prompt for VS 2019/2022" instead of using the regular "cmd" and adding MSBuild to path?
CONTRIBUTING.md
Outdated
setx path "%PATH%;%ProgramFiles(x86)%\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin" | ||
``` | ||
|
||
1. Navigate to the `packaging/msi/wix` directory and run: |
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.
Perhaps worth mentioning that you need to msbuild -Restore /p:Platform=x64
before that, and that you need to have the otelcol binary built first for that to work. At least this was my experience.
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.
Good catch, those steps are indeed required.
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 tried it on a fresh Windows virtual machine downloaded from here and it worked 🎉 🏆 👏
Signed-off-by: Justin Kolberg <[email protected]>
Signed-off-by: Justin Kolberg <[email protected]>
Signed-off-by: Justin Kolberg <[email protected]>
Signed-off-by: Justin Kolberg [email protected]
Adds code for building MSI packages with WiX and a C# DLL for manipulating YAML files when the MSI is executed. Only amd64 is tested and supported but it shouldn't be much work to add x86 and arm64 down the road.