Get the App
SLTechnology News&Howtos  ›  Development  › 

Which BAT batches generate APK package scripts with one click

Shulou Source: shulou.com Published: 2022-06-03 09:25:06 10月03日 Update

This article mainly introduces "which BAT batches generate APK package scripts with one click". In daily operations, I believe many people have doubts about which BAT batches generate APK package scripts with one click. Xiaobian consulted all kinds of materials and sorted out simple and easy-to-use methods of operation. I hope it will be helpful to answer the questions of "which BAT batches generate APK package scripts with one click". Next, please follow the editor to study!

BAT batch one-click generation of APK package script sharing

Put this bat under the project.android of your project in the cocos2dx directory (you need to modify the variable).

ASmaker is used to implement the batch encryption algorithm of lua files under the Resources folder according to my previous rc4 algorithm.

The latest apk engineering code and cocos2dx engine code are packaged before each svn.

@ echo offrem tool path set JAVA_HOME = "C:\ Program Files\ Java\ jdk1.8.0_05" set ANT_HOME = "D:\ ProgramSoftware\ apache-ant-1.9.4" set ANDROID_HOME = "D:\ ProgramSoftware\ android sdk\ sdk" set NDK_HOME = "D:\ ProgramSoftware\ android-ndk-r9d-windows-x86_64\ android-ndk-r9d" set SVN_HOME = "C:\ Program Files\ TortoiseSVN\ bin\" rem destination path set WORK_ DIR= "D:\ engine\ projects\ XXXXX\ proj.android" rem set PRO_DIR = "D:\ engine\ projects\ XXXXX" set RESOURCES_DIR=% WORK_DIR%\..\ Resourcesset ASSETS_DIR =% WORK_DIR%\ assets rem first delete the old assetsif exist D:\ engine\ projects\ XXXXX\ proj.android\ assets (echo "deleting assets" rd / Q / s D:\ engine\ projects\ XXXXX\ proj.android\ assets) rem then delete the old Resourcesif exist D:\ Engine\ projects\ XXXXX\ Resources (echo "deleting Resources" rd / Q / s D:\ engine\ projects\ XXXXX\ Resources) rem deletes the old APKif exist D:\ engine\ projects\ XXXXX\ proj.android\ bin\ XXXXX-release.apk (echo "deleting old APK" del / Q / f D:\ engine\ projects\ XXXXX\ proj.android\ bin\ XXXXX-release.apk) rem call ant clean rem svn "C:/Program Files/TortoiseSVN/bin/TortoiseProc.exe" / command:update / Path: "D:\ engine\ projects\ XXXXX" / closeonend:1 "C:/Program Files/TortoiseSVN/bin/TortoiseProc.exe" / command:update / path: "D:\ engine" / closeonend:1 pushd D:\ engine\ projects\ XXXXX\ proj.android rem luajit Resourcesfor / r D:\ engine\ projects\ XXXXX\ Resources% I in (* .lua) do (echo% I luajit.exe-b% I% I) rem ASmaker assetsASmaker-I D:\ engine\ projects\ XXXXX\ Resources-o D:\ engine\ projects\ XXXXX\ proj.android\ assets rem ndkcall "D:\ ProgramSoftware\ android-ndk-r9d-windows-x86_64\ android-ndk-r9d\ ndk-build"-C "D:\ engine\ projects\ XXXXX\ proj.android"NDK_MODULE_PATH=D:\ engine D:\ engine\ cocos2dx\ platform\ third_party\ android\ prebuilt "rem ant releasecall" D:\ ProgramSoftware\ android sdk\ sdk\ tools\ android "update project-p" D:\ engine\ projects\ XXXXX\ proj.android "call ant release popd pause, the study on which BAT batches generate APK package scripts with one click is over. I hope you can solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!

Tags: Scripts one click generation learning code projects files more algorithms paths help utility next variables tools engines folders articles methods theory Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Linux Shulou Information Shulou Technology Docker Apple