Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Which BAT batches generate APK package scripts with one click

2025-01-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/03 Report--

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!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report