def MakeGooglePlayObbFile(self, isHD):
        print("MakeGooglePlayObbFile start")
        dir = mainResource.GameResApp()
        print("MakeGooglePlayObbFile GameRes=", dir)
        self.DeleAllObbFile(FileUtil.GetLastDirofDir(dir))
        package = mainAppInfo.GetAppPackage(Source.ANDROID, isHD)
        versioncode = mainAppInfo.GetAppVersionCode(Source.ANDROID, isHD)
        dir = FileUtil.GetLastDirofDir(dir)
        print("MakeGooglePlayObbFile file_zip dir =", dir)
        file_zip = dir + "/main." + str(versioncode) + "." + package + ".obb"
        file_zip = dir + "/GameRes.zip"
        # main.13.com.itant.wuji.obb
        print("MakeGooglePlayObbFile obb file=", file_zip)
        # if os.path.exists(file_zip):
        #     os.remove(file_zip)

        # os.system("git config --global credential.helper store")
        # jobb -d D:\contents\ main\assets\ -o D:\obb\output.obb -pn com.example.app -pv 25
        # 压缩目录
        ZipUtil.zipDir(dir, file_zip)

        # delete
        dir = mainResource.GetRootDirAndroidAsset() + "/GameRes"
        if os.path.exists(dir):
            shutil.rmtree(dir)

        print("MakeGooglePlayObbFile end")
 def CopyConfigDataToAndroid(self):
     dir1 = mainResource.GetConfigDataDir()
     dir2 = mainResource.GetRootDirAndroidAsset() + "/ConfigData"
     flag = os.path.exists(dir2)
     if flag:
         shutil.rmtree(dir2)
     # print(CopyConfigDataToAndroid:dir1=",dir1," dir2=",dir2
     shutil.copytree(dir1, dir2)
 def LoadJsonAndroidAssetConfigCommon(self):
     jsonfile = mainResource.GetRootDirAndroidAsset(
     ) + "/ConfigData/config/config_common.json"
     with open(jsonfile, 'rb') as json_file:
         data = json.load(json_file)
         return data
 def DeleteAndroidAssetGameRes(self):
     # delete
     dir = mainResource.GetRootDirAndroidAsset() + "/GameRes"
     if os.path.exists(dir):
         shutil.rmtree(dir)