Skip to content

feat: Winget & Windows install docs - #10073

Merged
jedevc merged 2 commits into
dagger:mainfrom
pjmagee:goreleaser-winget
Apr 11, 2025
Merged

jedevc merged 2 commits into
dagger:mainfrom
pjmagee:goreleaser-winget

Conversation

@pjmagee

@pjmagee pjmagee commented Apr 4, 2025

Copy link
Copy Markdown
Contributor
  • add winget to goreleaser
  • add winget install
  • improve powershell command
  • fix invalid 'development' install example

- add winget to goreleaser
- add winget install
- improve powershell command
- fix invalid 'development' install example

Signed-off-by: Patrick Magee <[email protected]>
@pjmagee
pjmagee requested a review from a team as a code owner April 4, 2025 18:35
@pjmagee

pjmagee commented Apr 4, 2025 •

Copy link
Copy Markdown
Contributor Author

@levlaz - The reason why 'winget install Dagger.Cli' worked for you - is my manual installations. I would like to get this merged in and have it as part of the official goreleaser process

This will mean i can delete/remove the following:

https://github.com/pjmagee/dagger-winget-release (my 1 click lazy release latest version to winget)

https://github.com/microsoft/winget-pkgs/pulls?q=is%3Apr+author%3Apjmagee+is%3Aclosed

Comment thread .goreleaser.yml Resolved
The simplest way to install Dagger on Windows is using the Windows Package Manager:

```powershell
winget install Dagger.Cli

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just to check - does this work, even without pointing it to github.com/dagger/winget? How does namespacing work here?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is the intention that this automatically PR to the main winget repo? I think if so, we need to use the pull_request section.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The winget install Dagger.Cli already works right now, with no 'config' needed by a windows OS user out of the box right now. I'm maintaining the published winget manifest - which points to the dagger zip releases. the manifest is i guess 'namespacing'? maybe i dont understand what you mean by namespacing.

but it's under windows community winget repository /d/Dagger/Cli/manifests

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah, i was not aware of the pull_request section.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed up the repository section with pull request and the microsoft pgks repository

@jedevc jedevc left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me! Will follow internally about getting the winget repo created!

@pjmagee

pjmagee commented Apr 8, 2025 •

Copy link
Copy Markdown
Contributor Author

Looks good to me! Will follow internally about getting the winget repo created!

no need to create a repo unless you need to host a private one - but its recommended to just add to the community registry since no additional work or config by a dev is needed, just run the command and it will work for them.

I imagine this goreelase winget auto points to the microsoft one?

@jedevc

jedevc commented Apr 8, 2025

Copy link
Copy Markdown
Contributor

@pjmagee the section at https://github.com/dagger/dagger/pull/10073/files#diff-42e26dc67aed8aa3edb2472b4403288c1699fb6dc47419b9a475f0f224fe4689R57-R59 is actually overriding the repository to publish to. So this actually won't push anything to the community registry as currently configured.

@pjmagee

pjmagee commented Apr 8, 2025

Copy link
Copy Markdown
Contributor Author

@pjmagee the section at https://github.com/dagger/dagger/pull/10073/files#diff-42e26dc67aed8aa3edb2472b4403288c1699fb6dc47419b9a475f0f224fe4689R57-R59 is actually overriding the repository to publish to. So this actually won't push anything to the community registry as currently configured.

Ohhh, maybe its as simple as just me removing those lines even??

@pjmagee
pjmagee force-pushed the goreleaser-winget branch from f052310 to d4b0c98 Compare April 8, 2025 19:47
@pjmagee

pjmagee commented Apr 8, 2025

Copy link
Copy Markdown
Contributor Author

Do we need to do anything for the default token: "{{ .Env.GITHUB_PERSONAL_AUTH_TOKEN }}" that goreleaser mentioned?

@pjmagee

pjmagee commented Apr 11, 2025

Copy link
Copy Markdown
Contributor Author

@wingyplus any thoughts? Not sure if I missed anything. I'm hoping with latest commit it is enough to publish to microsoft winget pkgs repo for us

@jedevc
jedevc force-pushed the goreleaser-winget branch from d4b0c98 to 54412d6 Compare April 11, 2025 08:38
- fix extra space
- added pull_request

Signed-off-by: Patrick Magee <[email protected]>
@jedevc
jedevc force-pushed the goreleaser-winget branch from 54412d6 to 8e47b7a Compare April 11, 2025 08:39
@jedevc

jedevc commented Apr 11, 2025

Copy link
Copy Markdown
Contributor

Okay, so I followed the information in https://goreleaser.com/customization/homebrew/#pull-requests and added some more parts to the template.

Hopefully seems good to you - looks like we need to set up a fork of winget-pkgs, so we can create a PR from there (since we can't push direct to a microsoft repo).

@pjmagee

pjmagee commented Apr 11, 2025

Copy link
Copy Markdown
Contributor Author

Okay, so I followed the information in https://goreleaser.com/customization/homebrew/#pull-requests and added some more parts to the template.

Hopefully seems good to you - looks like we need to set up a fork of winget-pkgs, so we can create a PR from there (since we can't push direct to a microsoft repo).

okay that makes sense yes, winget create (behind the scenes) with github token will create the branch and raise a PR on the public repo.

@jedevc

jedevc commented Apr 11, 2025 •

Copy link
Copy Markdown
Contributor

Cool, let's see how this goes. Thanks @gerhard for setting up https://github.com/dagger/winget-pkgs 🎉

@jedevc
jedevc merged commit 72bb060 into dagger:main Apr 11, 2025
@jedevc jedevc added this to the v0.18.3 milestone Apr 11, 2025
@pjmagee
pjmagee deleted the goreleaser-winget branch November 15, 2026 13:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants