# Add Hugo to winget-cli

**URL:** <https://discourse.gohugo.io/t/add-hugo-to-winget-cli/25692>\
**Category:** dev\
**Created:** [May 20, 2020, 7:34pm UTC](https://discourse.gohugo.io/t/add-hugo-to-winget-cli/25692 "2020-05-20T19:34:32Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![peaceiris](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/peaceiris/32/7358_2.png) [@peaceiris](https://discourse.gohugo.io/u/peaceiris)\
**Post date:** [May 20, 2020, 7:34pm UTC](https://discourse.gohugo.io/t/add-hugo-to-winget-cli/25692/1 "2020-05-20T19:34:32Z")

</div>

The winget (Official Package Manager CLI for Windows) has been announced in the Microsoft Build 2020.

> **[microsoft/winget-cli](https://github.com/microsoft/winget-cli)**
>
> Windows Package Manager CLI (aka winget). Contribute to microsoft/winget-cli development by creating an account on GitHub.

Adding Hugo to the CLI will be useful for Windows users. Is there anyone who wants to work on this?

I am not a Windows user so I cannot do it. I will leave some links which are helpful about contributing to the CLI instead.

The `winget-pkgs` assumes the same role as the `Homebrew/homebrew-core`.

- [microsoft/winget-pkgs: The Microsoft community Windows Package Manager manifest repository](https://github.com/microsoft/winget-pkgs)

Here is an example of a contribution to vim.

- [Add vim for Windows by bitcrazed · Pull Request #123 · microsoft/winget-pkgs](https://github.com/microsoft/winget-pkgs/pull/123)

---

<div class="post-metadata">

**Author:** ![kewek](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/kewek/32/10614_2.png) [@kewek](https://discourse.gohugo.io/u/kewek)\
**Post date:** [May 21, 2020, 5:39pm UTC](https://discourse.gohugo.io/t/add-hugo-to-winget-cli/25692/3 "2020-05-21T17:39:45Z")

</div>

Willing to work on this.

Is there a link to the .exe alone? Winget doesn’t currently support .zip installers.

---

<div class="post-metadata">

**Author:** ![klakegg](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/klakegg/32/6373_2.png) [@klakegg](https://discourse.gohugo.io/u/klakegg)\
**Post date:** [May 21, 2020, 6:42pm UTC](https://discourse.gohugo.io/t/add-hugo-to-winget-cli/25692/4 "2020-05-21T18:42:58Z")

</div>

It seems like we need a msi-package of Hugo for this. That shouldn’t be too difficult…

---

<div class="post-metadata">

**Author:** ![kewek](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/kewek/32/10614_2.png) [@kewek](https://discourse.gohugo.io/u/kewek)\
**Post date:** [May 21, 2020, 7:49pm UTC](https://discourse.gohugo.io/t/add-hugo-to-winget-cli/25692/5 "2020-05-21T19:49:40Z")

</div>

Wonder if we should ask @/bep to add one to the official release source if possible.

Alternatively, we’d need somewhere to host the installers.

---

<div class="post-metadata">

**Author:** ![peaceiris](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/peaceiris/32/7358_2.png) [@peaceiris](https://discourse.gohugo.io/u/peaceiris)\
**Post date:** [May 22, 2020, 2:50am UTC](https://discourse.gohugo.io/t/add-hugo-to-winget-cli/25692/6 "2020-05-22T02:50:05Z")

</div>

The latest manifest version 0.1.0 also supports `.exe` but it has not any script field to expand a ZIP file. Currently, We need the type of release asset which is not zipped.

```auto
Id: string # publisher.package format
Publisher: string # the name of the publisher
Name: string # the name of the application
Version: string # version numbering format
License: string # the open source license or copyright
InstallerType: string # enumeration of supported installer types (exe, msi, msix)
Installers:
  - Arch: string # enumeration of supported architectures
    URL: string # path to download installation file
    Sha256: string # SHA256 calculated from installer
# ManifestVersion: 0.1.0

```

---

<div class="post-metadata">

**Author:** ![kewek](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/kewek/32/10614_2.png) [@kewek](https://discourse.gohugo.io/u/kewek)\
**Post date:** [May 22, 2020, 3:14pm UTC](https://discourse.gohugo.io/t/add-hugo-to-winget-cli/25692/7 "2020-05-22T15:14:39Z")

</div>

Y’all think it would be alright if I uploaded the unzipped folder to a personal repo, then linked to that?

It wouldn’t be official, but it’d be a workaround before we get an .exe.

---

<div class="post-metadata">

**Author:** ![peaceiris](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/peaceiris/32/7358_2.png) [@peaceiris](https://discourse.gohugo.io/u/peaceiris)\
**Post date:** [May 22, 2020, 3:29pm UTC](https://discourse.gohugo.io/t/add-hugo-to-winget-cli/25692/8 "2020-05-22T15:29:20Z")

</div>

We need opinions of maintainers before doing that.

---

<div class="post-metadata">

**Author:** ![klakegg](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/klakegg/32/6373_2.png) [@klakegg](https://discourse.gohugo.io/u/klakegg)\
**Post date:** [May 22, 2020, 9:43pm UTC](https://discourse.gohugo.io/t/add-hugo-to-winget-cli/25692/9 "2020-05-22T21:43:54Z")

</div>

@kewek  
The exe/msi needed is an installation setup, linking to the Hugo binary alone simply doesn’t make it.

Do you have an installation setup for Hugo?

---

<div class="post-metadata">

**Author:** ![kewek](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/kewek/32/10614_2.png) [@kewek](https://discourse.gohugo.io/u/kewek)\
**Post date:** [May 23, 2020, 2:29am UTC](https://discourse.gohugo.io/t/add-hugo-to-winget-cli/25692/10 "2020-05-23T02:29:14Z")

</div>

Actually, that’s a fair point.

Somehow I’d thought just linking the .exe would have been alright.  
Probably’ll have to wait for the maintainers first, and see what release assets they provide.

---

<div class="post-metadata">

**Author:** ![bep](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/bep/32/3332_2.png) [@bep](https://discourse.gohugo.io/u/bep)\
**Post date:** [May 27, 2020, 10:36am UTC](https://discourse.gohugo.io/t/add-hugo-to-winget-cli/25692/11 "2020-05-27T10:36:37Z")

</div>

As to doing MSI as part of the build, happy to do it once this gets fixed:

> <https://github.com/goreleaser/goreleaser/issues/1295>
>
> We are currently using goreleaser to package and distribute a CLI app. Thank you for this great tool!
> For Windows, we need...

---

<div class="post-metadata">

**Author:** ![peaceiris](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/peaceiris/32/7358_2.png) [@peaceiris](https://discourse.gohugo.io/u/peaceiris)\
**Post date:** [May 30, 2020, 9:14am UTC](https://discourse.gohugo.io/t/add-hugo-to-winget-cli/25692/12 "2020-05-30T09:14:21Z")

</div>

Just watching…

> <https://github.com/microsoft/winget-cli/issues/353>
>
> Donate to AppGet
> It seems like WinGet gets many of the core ideas, file format, even code structure from AppGet, but the...

---

<div class="post-metadata">

**Author:** ![mus](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/mus/32/12173_2.png) [@mus](https://discourse.gohugo.io/u/mus)\
**Post date:** [June 11, 2021, 6:25pm UTC](https://discourse.gohugo.io/t/add-hugo-to-winget-cli/25692/13 "2021-06-11T18:25:08Z")

</div>

I would love to see hugo added to winget

---

<div class="post-metadata">

**Author:** ![ju52](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/ju52/32/6749_2.png) [@ju52](https://discourse.gohugo.io/u/ju52)\
**Post date:** [June 11, 2021, 6:28pm UTC](https://discourse.gohugo.io/t/add-hugo-to-winget-cli/25692/14 "2021-06-11T18:28:18Z")

</div>

i’m not more so active on Windows, but used [WiX](https://wixtoolset.org/) - my suggestion!

---

<div class="post-metadata">

**Author:** ![bep](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/bep/32/3332_2.png) [@bep](https://discourse.gohugo.io/u/bep)\
**Post date:** [June 11, 2021, 6:46pm UTC](https://discourse.gohugo.io/t/add-hugo-to-winget-cli/25692/15 "2021-06-11T18:46:09Z")

</div>


