Пример #1
0
    def PreDownloadSigniOS(self, isHd):
        savepath = self.GetPathXcodePrifile(isHd)
        if os.path.exists(savepath):
            return

        downloadDir = "C:\\Users\\moon\\Downloads"
        self.DeleteAllDownloadFile(downloadDir, ".mobileprovision")

        self.DownloadAppleDeveloper(isHd)
        appsign = self.GetDownloadFile(downloadDir, ".mobileprovision")
        savepath = self.GetPathXcodePrifile(isHd)
        FileUtil.CopyFile(appsign, savepath)
Пример #2
0
    def __init__(self):

        dir = self.DIR_private_key
        dir = os.path.normpath(dir)
        if os.path.exists(dir) == False:
            os.mkdir(dir)

        filename = "AuthKey_" + self.API_KEY_ID + ".p8"

        dir = os.getcwd()
        src = dir + "/AppStore/" + filename
        src = os.path.normpath(src)

        dst = self.DIR_private_key + "/" + filename
        dst = os.path.normpath(dst)
        FileUtil.CopyFile(src, dst)
Пример #3
0
    def MakeConfigAudio(self):

        # dir1 = mainResource.GetRootUnityAssetsResource()+"/App/Audio"
        # filepathJson = mainResource.GetRootUnityAssetsResource() + "/ConfigData/Audio/" + "ConfigAudioApp.json"
        # self.ScanAudioFile(dir1, filepathJson)

        # dir2 = mainResource.GetRootUnityAssetsResource()+"/AppCommon/Audio"
        # filepathJson = mainResource.GetRootUnityAssetsResource() + "/ConfigData/Audio/" + "ConfigAudioAppCommon.json"
        # self.ScanAudioFile(dir2, filepathJson)

        # # CloudRes
        dircommon = mainResource.GetRootUnityAssetsResource(
        ) + "/GameRes/CloudRes"
        filepathJson = dircommon + "/AudioCloudRes.json"
        self.ScanAudioFile(dircommon, filepathJson)
        filedst = mainResource.GetResourceDataApp(
        ) + "/GameRes/CloudRes/AudioCloudRes.json"
        FileUtil.CopyFile(filepathJson, filedst)
Пример #4
0
    def MakeConfigImage(self):
        dir1 = mainResource.GetRootUnityAssetsResource() + "/App/UI"
        filepathJson = mainResource.GetRootUnityAssetsResource(
        ) + "/ConfigData/Image/" + "ImageResApp.json"
        self.ScanImageFile(dir1, filepathJson)

        dir2 = mainResource.GetRootUnityAssetsResource() + "/AppCommon/UI"
        filepathJson = mainResource.GetRootUnityAssetsResource(
        ) + "/ConfigData/Image/" + "ImageResAppCommon.json"
        self.ScanImageFile(dir2, filepathJson)

        dircommon = mainResource.GetRootUnityAssetsResource() + "/Common/UI"
        filepathJson = dircommon + "/ImageRes.json"
        self.ScanImageFile(dircommon, filepathJson)

        # # CloudRes
        dircommon = mainResource.GetRootUnityAssetsResource(
        ) + "/GameRes/CloudRes"
        filepathJson = dircommon + "/ImageResCloudRes.json"
        self.ScanImageFile(dircommon, filepathJson)
        filedst = mainResource.GetResourceDataApp(
        ) + "/GameRes/CloudRes/ImageResCloudRes.json"
        FileUtil.CopyFile(filepathJson, filedst)
Пример #5
0
    def CreateProfile2(self, package, appid):
        # package = mainap
        # devices = api.list_devices(limit=1)
        # print(devices)

        # result = api.register_device('name','udid')
        # print(result)

        # result = api.register_certificate(csr_path='/Users/last/Desktop/CertificateSigningRequest.certSigningRequest')
        # print(result)

        # result = api.delete_certificate('N9P79WJTHK')
        # print(result)

        # result = self.api.list_certificates()
        # # print(result)
        # self.SaveData2Json(result,"Certificate.json")

        # result = api.register_bundle_id(bundle_id='com.hepburn.app',team_id='6DD349HLLU',name='hepburn')
        # print(result)

        # result = api.list_bundle_ids()
        # # print(result)
        # self.SaveData2Json(result,"Bundle_id.json")

        # result = api.list_bundle_ids(sort='-identifier com.moonma.poem')
        # "name": "com-moonma-poem",

        # result = api.get_bundle_id('com.moonma.poem')
        # print(result)

        # result = api.get_bundle_id_profiles('N49MX9AWAX')
        # print(result)

        # result = api.delete_bundle_id('N49MX9AWAX')
        # print(result)

        # result = api.create_app_version(app_id='123456', version_string='1.2.3', platform='IOS',
        #                                 release_type='AFTER_APPROVAL', copyright='2020 My Company', build_id='123',
        #                                 earliest_release_date=None, uses_idfa=False)
        # print(result)

        # result = api.get_app_version_localizations('a1a2a3a4-a1a2-a1a2-a1a2-a1a2a3a4a5a6')
        # print(result)

        bundleid = self.GetBundleIdByPackage(package)
        print("bundleid=", bundleid)
        #   # type IOS_APP_DEVELOPMENT, IOS_APP_STORE, IOS_APP_ADHOC
        result = self.api.create_profile(name=package,
                                         bundle_id=bundleid,
                                         certificate_id=self.CertificateID,
                                         type='IOS_APP_STORE')

        result = self.api.get_bundle_id_profiles(bundleid)
        print(result)
        # self.SaveData2Json(result,"create_profile.json")
        filename = package + ".mobileprovision"
        src = self.DIR_HOME + "/" + filename
        src = os.path.normpath(src)
        dst = mainResource.GetResourceDataApp() + "/" + filename
        dst = os.path.normpath(dst)
        FileUtil.CopyFile(src, dst)