mirror of
https://github.com/ModOrganizer2/mob.git
synced 2026-07-27 14:07:05 -07:00
force filenames for stylesheets, some are just version numbers changed curl downloader to use CreateFile(), was getting access denied errors fixed curl sometimes getting stuck sip has to start downloading after python because it uses python.exe fixed op::check() to be case insensitive better message when important variables are missing bootstrap: uses vcvars, multi process
34 lines
853 B
Batchfile
34 lines
853 B
Batchfile
@echo off
|
|
Setlocal EnableDelayedExpansion
|
|
|
|
set "vswhere_cmd=third-party\bin\vswhere.exe -nologo -prerelease -latest -property installationPath"
|
|
|
|
for /F "tokens=* USEBACKQ" %%F in (`%vswhere_cmd%`) do (
|
|
set ret=%errorlevel%
|
|
if %errorlevel% neq 0 (
|
|
echo %%F
|
|
echo vswhere returned %ret%
|
|
exit /b 1
|
|
)
|
|
|
|
set installation_path=%%F
|
|
|
|
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%"
|
|
echo run `mob` to start building
|