private static PackageVersionUpload BuildPackageVersionUpload(PackageUploadRequestBody pkgHeader, string zipPath ) { return new PackageVersionUpload( pkgHeader.name, pkgHeader.version, pkgHeader.description, pkgHeader.keywords, pkgHeader.contents, "dynamo", pkgHeader.engine_version, pkgHeader.engine_metadata, pkgHeader.group, zipPath, pkgHeader.dependencies); }
public PackageUploadHandle(PackageUploadRequestBody header) { this.Header = header; }
private static void WritePackageHeader(PackageUploadRequestBody pkgHeader, DirectoryInfo rootDir) { // build the package header json, which will be stored with the pkg var jsSer = new JsonSerializer(); var pkgHeaderStr = jsSer.Serialize(pkgHeader); // write the pkg header to the root directory of the pkg var headerPath = Path.Combine(rootDir.FullName, "pkg.json"); if (File.Exists(headerPath)) File.Delete(headerPath); File.WriteAllText(headerPath, pkgHeaderStr); }
public Package(string directory, string name, string versionName, string license) { RootDirectory = directory; Name = name; License = license; VersionName = versionName; LoadedTypes = new ObservableCollection<Type>(); LoadedAssemblies = new ObservableCollection<PackageAssembly>(); Dependencies = new ObservableCollection<PackageDependency>(); LoadedCustomNodes = new ObservableCollection<CustomNodeInfo>(); AdditionalFiles = new ObservableCollection<PackageFileInfo>(); Header = PackageUploadBuilder.NewRequestBody(this); }
public PackageUpload(PackageUploadRequestBody requestBody, string zipFile ) { this.ZipFile = zipFile; this.RequestBody = requestBody; }
public PackageUpload(PackageUploadRequestBody requestBody, IEnumerable<string> files) { this.Files = files; this.RequestBody = requestBody; }
public PackageUpload(PackageUploadRequestBody requestBody, string zipFile) { this.ZipFile = zipFile; this.RequestBody = requestBody; }
public PackageUpload(PackageUploadRequestBody requestBody, IEnumerable <string> files) { this.Files = files; this.RequestBody = requestBody; }