forked from noodle1983/UnityAndroidIl2cppPatchDemo
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild_demo_apk.cmd
More file actions
24 lines (20 loc) · 979 Bytes
/
build_demo_apk.cmd
File metadata and controls
24 lines (20 loc) · 979 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
rem global
SET UnityBin="C:\Program Files\Unity\Editor\Unity.exe"
rem prepare build cmd
SET ScriptPath=%~dp0
SET ScriptPath=%ScriptPath:~0,-1%
rem ==========================================================================================
rem build base apk
rem ==========================================================================================
@echo "start to build base version apk"
SET ProjectPath=%ScriptPath%
SET BuildCmd=%UnityBin% -quit -buildTarget android -batchmode -projectPath "%ProjectPath%"
cd %ProjectPath%
%BuildCmd% -executeMethod AndroidBuilder.BuildWithoutPatch
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