public static void BuildHotPackageIOS() { //TODO 勾选PlayerSettings中的dynamicBatching string apkname = "fish3_ios"; string ios_project_path = Path.Combine(PathConfig.GetPath(PathConfig.APK_OUTPUT_PATH), apkname); BuildProfileInfo.SetIOSProjectSetting(); BuildPlayerOptions buildPlayerOptions = new BuildPlayerOptions(); if (IsLocalResources()) { PlayerSettings.applicationIdentifier = "com.jjhgame.fish3"; PlayerSettings.productName = "localFish"; } else { PlayerSettings.applicationIdentifier = "com.jjhgame.fish31"; PlayerSettings.productName = "fish"; } PlayerSettings.bundleVersion = appVersion; buildPlayerOptions.locationPathName = ios_project_path; buildPlayerOptions.target = BuildTarget.iOS; buildPlayerOptions.options = BuildOptions.None; ArthasBuildBundles(); BuildReport report = BuildPipeline.BuildPlayer(buildPlayerOptions); BuildSummary summary = report.summary; if (summary.result == BuildResult.Succeeded) { Debug.Log("Build succeeded: " + summary.totalSize + " bytes output_path: " + ios_project_path); } if (summary.result == BuildResult.Failed) { Debug.Log("Build failed"); } }
private static void _refreshConfig() { PathConfig refreshWindow = GetWindow <PathConfig>(); refreshWindow.Show(); }