Initial commit
This commit is contained in:
commit
5bccacfebf
2 changed files with 58 additions and 0 deletions
14
README.md
Normal file
14
README.md
Normal file
|
@ -0,0 +1,14 @@
|
|||
# WinSetup script
|
||||
|
||||
Available package collections:
|
||||
- `classic` - Customers and family collection
|
||||
- `workstation` - My collection
|
||||
- `gaming` - Gaming collection
|
||||
- `nvidia` - Nvidia GPU collection
|
||||
|
||||
## Download and run script
|
||||
```powershell
|
||||
winget install Git.Git Microsoft.PowerShell
|
||||
git clone https://git.vofy.cz/winsetup.git
|
||||
.\winsetup\winsetup.ps1
|
||||
```
|
44
setup.ps1
Normal file
44
setup.ps1
Normal file
|
@ -0,0 +1,44 @@
|
|||
param (
|
||||
[string[]]$collections
|
||||
)
|
||||
|
||||
$packages = @{
|
||||
"common" = @(
|
||||
'TheDocumentFoundation.LibreOffice'
|
||||
'Mozilla.Firefox'
|
||||
'Microsoft.PowerShell'
|
||||
'VideoLAN.VLC'
|
||||
'Microsoft.WindowsTerminal'
|
||||
'RustDesk.RustDesk'
|
||||
'7zip.7zip'
|
||||
)
|
||||
"classic" = @('Google.Chrome')
|
||||
"workstation" = @(
|
||||
'FreeCAD.FreeCAD'
|
||||
'Git.Git'
|
||||
'gerardog.gsudo'
|
||||
'Helix.Helix'
|
||||
'Chocolatey.Chocolatey'
|
||||
'KiCAD.KiCAD'
|
||||
'Prusa3D.PrusaSlicer'
|
||||
'Microsoft.VisualStudioCode'
|
||||
'MartiCliment.UniGetUI'
|
||||
)
|
||||
"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
|
Loading…
Reference in a new issue