BAT batch One-key generation APK package script sharing

Source: Internet
Author: User
Tags lua tortoisesvn

This article mainly introduced the Bat batch processing one key generation APK package script sharing, this article script applies to the Cocos2dx+lua project, needs the friend to be possible to refer to under

BAT batch One-key generation APK package script sharing

Place this bat in the COCOS2DX directory under the project.android of your project (modify variables).

Asmaker uses the LUA file batch encryption algorithm under the resources folder to refer to my previous RC4 algorithm implementation.

APK the latest engineering code and COCOS2DX engine code for each package before you pack it up.

?

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26-27--28 29---30 31--32 33 34 35 36 37 38-39 40 41 42 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60-61 @echo off REM Tool path Set java_home = "C:Program filesjavajdk1.8.0_05" Set ant_home = "D:p rogramsoftwareapache-ant-1.9.4 "Set android_home =" D:programsoftwareandroid sdksdk "Set ndk_home =" D: programsoftwareandroid-ndk-r9d-windows-x86_64android-ndk-r9d "Set svn_home =" C:Program FilesTortoiseSVNbin "  REM target path Set work_dir = "D:engineprojectsxxxxxproj.android" rem Set pro_dir = "d:engineprojectsxxxxx" Set resources_dir=% work_dir%.. Resources Set Assets_dir =%work_dir%assets       REM First delete the old ASSETS if exist D:engineprojectsxxxxxproj.androi Dassets (echo "Deleting assets" rd/q/s D:engineprojectsxxxxxproj.androidassets)   REM Delete old resources if exist D: Engineprojectsxxxxxresources (echo "Deleting resources" rd/q/s D:engineprojectsxxxxxresources)   REM Delete old apk if E Xist d:engineprojectsxxxxxproj.androidbinxxxxx-release.apk (echo "Deleting old apk" del/q/F D:engineprojectsxxxxxproj . androidbinxxxxx-release.apk)   REM call ant clean   rem svn "C:/Program files/tortoisesvn/bin/tortoiseproc.exe"/command:update/path: "D: Engineprojectsxxxxx "/closeonend:1" C:/Program Files/tortoisesvn/bin/tortoiseproc.exe "/command:update/path:" D: Engine "/closeonend:1   pushd d:engineprojectsxxxxxproj.android   REM Luajit Resources for/r D:ENGINEPROJECTSX Xxxxresources%%i in (*.lua) do (echo%%i luajit.exe-b%%i%%i)   REM asmaker assets asmaker-i d:engineprojectsxx Xxxresources-o d:engineprojectsxxxxxproj.androidassets   REM NDK call "D: Programsoftwareandroid-ndk-r9d-windows-x86_64android-ndk-r9dndk-build "-C" d:engineprojectsxxxxxproj.android "" Ndk_module_path=d:engine;d:enginecocos2dxplatformthird_partyandroidprebuilt "  REM ant release call" D: Programsoftwareandroid sdksdktoolsandroid "Update project-p" d:engineprojectsxxxxxproj.android "Call ant release   POPD   Pause

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.