Browse Source

修改29渠道脚本

zengqb 5 years ago
parent
commit
98276d9489
1 changed files with 15 additions and 0 deletions
  1. 15 0
      sdk/jm_erjiuyouaz/script/sdk_script.py

+ 15 - 0
sdk/jm_erjiuyouaz/script/sdk_script.py

@@ -16,6 +16,7 @@ def execute(game, sdk, config):
     subChannel = config['subChannel']
 
     createJmhyProperties(game, sdk, subChannel, config)
+    createEjyxProperties(game, sdk, subChannel, config)
     #ret = deleteSplash(game, sdk, subChannel, config)
     ret = generateV7RFile(game, sdk, subChannel, config)
     if ret:
@@ -44,6 +45,20 @@ def checkConfig(config):
     return True
 
 def createJmhyProperties(game, sdk, subChannel, config):
+    '''
+    创建jmhy.properties
+    '''
+    print('create jmhy.properties')
+    propValue = config['properties']
+    decompliePath = file_utils.getDecompliePath(game, sdk, subChannel, config['cache'])
+    properties = os.path.join(decompliePath, 'assets', 'jmhy.properties')
+    content = ''
+    for key in propValue:
+        content = '%s%s=%s\n' % (content, key, propValue[key])
+    file_utils.createFile(properties, content)
+    return 0
+
+def createEjyxProperties(game, sdk, subChannel, config):
     '''
     创建jmhy.properties
     '''