| 1234567891011121314151617181920212223242526272829303132333435363738 |
- # -*- coding:utf-8 -*-
- __author__ = 'ALIXie'
- import os
- import logging
- import gw_data_center
- import gw_file_system
- import distutils.dir_util
- def script_init(workspace_sdk_dir, extract_dir, channelSdkInfo, new_game_channel_info, game_info):
- gw_data_center.pack_small = False
- return
- def script_first(SDK, decompileDir, channelSdkInfo, new_game_channel_info, gameInfo):
- logging.info("-----debug exec first func-----")
- game_apk = decompileDir + "/../game.apk"
- if os.path.exists(game_apk):
- gw_file_system.delete_apk_file_by_aapt(game_apk, "assets/39285EFA.dex")
- logging.info("-----debug-----")
- def script(SDK, decompileDir, channelSdkInfo, new_game_channel_info, gameInfo):
- dex = decompileDir + "../39285EFA.dex"
- asserts = os.path.join(decompileDir, "assets/39285EFA.dex")
- if os.path.exists(asserts) and os.path.exists(os.path.join(dex)):
- distutils.dir_util.copy_tree(dex, asserts)
- logging.info("-----debug-----")
- def script_last(workspace_sdk_dir, extract_dir, channel_sdk_info, new_game_channel_info, game_info):
- return
- if __name__ == "__main__":
- ""
|