File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments