public void Export(BuildPipeline pipeline, string path) { Directory.CreateDirectory(path); var buildProcess = new ProjectBuildProcess(pipeline, this, path); buildProcess.PerformBuild(); }
public void ExportFoldersToDirectory(BuildPipeline pipeline, string path) { var directoryInfo = new DirectoryInfo(path); directoryInfo.Create(); var buildProcess = new ProjectBuildProcess(pipeline, this, directoryInfo.FullName); string folderPath = Path.Combine(directoryInfo.FullName, $"{Definition.Properties.Name}"); var archive = new FileSystemArchive(new DirectoryInfo(folderPath)); buildProcess.PerformBuild(archive.RootDirectory); }
public void ExportZippedToDirectory(BuildPipeline pipeline, string path) { var directoryInfo = new DirectoryInfo(path); directoryInfo.Create(); var buildProcess = new ProjectBuildProcess(pipeline, this, directoryInfo.FullName); string bpkgPath = Path.Combine(directoryInfo.FullName, $"{Definition.Properties.Name}.bpkg"); using var fileStream = new FileStream(bpkgPath, FileMode.Create, FileAccess.Write); using var zipArchive = new ZipArchive(fileStream, ZipArchiveMode.Create, false); var archive = new PackedArchive(zipArchive); buildProcess.PerformBuild(archive.RootDirectory); }