Skip to content

Instantly share code, notes, and snippets.

@nsticco
Last active November 29, 2023 00:58
Show Gist options
  • Save nsticco/428d5f982df44ddd906c7db2692c55cf to your computer and use it in GitHub Desktop.
Save nsticco/428d5f982df44ddd906c7db2692c55cf to your computer and use it in GitHub Desktop.
bootstrap-windows-game
##########################################################################################
# Install Game Tools
##########################################################################################
Write-Output "Installing Chocolatey..."
Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
Write-Output "Installing NVIDIA drivers..."
choco install -y geforce-experience cuda
Write-Output "Installing game tools and requirements..."
choco install -y steam epicgameslauncher blender git git-lfs llvm nuget.commandline
Write-Output "Installing Android Studio..."
choco install -y androidstudio --version=4.0.2.0
Write-Output "Downloading Visual Studio 2022 installer..."
Invoke-WebRequest -OutFile "$HOME\vs_community.exe" -Uri "https://c2rsetup.officeapps.live.com/c2r/downloadVS.aspx?sku=community&channel=Release&version=VS2022&source=VSLandingPage&cid=2028"
# Visual Studio CLI parameters documented here:
# https://learn.microsoft.com/en-us/visualstudio/install/use-command-line-parameters-to-install-visual-studio?view=vs-2022
# Community Workload IDs available here:
# https://learn.microsoft.com/en-us/visualstudio/install/workload-component-id-vs-community?view=vs-2022&preserve-view=true
Write-Output "Running Visual Studio Installer..."
Start-Process -Wait -FilePath "$HOME\vs_community.exe" -ArgumentList "--quiet --includeRecommended `
--add Microsoft.VisualStudio.Workload.NativeGame `
--add Microsoft.VisualStudio.Workload.NativeDesktop `
--add Microsoft.VisualStudio.Workload.NativeCrossPlat `
--add Microsoft.VisualStudio.Workload.NetWeb `
--add Microsoft.VisualStudio.Workload.Windows11SDK `
--add Microsoft.NET.CoreRuntime.3.1"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment