You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

29 lines
777 B

@echo off
set UnityPath=%WIN_UNITY_PATH%
del /f /s /q %cd%\build-android-output\*.*
echo build start: %time%
REM unity path
set UNITY_PATH=%UnityPath%
set UNITY_LOG_PATH=%cd%\build-android-output\unity_log.txt
set Local_Path=%cd%\..
REM set build_path=%cd%
cd %Local_Path%
set UNITY_PROJECT_PATH=%cd%
set TARGET=%BUILD_PLAYER_NAME%
set EXPORT_PATH=%Local_Path%\build\Android\
cd ..
rd /s /Q %EXPORT_PATH%
set UNITY_METHOD_NAME=H3DBuild.ContentPipeline.BuildPlayerCmd
del /f /s /q %EXPORT_PATH%\*.*
%UNITY_PATH% -quit -batchmode -logFile %UNITY_LOG_PATH% -projectPath %UNITY_PROJECT_PATH% -executeMethod %UNITY_METHOD_NAME% -buildName %TARGET% -buildTarget Android
if %errorlevel% == 0 (echo successed ) else (echo fail please see unity_log.txt)
echo build end: %time%