Example #1
0
def copyServerInfo():
    serverInfo = jsonFileUtils.getJsonDataFromFile(clientServerInfoPath)
    serverInfo["frontServerUrl"] = os.environ['FRONT_URL']
    serverInfo["imageUrl"] = os.environ['IMAGE_URL']
    serverInfo["mainServerUrlList"] = []
    serverInfo["mainServerUrlList"].append(os.environ['MAIN_SERVER_URL'])
    jsonFileUtils.saveJsonDataToFile(clientServerInfoPath , serverInfo)
    changeMain()
def updateVersionManifestFile(filePath, folder, version, isGame):
    data = jsonFileUtils.getJsonDataFromFile(filePath)
    url = getHotUpdateUrl()
    data['packageUrl'] = getHotFolderFormat(isGame).format(
        url, HOT_FOLDER_PREFIX, folder)
    data['remoteManifestUrl'] = getProjectManifestFormat(isGame).format(
        url, HOT_FOLDER_PREFIX, folder)
    data['remoteVersionUrl'] = getVersionManifestFormat(isGame).format(
        url, HOT_FOLDER_PREFIX, folder)
    data['version'] = version
    jsonFileUtils.saveJsonDataToFile(filePath, data)
def updateBuilderFileStartScene():
    data = jsonFileUtils.getJsonDataFromFile(COCOS_BUILDER_PATH)
    data['startScene'] = START_SCENE_UUID
    jsonFileUtils.saveJsonDataToFile(COCOS_BUILDER_PATH , data)
Example #4
0
def copyH5CustomerConfig():
    customerConfigPath = 'assets/CustomMade/customer_config.json'
    config = {}
    for customer in afterBuildUtils.getAllCustomers():
        config[customer] = customerConfigUtils.getConfigData(customer)
    jsonFileUtils.saveJsonDataToFile(customerConfigPath, config)
Example #5
0
def copyCustomerConfigFile(customerMark):
    customerConfigPath = 'assets/CustomMade/customer_config.json'
    customerConfig = customerConfigUtils.getCustomerConfig(customerMark)
    jsonFileUtils.saveJsonDataToFile(customerConfigPath, customerConfig)