安卓打包 进阶 配置文件解释

来源:互联网 发布:unity3d教程视频哪个好 编辑:程序博客网 时间:2024/06/15 01:22

ant.properties      

ant 配置文件包含的是签名文件的信息  keystore的文件路径、密码、别名等信息               

(新建的项目默认没有签名,这些信息为空)          一些集成的编译,打包时会读取这些签名信息


# You can also use it define how the release builds are signed by declaring

# the following properties:
#  'key.store' for the location of your keystore and
#  'key.alias' for the name of the key to use.
# The password will be asked during the build when you use the 'release' target.


key.store=E:\\zhang\\qipai_keystore_alias-lingxiu,password-lingxiu301.jks
key.store.password=lingxiu301
key.alias=lingxiu

key.alias.password=lingxiu301




build-cfg.json       

配置文件包含的是类似于文件搜寻路径的 文件         在引入该路径下不用写文件夹名

// 新项目

{
    "ndk_module_path" :[
        "../cocos2d",
        "../cocos2d/cocos",
        "../cocos2d/external"
    ],
    "copy_resources": [
        {
            "from": "../Resources",
            "to": ""
        }
    ]
}


// 对比老项目(成熟项目)

{
    "ndk_module_path" :[
        "../cocos2d",
        "../cocos2d/cocos",
        "../cocos2d/external"
    ],
    "copy_resources": [
        {
            "from": "../Resources/ClientHN_THJ",
            "to": ""
        }
    ]
}



local.properties   


android sdk 路径  配置

sdk.dir=E:\\zhanghow_work\\window_cocos\\Android-SDK



project.properties


项目属性     含有target     安卓 platform  版本  


target=android-20            

android.library.reference.1=../cocos2d/cocos/platform/android/java


0 0
原创粉丝点击