BAT Batch One-click Generation apk Package script sharing _dos/bat

Source: Internet
Author: User
Tags lua tortoisesvn

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.

@echo off REM 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 Target path set WORK_DI R = "D:\engine\projects\XXXXX\proj.android" rem Set pro_dir = "D:\engine\projects\XXXXX" Set resources_dir=%work_dir%\. \resources Set assets_dir =%work_dir%\assets rem Deletes the old ASSETS if exist D:\engine\projects\XXXXX\proj.android\assets first (echo "Deleting assets" rd/q/s D:\engine\projects\XXXXX\proj.android\assets) REM Delete old resources if exist D:\en
Gine\projects\xxxxx\resources (echo "Deleting resources" rd/q/s D:\engine\projects\XXXXX\Resources) REM Delete old apk If exist D:\engine\projects\XXXXX\proj.android\bin\XXXXX-release.apk (echo "Deleting old apk" del/q/F D:\engine\pro JECTS\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\X XXXX "/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 Resources for/r D:\engine\projects\XXXXX\Resource S%%i in (*.lua) do (echo%%i luajit.exe-b%%i%%i) rem asmaker assets asmaker-i D:\engine\projects\XXXXX\Res Ources-o D:\engine\projects\XXXXX\proj.android\assets rem NDK call "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 release call" D:\ProgramSoftware\android Sdk\sdk\tools\
 Android "Update Project-p" D:\engine\projects\XXXXX\proj.android called 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.