Either install Git via the website or run the command below in PowerShell:
winget install --id Git.Git --exact
Run the command below:
winget install --id MSYS2.MSYS2 --exact
Open MSYS2 UCRT64 (search for this in the Start menu) and update everything by running pacman -Syu. If prompted to close the terminal, reopen MSYS2 UCRT64 and rerun pacman -Syu until everything is updated. After that, run the command below:
curl -fsSL https://raw.githubusercontent.com/Rutgers-RPL/setup-script/refs/heads/main/setup-windows.sh | bash
Either manually add "C:\msys64\ucrt64\bin" to your user Path, or run the command below in PowerShell once:
[Environment]::SetEnvironmentVariable('Path', [Environment]::GetEnvironmentVariable('Path', 'User') + ';C:\msys64\ucrt64\bin', 'User')
Restart any open terminals and VSCode so that they use the updated Path.
This page from windows covers everything you need to do to install WSL. If you care to select which distro, you can read how to do it there. If you don't care, just open cmd as admin and run
wsl --install
and then restart your computer. Now that you have WSL installed, open up cmd again, and type WSL. This will open your default distro. After that, it will prompt you to make a username and password. Make sure you remember this password.
Note that the ubuntu it installs might not actually be recent enough, if so that's fine. Just go back to powershell, run wsl --unregister Ubuntu, then type wsl --list --online to see all the options. For a tested and working option, just pick Ubuntu-26.04, but you're free to go for a different option.
First update everything by running sudo apt-get update, then sudo apt-get upgrade. Then run
curl -fsSL https://raw.githubusercontent.com/Rutgers-RPL/setup-script/refs/heads/main/setup.sh | bash
This will install CMake, Ninja, gcc-arm-none-eabi, and a few other tools you will need.