Skip to content

Instantly share code, notes, and snippets.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jpbruckler
jpbruckler / DevMachineSetup.ps1
Last active September 6, 2024 14:06 — forked from codebytes/DevMachineSetup.ps1
DevMachineSetup
#Install WinGet
#Based on this gist: https://gist.github.com/crutkas/6c2096eae387e544bd05cde246f23901
$hasPackageManager = Get-Command winget -ErrorAction SilentlyContinue
[version]$version = if ($hasPackageManager) {
(winget --version).trim('v')
}
else {
'0.0.0'
}
$releasesUrl = 'https://api.github.com/repos/microsoft/winget-cli/releases/latest'