Skip to content

Commit

Permalink
Add missing manifest fields
Browse files Browse the repository at this point in the history
  • Loading branch information
Akinwale Alagbe committed Oct 11, 2023
1 parent 21de160 commit 5d8b88e
Show file tree
Hide file tree
Showing 5 changed files with 148 additions and 0 deletions.
25 changes: 25 additions & 0 deletions src/WinGetUtilInterop/Manifest/V1/InstallerInstallationMetadata.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
// -----------------------------------------------------------------------
// <copyright file="InstallerInstallationMetadata.cs" company="Microsoft Corporation">
// Copyright (c) Microsoft Corporation. All rights reserved.
// </copyright>
// -----------------------------------------------------------------------

namespace Microsoft.WinGetUtil.Models.V1
{
using System;
using System.Collections.Generic;
using System.Text;

public class InstallerInstallationMetadata
{
/// <summary>
/// Gets or sets the default install location.
/// </summary>
public string DefaultInstallLocation { get; set; }

/// <summary>
/// Gets or sets the manifest installer files.
/// </summary>
public List<ManifestInstallerFile> Files { get; set; }
}
}
19 changes: 19 additions & 0 deletions src/WinGetUtilInterop/Manifest/V1/InstallerNestedInstallerFile.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
using System;
using System.Collections.Generic;
using System.Text;

namespace Microsoft.WinGetUtil.Models.V1
{
public class InstallerNestedInstallerFile
{
/// <summary>
/// Gets or sets relative file part.
/// </summary>
public string RelativeFilePath { get; set; }

/// <summary>
/// Gets or set portable command alias.
/// </summary>
public string PortableCommandAlias { get; set; }
}
}
31 changes: 31 additions & 0 deletions src/WinGetUtilInterop/Manifest/V1/Manifest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,7 @@ public class Manifest
/// </summary>
public string ProductCode { get; set; }

/// <summary>
/// <summary>
/// Gets or sets the default list of capabilities. For msix only.
/// </summary>
Expand All @@ -236,6 +237,31 @@ public class Manifest
/// </summary>
public InstallerMarkets Markets { get; set; }

/// <summary>
/// Gets or sets the installation metadata.
/// </summary>
public InstallerInstallationMetadata InstallationMetadata { get; set; }

/// <summary>
/// Gets or sets the nested installer type.
/// </summary>
public string NestedInstallerType { get; set; }

/// <summary>
/// Gets or sets the nested installer files.
/// </summary>
public List<InstallerNestedInstallerFile> NestedInstallerFiles { get; set; }

/// <summary>
/// Gets or sets the excluded markets.
/// </summary>
public string ExcludedMarkets { get; set; }

/// <summary>
/// Gets or sets the unsupported arguments.
/// </summary>
public List<string> UnsupportedArguments { get; set; }

/// <summary>
/// Gets or sets a value indicating whether the default installer behavior aborts terminal.
/// </summary>
Expand All @@ -261,6 +287,11 @@ public class Manifest
/// </summary>
public List<string> UnsupportedOSArchitectures { get; set; }

/// <summary>
/// Gets or sets a value indicating whether to display install warnings.
/// </summary>
public bool DisplayInstallWarnings { get; set; }

/// <summary>
/// Gets or sets the default list of apps and features entries.
/// </summary>
Expand Down
30 changes: 30 additions & 0 deletions src/WinGetUtilInterop/Manifest/V1/ManifestInstaller.cs
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,36 @@ public class ManifestInstaller
/// </summary>
public List<InstallerExpectedReturnCode> ExpectedReturnCodes { get; set; }

/// <summary>
/// Gets or sets the installation metadata.
/// </summary>
public InstallerInstallationMetadata InstallationMetadata { get; set; }

/// <summary>
/// Gets or sets the nested installer type.
/// </summary>
public string NestedInstallerType { get; set; }

/// <summary>
/// Gets or sets the nested installer files.
/// </summary>
public List<InstallerNestedInstallerFile> NestedInstallerFiles { get; set; }

/// <summary>
/// Gets or sets the excluded markets.
/// </summary>
public string ExcludedMarkets { get; set; }

/// <summary>
/// Gets or sets the unsupported arguments.
/// </summary>
public List<string> UnsupportedArguments { get; set; }

/// <summary>
/// Gets or sets a value indicating whether to display install warnings.
/// </summary>
public bool DisplayInstallWarnings { get; set; }

/// <summary>
/// Returns a List of strings containing the URIs contained within this installer.
/// </summary>
Expand Down
43 changes: 43 additions & 0 deletions src/WinGetUtilInterop/Manifest/V1/ManifestInstallerFile.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
// -----------------------------------------------------------------------
// <copyright file="ManifestInstallationMetadata.cs" company="Microsoft Corporation">
// Copyright (c) Microsoft Corporation. All rights reserved.
// </copyright>
// -----------------------------------------------------------------------

namespace Microsoft.WinGetUtil.Models.V1
{
using System;
using System.Collections.Generic;
using System.Text;

/// <summary>
/// Represents an installer file.
/// </summary>
public class ManifestInstallerFile
{
/// <summary>
/// Gets or sets relative file path.
/// </summary>
public string RelativeFilePath { get; set; }

/// <summary>
/// Gets or sets file sha256.
/// </summary>
public string FileSha256 { get; set; }

/// <summary>
/// Gets or sets file type.
/// </summary>
public string FileType { get; set; }

/// <summary>
/// Gets or sets invocation parameter.
/// </summary>
public string InvocationParameter { get; set; }

/// <summary>
/// Gets or sets display name.
/// </summary>
public string DisplayName { get; set; }
}
}

0 comments on commit 5d8b88e

Please sign in to comment.