public override void OnAfterExportResource(ProjectBuildProcess process, ProjectResource resource) { foreach (var buildAction in buildActions) { buildAction.OnAfterExportResource(process, resource); } }
public override void IncludeInBuild(ProjectBuildProcess build, string output) { string accessPath = Path.Combine(DefinitionFile.Path, IncludePath); var accessFile = new FileInfo(accessPath); File.Copy(accessPath, Path.Combine(output, accessFile.Name), true); string sha = GetChecksum(accessPath); }
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), false); 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); }
public override void OnAfterExportResource(ProjectBuildProcess process, ProjectResource resource) { DrawBar(ProgressBarLeft, ProgressBarTop, process.Progress, ProgressBarLength, process.Project.Definition.Properties.Name); }