Browse Source

修改天宇游打包脚本5

zengqb 4 years ago
parent
commit
804db1c3a9
1 changed files with 8 additions and 10 deletions
  1. 8 10
      sdk/jm_tianyuyou/script/sdk_script.py

+ 8 - 10
sdk/jm_tianyuyou/script/sdk_script.py

@@ -177,30 +177,28 @@ def addGameLauncherActivity(manifest, screenOrientation, activity):
     tree.write(manifest, encoding)
 
 def addAKJson(game, sdk, subChannel, config):
-        '''
-        添加config.json
-        '''
+
+        print('add addAKJson  ...')
+
         if 'akJson' not in config:
             return 0
 
-        print('add config.json...')
         decompliePath = file_utils.getDecompliePath(game, sdk, subChannel, config['cache'])
         configJson = os.path.join(decompliePath, 'assets', 'tygrm_ak.json')
-        jsonText = json.dumps(config['configData'], ensure_ascii=False)
+        jsonText = json.dumps(config['akJson'], ensure_ascii=False)
         file_utils.createFile(configJson, jsonText)
         return 0
 
 
 def addPJson(game, sdk, subChannel, config):
-    '''
-    添加config.json
-    '''
+
+    print('add addPJson  ...')
+
     if 'pJson' not in config:
         return 0
 
-    print('add config.json...')
     decompliePath = file_utils.getDecompliePath(game, sdk, subChannel, config['cache'])
     configJson = os.path.join(decompliePath, 'assets', 'tygrm_config_p.json')
-    jsonText = json.dumps(config['configData'], ensure_ascii=False)
+    jsonText = json.dumps(config['pJson'], ensure_ascii=False)
     file_utils.createFile(configJson, jsonText)
     return 0