-
Notifications
You must be signed in to change notification settings - Fork 112
Expand file tree
/
Copy pathInstallerMetadata.cs
More file actions
84 lines (69 loc) · 2.96 KB
/
InstallerMetadata.cs
File metadata and controls
84 lines (69 loc) · 2.96 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license.
namespace Microsoft.WingetCreateCore.Models
{
using System.Collections.Generic;
using Microsoft.WingetCreateCore.Models.Installer;
/// <summary>
/// Helper class for storing an installer's metadata information.
/// </summary>
public class InstallerMetadata
{
/// <summary>
/// Gets or sets the installer url.
/// </summary>
public string InstallerUrl { get; set; }
/// <summary>
/// Gets or sets the path to the package to extract metadata from.
/// </summary>
public string PackageFile { get; set; }
/// <summary>
/// Gets or sets the new installers for updating the manifest.
/// </summary>
public List<Installer.Installer> NewInstallers { get; set; } = new List<Installer.Installer>();
/// <summary>
/// Gets or sets the architecture detected from the URL string.
/// </summary>
public Architecture? UrlArchitecture { get; set; }
/// <summary>
/// Gets or sets the architecture detected from the binary.
/// </summary>
public Architecture? BinaryArchitecture { get; set; }
/// <summary>
/// Gets or sets the architecture specified as an override.
/// </summary>
public Architecture? OverrideArchitecture { get; set; }
/// <summary>
/// Gets or sets the scope specified as an override.
/// </summary>
public Scope? OverrideScope { get; set; }
/// <summary>
/// Gets or sets the display name specified as a CLI arg.
/// </summary>
public string DisplayName { get; set; }
/// <summary>
/// Gets or sets the display version specified as a CLI arg or an installer url argument.
/// </summary>
public string DisplayVersion { get; set; }
/// <summary>
/// Gets or sets a value indicating whether the installer came from a zip.
/// </summary>
public bool IsZipFile { get; set; } = false;
/// <summary>
/// Gets or sets the relative paths contained inside a zip.
/// </summary>
public List<string> RelativeFilePaths { get; set; }
/// <summary>
/// Gets or sets the nested installer files coming from previous installer.
/// </summary>
public List<NestedInstallerFile> NestedInstallerFiles { get; set; }
/// <summary>
/// Gets or sets a value indicating whether the nested installers in a zip have multiple architectures.
/// </summary>
public bool MultipleNestedInstallerArchitectures { get; set; }
/// <summary>
/// Gets or sets the directory path of the extracted files from the target zip package file.
/// </summary>
public string ExtractedDirectory { get; set; }
}
}