Beispiel #1
0
def buildHallHot():
    os.system("echo start buildHallHot")
    beforeBuildUtils.deleteWorkSpaceOtherCustomerAssets(customerMark)
    beforeBuildUtils.deleteAssetsForHotHall()
    cocosBuildUtils.updateBuilderFileStartScene()
    cocosBuildUtils.buildNative(workSpace, customerMark)
    afterBuildUtils.dealHallHotAssets(customerMark)
Beispiel #2
0
def buildApk():
    os.system("echo start buildApk")
    beforeBuildUtils.deleteWorkSpaceOtherCustomerAssets(customerMark)
    beforeBuildUtils.deleteAssetsForPackage()
    cocosBuildUtils.updateBuilderFileStartScene()
    cocosBuildUtils.buildNative(workSpace, customerMark)
    afterBuildUtils.dealAndroidProject(customerMark)
    afterBuildUtils.dealNativeAssets(customerMark)
    cocosBuildUtils.compileNativeAndroid(workSpace, customerMark)
def buildHallHotTest():
    os.system("echo " + 'start buildHallHot')
    beforeBuildUtils.deleteWorkSpaceOtherCustomerAssets(customerMark)
    beforeBuildUtils.deleteAssetsForHotHall()
    cocosBuildUtils.updateBuilderFileStartScene()
    cmd = deleteUnuseAssetsPath + " " + workSpace + " " + customerMark
    os.system(cmd)
    beforeBuildUtils.dealHallHotAssets(customerMark)
    cocosBuildUtils.buildNative(workSpace, customerMark)
    afterBuildUtils.dealHallHotAssets(customerMark)
def buildiOS():
    os.system("echo " + 'start buildiOS')
    beforeBuildUtils.deleteWorkSpaceOtherCustomerAssets(customerMark)
    beforeBuildUtils.deleteAssetsForPackage()
    beforeBuildUtils.deleteNativeApkAssets(customerMark)
    cocosBuildUtils.updateBuilderFileStartScene()
    os.system(deleteUnuseAssetsPath + " " + workSpace + " " + customerMark)
    beforeBuildUtils.dealNativeAssets(customerMark)
    cocosBuildUtils.buildNative(workSpace, customerMark)
    afterBuildUtils.dealNativeAssets(customerMark)
    iosCopyTools.run()
    iosPackPrepare.run(customerMark)
def buildiOSWithHall():
    os.system("echo " + 'start buildiOSWithHall')
    beforeBuildUtils.deleteWorkSpaceOtherCustomerAssets(customerMark)
    beforeBuildUtils.deleteAssetsForHotHall()
    cocosBuildUtils.updateBuilderFileStartScene()
    os.system(deleteUnuseAssetsPath + " " + workSpace + " " + customerMark)
    beforeBuildUtils.dealNativeAssets(customerMark)
    cocosBuildUtils.buildNative(workSpace, customerMark)
    afterBuildUtils.dealNativeAssets(customerMark)
    with open(afterBuildUtils.NATIVE_RES_PATH + "/packWithHall", "w+"):
        pass
    iosCopyTools.run()
    iosPackPrepare.run(customerMark)
def buildApk():
    os.system("echo " + 'start buildApk')
    beforeBuildUtils.deleteWorkSpaceOtherCustomerAssets(customerMark)
    beforeBuildUtils.deleteAssetsForPackage()
    beforeBuildUtils.deleteNativeApkAssets(customerMark)
    cocosBuildUtils.updateBuilderFileStartScene()
    os.system(deleteUnuseAssetsPath + " " + workSpace + " " + customerMark)
    beforeBuildUtils.dealNativeAssets(customerMark)
    cocosBuildUtils.buildNative(workSpace, customerMark)
    afterBuildUtils.dealAndroidProject(customerMark)
    afterBuildUtils.dealNativeAssets(customerMark)
    cocosBuildUtils.compileNativeAndroid(workSpace, customerMark)
    apkCopy.run(
        "F:/http_server/apk/sepreate_" + os.environ["PACKAGE_BRANCH"].lower(),
        customerMark)
def buildApkWithHall():
    os.system("echo " + 'start buildApkWithHall')
    beforeBuildUtils.deleteWorkSpaceOtherCustomerAssets(customerMark)
    beforeBuildUtils.deleteAssetsForHotHall()
    cocosBuildUtils.updateBuilderFileStartScene()
    os.system(deleteUnuseAssetsPath + " " + workSpace + " " + customerMark)
    beforeBuildUtils.dealNativeAssets(customerMark)
    cocosBuildUtils.buildNative(workSpace, customerMark)
    afterBuildUtils.dealAndroidProject(customerMark)
    afterBuildUtils.dealNativeAssets(customerMark)
    with open(afterBuildUtils.NATIVE_RES_PATH + "/packWithHall", "w+"):
        pass
    cocosBuildUtils.compileNativeAndroid(workSpace, customerMark)
    apkCopy.run(
        "F:/http_server/apk/sepreate_" + os.environ["PACKAGE_BRANCH"].lower(),
        customerMark)