Skip to content

Commit de464ef

Browse files
committed
add build cmd and ignore
1 parent 495f64b commit de464ef

2 files changed

Lines changed: 35 additions & 0 deletions

File tree

.gitignore

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
.gitignore
2+
AndroidGradleProject*
3+
Library/
4+
Temp/
5+
UnityVS.*
6+
.vs
7+
*.csproj
8+
*.sln
9+
obj/
10+
AllAndroidPatchFiles*
11+
UnityPackageManager
12+
*.apk
13+
AndroidKeystore

build_demo_apk.cmd

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
rem global
2+
SET UnityBin="C:\Program Files\Unity\Editor\Unity.exe"
3+
4+
rem prepare build cmd
5+
SET ScriptPath=%~dp0
6+
SET ScriptPath=%ScriptPath:~0,-1%
7+
8+
rem ==========================================================================================
9+
rem build base apk
10+
rem ==========================================================================================
11+
@echo "start to build base version apk"
12+
SET ProjectPath=%ScriptPath%
13+
SET BuildCmd=%UnityBin% -quit -buildTarget android -batchmode -projectPath "%ProjectPath%"
14+
15+
if not exist "%ProjectPath%\AndroidGradleProject\Test\src\main\bin\com.test.test.apk" (
16+
echo "Build Version1 Failed! Please Rerun %ProjectPath%\AndroidGradleProject\Test\src\main\build_apk.bat to check the error."
17+
exit -1
18+
)
19+
20+
copy /Y %ProjectPath%\AndroidGradleProject\Test\src\main\bin\com.test.test.apk %ScriptPath%\Il2cppDemo_com.test.test.apk
21+
echo "Done!"
22+
exit 0

0 commit comments

Comments
 (0)