-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup-dev.ps1
More file actions
22 lines (18 loc) · 845 Bytes
/
setup-dev.ps1
File metadata and controls
22 lines (18 loc) · 845 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# Install Chocolatey if not already installed
if (!(Test-Path "$env:ProgramData\chocolatey\choco.exe")) {
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'))
}
# Install required packages
choco install mingw -y
choco install nasm -y
choco install make -y
choco install qemu -y
# Add tools to PATH
$env:Path = [System.Environment]::GetEnvironmentVariable("Path","Machine")
# Create i686-elf cross compiler directory
New-Item -ItemType Directory -Force -Path "C:\cross" | Out-Null
$env:PATH += ";C:\cross\bin"
Write-Host "Development environment setup complete!"
Write-Host "Please restart your terminal to use the new tools."