Installation via Scoop
Scoop is a command-line installer for Windows. It can be installed through the following PowerShell commands.
# Optional: Needed to run a remote script the first time
Set-ExecutionPolicy RemoteSigned -Scope CurrentUser
# Command for installing Scoop
Invoke-RestMethod get.scoop.sh | Invoke-Expression
-
Install general dependencies:
scoop bucket add versions scoop install python39
-
Install platform dependencies:
The platform dependencies cannot be installed through Scoop as the install rules cannot install all required components. They will be installed through the Visual Studio 2022 Community installer. You may change the Visual Studio edition depending on your usage and team size.
This code snippet must be run in a traditional Command Prompt (
cmd.exe
).curl -sOL https://aka.ms/vs/17/release/vs_community.exe start /w vs_community.exe --passive --wait --norestart --nocache --add Microsoft.VisualStudio.Component.Windows11SDK.22000 --add Microsoft.VisualStudio.Component.VC.Tools.x86.x64 del /q vs_community.exe
-
Install Swift:
scoop install swift