mirror of
https://github.com/ModOrganizer2/mob.git
synced 2026-07-27 14:07:05 -07:00
allow bootstrap to be run from a different folder
This commit is contained in:
+3
-3
@@ -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"
|
||||
Reference in New Issue
Block a user