Skip to content

Commit

Permalink
Add gdb and gcc and friends to the debugging image
Browse files Browse the repository at this point in the history
  • Loading branch information
staticfloat committed Sep 20, 2022
1 parent de03e86 commit fbdddde
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions windows-kvm/debug/setup_scripts/0-11-install-w64devkit.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
$wdkVersion = "1.16.1"
Write-Output "Installing w64devkit v${wdkVersion}..."
$wdkUrl = "https://github.com/skeeto/w64devkit/releases/download/v${wdkVersion}/w64devkit-${wdkVersion}.zip"
$wdkZip = Join-Path $env:TEMP "wdk.zip"
Invoke-WebRequest -Uri $wdkUrl -OutFile $wdkZip -ErrorAction Stop

$wdkInstallDir = Join-Path $env:ProgramFiles "w64devkit"
Expand-Archive -Path $wdkZip -DestinationPath "$env:TEMP" -ErrorAction Stop -Force
Move-Item -Path (Join-Path $env:TEMP "w64devkit") `
-Destination $wdkInstallDir -ErrorAction Stop

# Add the bin directory to the PATH:
[Environment]::SetEnvironmentVariable(
"Path",
[Environment]::GetEnvironmentVariable("Path", [EnvironmentVariableTarget]::Machine) + ";C:\Program Files\w64devkit\bin",
[EnvironmentVariableTarget]::Machine)

0 comments on commit fbdddde

Please sign in to comment.