SET UNITY_PATH="C:Program FilesUnityEditorUnity.exe" echo UNITY_PATH=%UNITY_PATH% SET GITROOT=D:WorkProjectliveclient.git echo GITROOT =%GITROOT% SET SVNROOT=D:WorkProjectMeetVRClient echo SVNROOT =%SVNROOT% SET PROJECT_PATH=%SVNROOT%Client echo PROJECT_PATH =%PROJECT_PATH% d: cd %GITROOT% git pull d: cd %SVNROOT% svn cleanup echo cleanup %SVNROOT% svn revert -R -q ./ echo revert %SVNROOT% svn revert -R -q %SVNROOT%ClientAssets echo revert %SVNROOT%ClientAssets svn revert -R -q %SVNROOT%ClientProjectSettings echo revert %SVNROOT%ClientProjectSettings svn up --force --accept tc echo svn up %SVNROOT% echo begin build... %UNITY_PATH% -quit -batchmode -projectPath %PROJECT_PATH% -executeMethod BuildProject.ExportAndroidProject if "%ERRORLEVEL%" == "1" ( echo build failed! exit 1 ) echo build successed! @ECHO OFF SET OUTPUT=%SVNROOT%PackageAndroidAndroidProjectMeetVRExportassets echo OUTPUT=%OUTPUT% SET DESTDIR=%GITROOT%unity-vrsrcmainassets echo DESTDIR=%DESTDIR% rd /s /q %DESTDIR% echo del %DESTDIR% ok xcopy %OUTPUT% %DESTDIR% /c/e/q/y/i echo copy %DESTDIR% ok cd %GITROOT% gradlew clean assembleMeetVRRelease if "%ERRORLEVEL%" == "1" ( echo build failed! exit 1 ) echo gradlew build ok