zoukankan      html  css  js  c++  java
  • Unity3D配合AndroidStudio打包

    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
    

      

  • 相关阅读:
    计算机网络 其他1
    C++ part9
    C++ part8
    操作系统 part5
    C++ part7
    MyXls导出Excel的各种设置
    C# excel操作
    Castle
    C# Keycode对照表
    IEnumerable.Select和SelectMany的区别
  • 原文地址:https://www.cnblogs.com/mrblue/p/6179723.html
Copyright © 2011-2022 走看看