winsetup/setup.ps1

47 lines
1.1 KiB
PowerShell
Raw Normal View History

2024-11-08 13:22:01 +01:00
param (
[string[]]$collections
)
$packages = @{
"common" = @(
'TheDocumentFoundation.LibreOffice'
'Mozilla.Firefox'
'Microsoft.PowerShell'
'VideoLAN.VLC'
'Microsoft.WindowsTerminal'
'RustDesk.RustDesk'
'7zip.7zip'
2024-11-08 19:37:00 +01:00
'GIMP.GIMP'
2024-11-08 13:22:01 +01:00
)
"classic" = @('Google.Chrome')
"workstation" = @(
'FreeCAD.FreeCAD'
'Git.Git'
'gerardog.gsudo'
'Helix.Helix'
'Chocolatey.Chocolatey'
'KiCAD.KiCAD'
'Prusa3D.PrusaSlicer'
'Microsoft.VisualStudioCode'
'MartiCliment.UniGetUI'
2024-11-08 19:37:00 +01:00
'WireGuard.WireGuard'
2024-11-08 13:22:01 +01:00
)
"gaming" = @('Valve.Steam')
"nvidia" = @('Nvidia.GeForceExperience')
}
$args += $packages["common"]
foreach ($collection in $collections) {
if ($packages.ContainsKey($collection)) {
$args += $packages[$collection]
} else {
Write-Host "Unknown collection: $collection" -ForegroundColor Yellow
}
}
Write-Host "Installed collections: $collections" -ForegroundColor Cyan
Write-Host "Installed packages: $args" -ForegroundColor Green
winget install @args