public static void Generate(IProgressMonitor monitor, BuildResult result, MonobjcProject project, ConfigurationSelector configuration, String outputDirectory, bool native) { // Infer application name from configuration String applicationName = project.GetApplicationName(configuration); LoggingService.LogInfo("Generate => applicationName='" + applicationName + "'"); LoggingService.LogInfo("Generate => outputDirectory='" + outputDirectory + "'"); // Create the bundle maker BundleMaker maker = new BundleMaker(applicationName, outputDirectory); // Compile the XIB files BuildHelper.CompileXIBFiles(monitor, project, maker, result); if (result.ErrorCount > 0) { monitor.ReportError(GettextCatalog.GetString("Failed to compile XIB files"), null); return; } // Copy the output and dependencies BuildHelper.CopyOutputFiles(monitor, project, configuration, maker); // Copy the content files BuildHelper.CopyContentFiles(monitor, project, configuration, maker); // Create the Info.plist BuildHelper.CreateInfoPList(monitor, project, configuration, maker); if (native) { GenerateNative(monitor, result, project, configuration, maker); } else { // Copy the Monobjc assemblies BuildHelper.CopyMonobjcAssemblies(monitor, project, configuration, maker); // Write the native runtime monitor.BeginTask(GettextCatalog.GetString("Copying native launcher..."), 0); maker.WriteRuntime(project.TargetOSVersion); monitor.EndTask(); } BuildHelper.CombineArtwork(monitor, project, maker); BuildHelper.EncryptContentFiles(monitor, project, configuration, maker); // Perform the signing BuildHelper.SignBundle(monitor, project, maker); BuildHelper.SignNativeBinaries(monitor, project, maker); }
public static void Archive(IProgressMonitor monitor, BuildResult result, MonobjcProject project, ConfigurationSelector configuration, String outputDirectory) { monitor.BeginTask(GettextCatalog.GetString("Archiving..."), 0); // Infer application name from configuration String applicationName = project.GetApplicationName(configuration); // Create the bundle maker BundleMaker maker = new BundleMaker(applicationName, outputDirectory); // Archive the application BuildHelper.ArchiveBundle(monitor, project, maker); monitor.EndTask(); }