cli icon indicating copy to clipboard operation
cli copied to clipboard

Distribute CLI via winget for Windows

Open tallpants opened this issue 3 years ago • 4 comments

winget is the first party package manager from Microsoft that's included by default in Windows 11 and newer versions of Windows 10: https://docs.microsoft.com/en-us/windows/package-manager/winget/

Instructions for distributing a package through winget are also fairly straightforward and low effort: https://docs.microsoft.com/en-us/windows/package-manager/package/

Doing this would remove the need for Windows users to install Scoop first before they can install Doppler and would bring the Windows installation instructions down to essentially "please run winget install DopplerHQ.doppler-cli" or similar.

tallpants avatar May 23 '22 04:05 tallpants

This is a cool idea and something we're tracking internally, but no ETA to share as of yet. We're current blocked on the tooling we use (goreleaser) adding support for it.

Piccirello avatar May 24 '22 20:05 Piccirello

@Piccirello Would it be possible to publish to Chocolatey in the interim? A lot of devs have it installed already due to node.js.

Hawxy avatar Jun 01 '22 15:06 Hawxy

Unfortunately it appears that goreleaser doesn't yet support Chocolatey, for the same reasons that it isn't yet able to support winget. Once support is added, we'll likely only publish to winget.

Piccirello avatar Jun 07 '22 19:06 Piccirello

Looks like progress is being made with winget now supporting the installation of stand-alone apps.

https://github.com/goreleaser/goreleaser/issues/1295#issuecomment-1153285862

ryan-blunden avatar Aug 12 '22 00:08 ryan-blunden

winget support is still stalled for some reason, although Choco is now supported: https://goreleaser.com/customization/chocolatey/

Hawxy avatar May 15 '23 06:05 Hawxy

Closed in #409. The CLI is now available via winget install doppler. Some more work is needed to get updates working from within the CLI, but in the interim you can upgrade via winget upgrade doppler.

Piccirello avatar Jul 04 '23 02:07 Piccirello