|
@@ -135,7 +135,7 @@ def pack_v1(game, sdk, sub_channel, config):
|
|
if ret:
|
|
if ret:
|
|
return ret
|
|
return ret
|
|
# 乐变sdk的特殊处理
|
|
# 乐变sdk的特殊处理
|
|
- ret = game_utils.sdkLebianChange(game, sdk, config)
|
|
|
|
|
|
+ ret = game_utils.handle_lebian_sdk_manifest(game, sdk, config)
|
|
if ret:
|
|
if ret:
|
|
return ret
|
|
return ret
|
|
# 游戏脚本处理
|
|
# 游戏脚本处理
|
|
@@ -285,9 +285,12 @@ def pack_v2(game, sdk, sub_channel, config):
|
|
ret = pack_jar(game, sdk, sub_channel, config)
|
|
ret = pack_jar(game, sdk, sub_channel, config)
|
|
if ret:
|
|
if ret:
|
|
return ret
|
|
return ret
|
|
-
|
|
|
|
# sdk脚本处理
|
|
# sdk脚本处理
|
|
ret = do_sdk_post_script(game, sdk, config)
|
|
ret = do_sdk_post_script(game, sdk, config)
|
|
|
|
+ if ret:
|
|
|
|
+ return ret
|
|
|
|
+ # 乐变sdk的特殊处理
|
|
|
|
+ ret = game_utils.handle_lebian_sdk_manifest(game, sdk, config)
|
|
if ret:
|
|
if ret:
|
|
return ret
|
|
return ret
|
|
# 游戏脚本处理
|
|
# 游戏脚本处理
|
|
@@ -515,6 +518,11 @@ def remove_v2_old_res(game, sdk, sub_channel, config):
|
|
print('remove v2 sdk old res...')
|
|
print('remove v2 sdk old res...')
|
|
decompile_path = file_utils.get_decompile_path(game, sdk, sub_channel, config['cache'])
|
|
decompile_path = file_utils.get_decompile_path(game, sdk, sub_channel, config['cache'])
|
|
res_path = os.path.join(decompile_path, 'res')
|
|
res_path = os.path.join(decompile_path, 'res')
|
|
|
|
+ public_xml = os.path.join(res_path, 'values', 'public.xml')
|
|
|
|
+ # 移除public.xml
|
|
|
|
+ if os.path.exists(public_xml):
|
|
|
|
+ print('remove public.xml')
|
|
|
|
+ os.remove(public_xml)
|
|
sub_folders = os.listdir(res_path)
|
|
sub_folders = os.listdir(res_path)
|
|
for folder in sub_folders:
|
|
for folder in sub_folders:
|
|
sub_folder_path = os.path.join(res_path, folder)
|
|
sub_folder_path = os.path.join(res_path, folder)
|
|
@@ -536,6 +544,7 @@ def remove_same_values_res(game, sdk, sub_channel, config):
|
|
"""
|
|
"""
|
|
# 读取sdk的资源
|
|
# 读取sdk的资源
|
|
print('remove same res...')
|
|
print('remove same res...')
|
|
|
|
+ decompile_path = file_utils.get_decompile_path(game, sdk, sub_channel, config['cache'])
|
|
sdk_path = file_utils.get_full_sdk_path(sdk)
|
|
sdk_path = file_utils.get_full_sdk_path(sdk)
|
|
sdk_res_path = os.path.join(sdk_path, 'res')
|
|
sdk_res_path = os.path.join(sdk_path, 'res')
|
|
print('sdk res path: %s' % sdk_res_path)
|
|
print('sdk res path: %s' % sdk_res_path)
|
|
@@ -556,7 +565,6 @@ def remove_same_values_res(game, sdk, sub_channel, config):
|
|
return 0
|
|
return 0
|
|
|
|
|
|
# 移除相同的资源
|
|
# 移除相同的资源
|
|
- decompile_path = file_utils.get_decompile_path(game, sdk, sub_channel, config['cache'])
|
|
|
|
resPath = os.path.join(decompile_path, 'res')
|
|
resPath = os.path.join(decompile_path, 'res')
|
|
for path in os.listdir(resPath):
|
|
for path in os.listdir(resPath):
|
|
if not path.startswith('values'):
|
|
if not path.startswith('values'):
|