added a script to put the dev build on the PATH
This commit is contained in:
parent
a492ea7834
commit
a188ebe4e2
3 changed files with 15 additions and 41 deletions
11
scripts/use-dev.ps1
Normal file
11
scripts/use-dev.ps1
Normal file
|
@ -0,0 +1,11 @@
|
|||
# Put the stage2 output on the front of the path
|
||||
$stage2 = "$PSScriptRoot\..\artifacts\win7-x64\stage2\bin"
|
||||
if (Test-Path $stage2) {
|
||||
$splat = $env:PATH.Split(";")
|
||||
$stage2 = Convert-Path $stage2
|
||||
if ($splat -notcontains $stage2) {
|
||||
$env:PATH="$stage2;$env:PATH"
|
||||
}
|
||||
} else {
|
||||
Write-Host "You don't have a dev build in the 'artifacts\win7-x64\stage2' folder!"
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue