|
@@ -127,6 +127,11 @@ def pack(game, sdk, config):
|
|
|
if ret:
|
|
|
return ret
|
|
|
|
|
|
+ # 游戏独立处理
|
|
|
+ ret = doGameScript(game, sdk, config)
|
|
|
+ if ret:
|
|
|
+ return ret
|
|
|
+
|
|
|
#格式化Xml
|
|
|
# ret = formatXml(game, sdk, subChannel, config)
|
|
|
# if ret:
|
|
@@ -725,6 +730,28 @@ def doGamePostScript(game, sdk, config):
|
|
|
|
|
|
return ret
|
|
|
|
|
|
+
|
|
|
+def doGameScript(game, sdk, config):
|
|
|
+ '''
|
|
|
+ 执行游戏相关特殊处理脚本
|
|
|
+ '''
|
|
|
+ channelPath = file_utils.getFullPath('game_script', game)
|
|
|
+ targetScript = os.path.join(channelPath, 'game_script.py')
|
|
|
+ print(targetScript + "--------")
|
|
|
+ if not os.path.exists(targetScript):
|
|
|
+ print('game_script no exists')
|
|
|
+ return 0
|
|
|
+
|
|
|
+ print('doGameScript...')
|
|
|
+ sys.path.append(channelPath)
|
|
|
+
|
|
|
+ module = importlib.import_module('game_script')
|
|
|
+ ret = module.execute(game, sdk, config)
|
|
|
+
|
|
|
+ sys.path.remove(channelPath)
|
|
|
+
|
|
|
+ return ret
|
|
|
+
|
|
|
def addLogSdk(game, sdk, subChannel, config, logSdk):
|
|
|
# 拷贝jniLibs
|
|
|
decompliePath = file_utils.getDecompliePath(game, sdk, subChannel, config['cache'])
|