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

Add Windows application manifest #620

Merged
merged 1 commit into from
Apr 24, 2024
Merged

Conversation

jkroepke
Copy link
Contributor

PR Description

This PR attaches a Windows Application Manifest to alloy and alloy service binary.

It add an icon to the binaries and enabled modern OS feature, like Windows long-path awareness and attach meta information like version of alloy.

go-winres is using git tag --describe to detect the currently git tag. It dev builds may result into mis-leadling versioning, since git tag --describe may take note of the helm chart tags as well. See tc-hib/go-winres#23

Unbenannt

Which issue(s) this PR fixes

Notes to the Reviewer

PR Checklist

  • CHANGELOG.md updated
  • Documentation added
  • Tests updated
  • Config converters updated

Signed-off-by: Jan-Otto Kröpke <mail@jkroepke.de>
@rfratto rfratto added the backport-to-agent:no PR should NOT be backported to the agent repo. label Apr 23, 2024
@ptodev ptodev merged commit 219b1f2 into grafana:main Apr 24, 2024
11 checks passed
@jkroepke jkroepke deleted the winmanifest branch April 24, 2024 18:29
hainenber pushed a commit to hainenber/alloy that referenced this pull request May 1, 2024
Signed-off-by: Jan-Otto Kröpke <mail@jkroepke.de>
@mattdurham
Copy link
Collaborator

While working on the boringcrypto build I don't think this actually made it to the release binary. Since the release calls Alloy which calls go build directly and bypasses the value in packaging. Its going to be a bit picky to fix to be be honest, since the manifest requires windows and I cant get generate-ui to also working within the image at the moment.

@jkroepke
Copy link
Contributor Author

jkroepke commented May 6, 2024

since the manifest requires windows

As I thought, github.com/tc-hib/go-winres is pure go and doesnt call windows binaries.

@mattdurham
Copy link
Collaborator

What might be going on is we build the windows executable in a cross compile step and for go build we pass in the GOOS and GOARCH flags for windows so it pulls down the windows executable but its actually in a Linux environment.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 7, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
backport-to-agent:no PR should NOT be backported to the agent repo. frozen-due-to-age
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants