public PackageInfo ToPackageInfo() { PackageInfo packageInfo = new PackageInfo(); packageInfo.unityVersion = this.Info.UnityVersion; packageInfo.name = this.Info.Module; packageInfo.organisation = this.Info.Organisation; packageInfo.version = this.Info.Version; packageInfo.type = this.Info.Type; packageInfo.basePath = this.BasePath; packageInfo.description = this.Info.Description; packageInfo.loaded = this.Loaded; packageInfo.files = this.Artifacts.ToDictionary((IvyArtifact p) => p.Filename, (IvyArtifact e) => new PackageFileData((PackageFileType)e.Type, (!(e.Url != null)) ? string.Empty : e.Url.ToString(), e.Guid ?? string.Empty)); PackageInfo packageInfo2 = packageInfo; IvyArtifact artifact = this.GetArtifact(ArtifactType.ReleaseNotes); if (artifact != null && this.BasePath != null) { string path = Path.Combine(this.BasePath, artifact.Filename); if (File.Exists(path)) { packageInfo2.releaseNotes = File.ReadAllText(path); } } return(packageInfo2); }
public BinaryVerifier(Uri localPath, IvyArtifact artifact) { this.localPath = localPath; this.artifact = artifact; base.ProgressMessage = "Verifying"; }