patriksvensson / cupboard

A framework for provisioning local environments to a desired state, using the .NET SDK.
MIT License
761 stars 19 forks source link

Added support for Winget packages #19

Closed CodeCyclone closed 3 years ago

CodeCyclone commented 3 years ago

Installing winget packages (via resource) as an option for cupboard.

Documentation - https://docs.microsoft.com/en-us/windows/package-manager/

Implementation Detail: Winget list will report any installed application on the computer and winget list -s winget has a bug where it doesn't filter to only packages with known winget packages. Code will query the tool with the desired package name to filter out noise, otherwise you might get false positives (example: specify "code" and it would accidently match "Visual Studio Code").

patriksvensson commented 3 years ago

Merged! Thank you for your contribution. Much appreciated! 👍