Skip to content
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

Merged
merged 7 commits into from
Nov 30, 2022

Conversation

amdprophet
Copy link
Contributor

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.

@amdprophet amdprophet requested a review from a team as a code owner November 28, 2022 18:02
@github-actions github-actions bot added the documentation Improvements or additions to documentation label Nov 28, 2022
@@ -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]
Copy link
Contributor

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
Copy link
Contributor

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:
Copy link
Contributor

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.

Copy link
Contributor Author

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.

Copy link
Contributor

@andrzej-stencel andrzej-stencel left a 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 🎉 🏆 👏

@amdprophet amdprophet merged commit f1c58e6 into SumoLogic:main Nov 30, 2022
@amdprophet amdprophet deleted the dev-build/windows-msi branch November 30, 2022 21:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants