increasebuild 编译批处理

@echo off
set BuildConsoleTool=
goto findpathc


:findpathc
set BuildConsoleTool="C:\Program Files (x86)\Xoreax\IncrediBuild\BuildConsole.exe"
if exist %BuildConsoleTool% ( goto build ) else goto findpathd

:findpathd
set BuildConsoleTool="D:\Program Files\Xoreax\IncrediBuild\BuildConsole.exe"
if exist %BuildConsoleTool% ( goto build ) else goto errorexe

:errorexe
echo "找不到BuildConsole.exe"
goto end

:up_all
7z a -mx9 upload/Server.7z GameServer64.exe GameServer64.pdb
svn commit upload -m "server"
goto end

:error
pause
goto end

:build
echo "编译服务器"
cd ..\..\Server\GameServer
%BuildConsoleTool% GameServer.sln /rebuild /cfg="Shipping_Server|x64" /OpenMonitor
if %ERRORLEVEL% neq 0 goto error
echo "上传服务器"
cd ..\..\Bin
goto up_all

:end



你可能感兴趣的:(increasebuild 编译批处理)