From bc982a712fbe4ccd6c7f1996ab0ef50292007299 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mika=C3=ABl=20Capelle?= Date: Sun, 19 Jul 2020 21:19:21 +0200 Subject: [PATCH] allow bootstrap to be run from a different folder --- bootstrap.ps1 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bootstrap.ps1 b/bootstrap.ps1 index 0209a75..1a7f510 100644 --- a/bootstrap.ps1 +++ b/bootstrap.ps1 @@ -1,4 +1,4 @@ -$installationPath = .\third-party\bin\vswhere.exe -products * -nologo -prerelease -latest -property installationPath +$installationPath = & $PSScriptRoot\third-party\bin\vswhere.exe -products * -nologo -prerelease -latest -property installationPath if (! $?) { Write-Error "vswhere returned $LastExitCode" exit $LastExitCode @@ -10,7 +10,7 @@ if (! $installationPath) { } $opts = "" -$opts += " vs/mob.sln" +$opts += " $PSScriptRoot\vs\mob.sln" $opts += " -m" $opts += " -p:Configuration=Release" $opts += " -noLogo" @@ -31,5 +31,5 @@ if (! $?) { exit $LastExitCode } -Copy-Item "build\Release\x64\mob.exe" ".\mob.exe" +Copy-Item "$PSScriptRoot\build\Release\x64\mob.exe" "$PSScriptRoot\mob.exe" echo "run ``.\mob -d prefix/path build`` to start building" \ No newline at end of file