mirror of
https://github.com/ModOrganizer2/mob.git
synced 2026-07-27 14:07:05 -07:00
bootstrap.bat now forwards to the powershell script
This commit is contained in:
+1
-40
@@ -1,40 +1 @@
|
||||
@echo off
|
||||
Setlocal EnableDelayedExpansion
|
||||
|
||||
set "vswhere_cmd=third-party\bin\vswhere.exe -nologo -prerelease -latest -property installationPath"
|
||||
|
||||
for /F "tokens=* USEBACKQ" %%A in (`%vswhere_cmd%`) do (
|
||||
set ret=%errorlevel%
|
||||
if %errorlevel% neq 0 (
|
||||
echo %%F
|
||||
echo vswhere returned %ret%
|
||||
exit /b 1
|
||||
)
|
||||
|
||||
set "installation_path=%%A"
|
||||
|
||||
if "!installation_path!" == "" (
|
||||
echo empty installation path
|
||||
exit /b 1
|
||||
)
|
||||
)
|
||||
|
||||
set "opts="
|
||||
set "opts=%opts% vs/mob.sln"
|
||||
set "opts=%opts% -m "
|
||||
set "opts=%opts% -p:Configuration=Release"
|
||||
set "opts=%opts% -noLogo "
|
||||
set "opts=%opts% -p:UseMultiToolTask=true"
|
||||
set "opts=%opts% -p:EnforceProcessCountAcrossBuilds=true"
|
||||
set "opts=%opts% -clp:ErrorsOnly;Verbosity=minimal"
|
||||
|
||||
set "vcvars=%installation_path%\VC\Auxiliary\Build\vcvarsall.bat"
|
||||
cmd /c ""%vcvars%" amd64 > NUL && msbuild %opts%"
|
||||
|
||||
if %errorlevel% neq 0 (
|
||||
echo build failed
|
||||
exit /b 1
|
||||
)
|
||||
|
||||
copy "build\Release\x64\mob.exe" .\mob.exe > NUL
|
||||
echo run `mob -d prefix/path build` to start building
|
||||
@powershell .\bootstrap.ps1
|
||||
|
||||
+1
-1
@@ -32,4 +32,4 @@ if (! $?) {
|
||||
}
|
||||
|
||||
Copy-Item "build\Release\x64\mob.exe" ".\mob.exe"
|
||||
echo "Run ``.\mob -d prefix/path build`` to start building"
|
||||
echo "run ``.\mob -d prefix/path build`` to start building"
|
||||
Reference in New Issue
Block a user