script.py 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. # -*- coding:utf-8 -*-
  2. __author__ = 'ALIXie'
  3. import os
  4. import logging
  5. import gw_data_center
  6. import gw_file_system
  7. import distutils.dir_util
  8. def script_init(workspace_sdk_dir, extract_dir, channelSdkInfo, new_game_channel_info, game_info):
  9. gw_data_center.pack_small = False
  10. return
  11. def script_first(SDK, decompileDir, channelSdkInfo, new_game_channel_info, gameInfo):
  12. logging.info("-----debug exec first func-----")
  13. game_apk = decompileDir + "/../game.apk"
  14. if os.path.exists(game_apk):
  15. gw_file_system.delete_apk_file_by_aapt(game_apk, "assets/39285EFA.dex")
  16. logging.info("-----debug-----")
  17. def script(SDK, decompileDir, channelSdkInfo, new_game_channel_info, gameInfo):
  18. dex = decompileDir + "../39285EFA.dex"
  19. asserts = os.path.join(decompileDir, "assets/39285EFA.dex")
  20. if os.path.exists(asserts) and os.path.exists(os.path.join(dex)):
  21. distutils.dir_util.copy_tree(dex, asserts)
  22. logging.info("-----debug-----")
  23. def script_last(workspace_sdk_dir, extract_dir, channel_sdk_info, new_game_channel_info, game_info):
  24. return
  25. if __name__ == "__main__":
  26. ""