完整 NIM_Duilib_Framework 仓库移至父目录,third_party 仅保留实际使用的 base、duilib、bin/resources 与许可证;.gitignore 覆盖 MSBuild 与打包产物。
16 lines
577 B
Batchfile
16 lines
577 B
Batchfile
@echo off
|
|
setlocal
|
|
|
|
rem Usage: build.cmd [Debug|Release] (default Debug, x64)
|
|
set "CONFIG=%~1"
|
|
if "%CONFIG%"=="" set "CONFIG=Debug"
|
|
|
|
for /f "usebackq delims=" %%i in (`"%ProgramFiles(x86)%\Microsoft Visual Studio\Installer\vswhere.exe" -latest -requires Microsoft.Component.MSBuild -find MSBuild\**\Bin\MSBuild.exe`) do set "MSBUILD=%%i"
|
|
if not defined MSBUILD (
|
|
echo MSBuild not found. Please install Visual Studio 2022 C++ workload.
|
|
exit /b 1
|
|
)
|
|
|
|
"%MSBUILD%" "%~dp0TTDownloader.sln" -p:Configuration=%CONFIG% -p:Platform=x64 -p:PlatformToolset=v143 -m -v:minimal
|
|
endlocal
|