1 Star 0 Fork 1

eloncode/UnityAndroidIl2cppPatchDemo

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
build_demo_apk_2018.cmd 2.27 KB
一键复制 编辑 原始数据 按行查看 历史
LuDong 提交于 2019-07-28 18:45 . add unity log
rem global
SET UnityBin="C:\Program Files\Unity2018.4.4f1\Editor\Unity.exe"
rem prepare build cmd
SET ScriptPath=%~dp0
SET ScriptPath=%ScriptPath:~0,-1%
SET ProjectPath=%ScriptPath%
SET BuildCmd=%UnityBin% -quit -buildTarget android -batchmode -projectPath "%ProjectPath%"
rem ==========================================================================================
rem build version1 patch
rem ==========================================================================================
@echo "start to build version1"
cd %ProjectPath%
git checkout version1
del %ProjectPath%\Assets\AndroidIl2cppPatchDemo\PrebuiltPatches\AllAndroidPatchFiles_Version1.zip
%BuildCmd% -executeMethod AndroidBuilder.BuildPatch -logFile build_version1.log
if not exist "%ProjectPath%\Assets\AndroidIl2cppPatchDemo\PrebuiltPatches\AllAndroidPatchFiles_Version1.zip" (
echo "Build Version1 Failed!"
pause
exit -1
)
rem ==========================================================================================
rem build version2 patch
rem ==========================================================================================
@echo "start to build version2"
cd %ProjectPath%
git checkout version2
del %ProjectPath%\Assets\AndroidIl2cppPatchDemo\PrebuiltPatches\AllAndroidPatchFiles_Version2.zip
%BuildCmd% -executeMethod AndroidBuilder.BuildPatch -logFile build_version2.log
if not exist "%ProjectPath%\Assets\AndroidIl2cppPatchDemo\PrebuiltPatches\AllAndroidPatchFiles_Version2.zip" (
echo "Build Version2 Failed!"
pause
exit -1
)
rem ==========================================================================================
rem build base apk
rem ==========================================================================================
@echo "start to build base version apk"
cd %ProjectPath%
git checkout master
%BuildCmd% -executeMethod AndroidBuilder.BuildWithoutPatch -logFile build_version0.log
if not exist "%ProjectPath%\AndroidGradleProject\Test\src\main\bin\com.test.test.apk" (
echo "Build Failed! Please Rerun %ProjectPath%\AndroidGradleProject\Test\src\main\build_apk.bat to check the error."
exit -1
)
copy /Y %ProjectPath%\AndroidGradleProject\Test\src\main\bin\com.test.test.apk %ScriptPath%\Il2cppDemo_com.test.test.apk
echo "Done!"
exit 0
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/eloncode/UnityAndroidIl2cppPatchDemo.git
[email protected]:eloncode/UnityAndroidIl2cppPatchDemo.git
eloncode
UnityAndroidIl2cppPatchDemo
UnityAndroidIl2cppPatchDemo
master

搜索帮助