Unity3D配合AndroidStudio打包
SET UNITY_PATH="C:\Program Files\Unity\Editor\Unity.exe" echo UNITY_PATH=%UNITY_PATH% SET GITROOT=D:\Work\Project\liveclient.git echo GITROOT =%GITROOT% SET SVNROOT=D:\Work\Project\MeetVRClient 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%\Client\Assets echo revert %SVNROOT%\Client\Assets svn revert -R -q %SVNROOT%\Client\ProjectSettings echo revert %SVNROOT%\Client\ProjectSettings 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%\Package\Android\AndroidProject\MeetVRExport\assets echo OUTPUT=%OUTPUT% SET DESTDIR=%GITROOT%\unity-vr\src\main\assets 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