加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
build.bat 820 Bytes
一键复制 编辑 原始数据 按行查看 历史
supermoon 提交于 2024-01-14 22:08 . update build script
@echo off
SETLOCAL EnableDelayedExpansion
if not exist "%ProgramFiles(x86)%\Microsoft Visual Studio\Installer\vswhere.exe" (
echo "WARNING: You need VS 2022 (for vswhere.exe)"
)
set vswherestr=^"!ProgramFiles(x86)!\Microsoft Visual Studio\Installer\vswhere.exe^" -latest -products * -requires Microsoft.Component.MSBuild -property installationPath
for /f "usebackq tokens=*" %%i in (`!vswherestr!`) do (
set BUILDVCTOOLS=%%i\Common7\IDE
echo BUILDVCTOOLS: !BUILDVCTOOLS!
if not exist !BUILDVCTOOLS!\devenv.com (
echo Error: Cannot find VS2022
exit /b 2
)
git pull
git submodule init
git submodule update
echo.!BUILDVCTOOLS! | findstr /C:"2022" >nul &&(
"!BUILDVCTOOLS!\devenv.com" "Server.sln" /Rebuild "Release"
) || (
echo Error: Cannot find vs2022
exit /b 2
)
)
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化