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 installation with winget #498

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mloskot
Copy link

@mloskot mloskot commented Jun 29, 2023

This is a follow-up to my submission of Infracost package manifests which have been accepted to, see microsoft/winget-pkgs#110850

The winget is an official package manager on Windows, see https://learn.microsoft.com/en-gb/windows/package-manager/winget/

The winget does not require to be Run as Administrator, but it helps
to enable links in order to avoid polluting PATHwith numerous entries.
Administrator can create links to executables in common location of
$env:USERPROFILE\AppData\Local\Microsoft\WinGet\Links

From microsoft/winget-pkgs#99059 (comment)

When in user mode, winget isn't always able to create symlinks.
When it can't create a symlink, it should still add the install directory
to the path (aka "Path cramming"). This is why the command line alias
should still work, even if the symlink isn't present

The winget is an official package manager on Windows, see
https://learn.microsoft.com/en-gb/windows/package-manager/winget/

The winget does not require to be Run as Administrator, but it helps
to enable links in order to avoid polluting `PATH`with numerous entries.
Administrator can create links to executables in common location of
`$env:USERPROFILE\AppData\Local\Microsoft\WinGet\Links`

From microsoft/winget-pkgs#99059 (comment)

> When in user mode, winget isn't always able to create symlinks.
> When it can't create a symlink, it should still add the install directory
> to the path (aka "Path cramming"). This is why the command line alias
> should still work, even if the symlink isn't present
@CLAassistant
Copy link

CLAassistant commented Jun 29, 2023

CLA assistant check
All committers have signed the CLA.

@vdmgolub
Copy link
Contributor

Hello @mloskot! Thank you for creating the pull request. I'll bring this to the team.

We need to investigate how we can release new versions for Winget in an automated fashion before adding it to the documentation.

@mloskot
Copy link
Author

mloskot commented Jun 29, 2023

@vdmgolub Yes, that would be the desired approach. You may want to have a look at
https://github.com/microsoft/PowerToys/blob/main/.github/workflows/package-submissions.yml
as an example of fairly generic GHA workflow to submit winget manifest on release

@vdmgolub
Copy link
Contributor

@mloskot Awesome! Thanks for the example :)

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.

3 participants