Skip to content

✨ Windows install: winget package creation #6441

Closed
1 of 1 issue completed
Closed

Description

@nunix

What are you trying to do?

Windows has a "package manager" called winget and the community can contribute to add new packages to the official repository.

This will be an alternative to the current script installation. I created the initial package and the PR can be found here: microsoft/winget-pkgs#135188

There's an automated workflow that can be created in order to update the repo whenever Dagger as new releases (see: https://github.com/microsoft/winget-create#using-windows-package-manager-manifest-creator-in-a-cicd-pipeline for examples).

Finally, I'll create a docs PR to show how to use it once the winget PR is approved.

PS: please note that winget does not rebuild packages, it takes the current Github releases and install them.

Why is this important to you?

Winget is getting more popular and becoming the "standard" way of installing software packages on Windows.
Having Dagger on the Winget repo might help reach more Windows users and also be part of machines provisioning (i.e. developer environment setup from scratch).

How are you currently working around this?

The current powershell script works fine, this is an alternative solution to install Dagger on Windows.

Sub-issues

Sub-issues

1 of 1 Issues completed
Loading 1 sub-issues

Activity

  1. marcosnils commented on Jan 17, 2024

    @marcosnils
    Contributor

    There's an automated workflow that can be created in order to update the repo whenever Dagger as new releases (see: https://github.com/microsoft/winget-create#using-windows-package-manager-manifest-creator-in-a-cicd-pipeline for examples).

    Great idea for a Dagger module? Would you like to give it a try?

  2. nunix commented on Jan 18, 2024

    @nunix
    Author

    As quickly discussed offline, yes I'll try to do it and make it the "story" of my next blog on wsl.dev about Dagger.

  3. pjmagee commented on Jun 9, 2024

    @pjmagee
    Contributor

    This has already been published and is usable. https://github.com/microsoft/winget-pkgs/tree/master/manifests/d/Dagger

    But this has not been officialised and automated right? If i knew this was an option I would have gone with this over Powershell installation personally

  4. pjmagee commented on Jun 9, 2024

    @pjmagee
    Contributor

    Would probably make sense to have this manifest auto submitted somehow to the Winget Manifests repository? As Dagger CLI itself doesnt have a self-update feature

  5. pjmagee commented on Jun 9, 2024

    @pjmagee
    Contributor

    I've submitted 0.11.6 to WinGet microsoft/winget-pkgs#157191

    It was much simpler than creating an initial manifest. Github Personal Access Token was stored to the winget tool and the --submit is automated by the tool to raise the PR.

    wingetcreate update --submit --urls https://github.com/dagger/dagger/releases/download/v0.11.6/dagger_v0.11.6_windows_amd64.zip https://github.com/dagger/dagger/releases/download/v0.11.6/dagger_v0.11.6_windows_arm64.zip https://github.com/dagger/dagger/releases/download/v0.11.6/dagger_v0.11.6_windows_armv7.zip --version 0.11.6 Dagger.Cli
    
  6. added a commit that references this issue on Jul 13, 2024
  7. added a commit that references this issue on Jul 30, 2024
  8. added a commit that references this issue on Aug 7, 2024
  9. added a commit that references this issue on Sep 1, 2024
  10. added this to the v0.18.3 milestone on Apr 11, 2025
  11. jedevc commented on Apr 11, 2025

    @jedevc
    Contributor

    #10073 added this, so will keep the issue open until I've confirmed that v0.18.3 release works properly with winget 🎉

  12. pjmagee commented on Apr 11, 2025

    @pjmagee
    Contributor

    There's an automated workflow that can be created in order to update the repo whenever Dagger as new releases (see: https://github.com/microsoft/winget-create#using-windows-package-manager-manifest-creator-in-a-cicd-pipeline for examples).

    Great idea for a Dagger module? Would you like to give it a try?

    A long time to reply, but I ended up with a hybrid to automate publishing because the wingetcreate.exe is only supported/runs on Windows - they have an item in their github issue backlog to make it xplatform - if this happened it could have possibly been a dagger module but goreleaser extension makes most sense to me now

  13. jedevc commented on Apr 14, 2025

    @jedevc
    Contributor

    First automated PR opened in microsoft/winget-pkgs#248030.

  14. modified the milestones: v0.18.3, v0.18.4 on Apr 16, 2025
  15. jedevc commented on Apr 23, 2025

    @jedevc
    Contributor

    @pjmagee the second automated PR was opened in microsoft/winget-pkgs#250252

    Looks like this was successful then? Can you confirm? Then we can close this out! 🎉

    Thanks for your effort here ❤️

  16. pjmagee commented on Apr 23, 2025

    @pjmagee
    Contributor

    winget install worked for me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions