Skip to content

Commit

Permalink
Update WindowsPackageManager.Utils nuget package to 0.3.4 (#192)
Browse files Browse the repository at this point in the history
* update nuget package for winget.utils

* change to 0.3.4
  • Loading branch information
ryfu-msft authored Oct 26, 2021
1 parent fbd8fae commit dd50443
Show file tree
Hide file tree
Showing 6 changed files with 57 additions and 55 deletions.
18 changes: 9 additions & 9 deletions src/WingetCreateCore/Models/DefaultLocaleManifestModels.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//----------------------
// <auto-generated>
// Generated using the NJsonSchema v10.4.1.0 (Newtonsoft.Json v11.0.0.0) (http://NJsonSchema.org)
// Generated using the NJsonSchema v10.4.3.0 (Newtonsoft.Json v11.0.0.0) (http://NJsonSchema.org)
// </auto-generated>
//----------------------

Expand All @@ -9,7 +9,7 @@ namespace Microsoft.WingetCreateCore.Models.DefaultLocale
#pragma warning disable // Disable all warnings

/// <summary>A representation of a multiple-file manifest representing a default app metadata in the OWC. v1.0.0</summary>
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.4.1.0 (Newtonsoft.Json v11.0.0.0)")]
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.4.3.0 (Newtonsoft.Json v11.0.0.0)")]
public partial class DefaultLocaleManifest
{
/// <summary>The package unique identifier</summary>
Expand All @@ -31,7 +31,7 @@ public partial class DefaultLocaleManifest
[System.ComponentModel.DataAnnotations.Required(AllowEmptyStrings = true)]
[System.ComponentModel.DataAnnotations.StringLength(20)]
[System.ComponentModel.DataAnnotations.RegularExpression(@"^([a-zA-Z]{2}|[iI]-[a-zA-Z]+|[xX]-[a-zA-Z]{1,8})(-[a-zA-Z]{1,8})*$")]
public string PackageLocale { get; set; }
public string PackageLocale { get; set; } = "en-US";

/// <summary>The publisher name</summary>
[Newtonsoft.Json.JsonProperty("Publisher", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
Expand All @@ -41,19 +41,19 @@ public partial class DefaultLocaleManifest

/// <summary>The publisher home page</summary>
[Newtonsoft.Json.JsonProperty("PublisherUrl", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
[System.ComponentModel.DataAnnotations.StringLength(2000)]
[System.ComponentModel.DataAnnotations.StringLength(2048)]
[System.ComponentModel.DataAnnotations.RegularExpression(@"^([Hh][Tt][Tt][Pp][Ss]?)://.+$")]
public string PublisherUrl { get; set; }

/// <summary>The publisher support page</summary>
[Newtonsoft.Json.JsonProperty("PublisherSupportUrl", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
[System.ComponentModel.DataAnnotations.StringLength(2000)]
[System.ComponentModel.DataAnnotations.StringLength(2048)]
[System.ComponentModel.DataAnnotations.RegularExpression(@"^([Hh][Tt][Tt][Pp][Ss]?)://.+$")]
public string PublisherSupportUrl { get; set; }

/// <summary>The publisher privacy page or the package privacy page</summary>
[Newtonsoft.Json.JsonProperty("PrivacyUrl", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
[System.ComponentModel.DataAnnotations.StringLength(2000)]
[System.ComponentModel.DataAnnotations.StringLength(2048)]
[System.ComponentModel.DataAnnotations.RegularExpression(@"^([Hh][Tt][Tt][Pp][Ss]?)://.+$")]
public string PrivacyUrl { get; set; }

Expand All @@ -70,7 +70,7 @@ public partial class DefaultLocaleManifest

/// <summary>The package home page</summary>
[Newtonsoft.Json.JsonProperty("PackageUrl", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
[System.ComponentModel.DataAnnotations.StringLength(2000)]
[System.ComponentModel.DataAnnotations.StringLength(2048)]
[System.ComponentModel.DataAnnotations.RegularExpression(@"^([Hh][Tt][Tt][Pp][Ss]?)://.+$")]
public string PackageUrl { get; set; }

Expand All @@ -82,7 +82,7 @@ public partial class DefaultLocaleManifest

/// <summary>The license page</summary>
[Newtonsoft.Json.JsonProperty("LicenseUrl", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
[System.ComponentModel.DataAnnotations.StringLength(2000)]
[System.ComponentModel.DataAnnotations.StringLength(2048)]
[System.ComponentModel.DataAnnotations.RegularExpression(@"^([Hh][Tt][Tt][Pp][Ss]?)://.+$")]
public string LicenseUrl { get; set; }

Expand All @@ -93,7 +93,7 @@ public partial class DefaultLocaleManifest

/// <summary>The package copyright page</summary>
[Newtonsoft.Json.JsonProperty("CopyrightUrl", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
[System.ComponentModel.DataAnnotations.StringLength(2000)]
[System.ComponentModel.DataAnnotations.StringLength(2048)]
[System.ComponentModel.DataAnnotations.RegularExpression(@"^([Hh][Tt][Tt][Pp][Ss]?)://.+$")]
public string CopyrightUrl { get; set; }

Expand Down
31 changes: 16 additions & 15 deletions src/WingetCreateCore/Models/InstallerManifestModels.cs
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
//----------------------
// <auto-generated>
// Generated using the NJsonSchema v10.4.1.0 (Newtonsoft.Json v11.0.0.0) (http://NJsonSchema.org)
// Generated using the NJsonSchema v10.4.3.0 (Newtonsoft.Json v11.0.0.0) (http://NJsonSchema.org)
// </auto-generated>
//----------------------

namespace Microsoft.WingetCreateCore.Models.Installer
{
#pragma warning disable // Disable all warnings

/// <summary>Enumeration of supported installer types</summary>
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.4.1.0 (Newtonsoft.Json v11.0.0.0)")]
/// <summary>Enumeration of supported installer types. InstallerType is required in either root level or individual Installer level</summary>
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.4.3.0 (Newtonsoft.Json v11.0.0.0)")]
public enum InstallerType
{
[System.Runtime.Serialization.EnumMember(Value = @"msix")]
Expand Down Expand Up @@ -45,7 +45,7 @@ public enum InstallerType
}

/// <summary>Scope indicates if the installer is per user or per machine</summary>
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.4.1.0 (Newtonsoft.Json v11.0.0.0)")]
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.4.3.0 (Newtonsoft.Json v11.0.0.0)")]
public enum Scope
{
[System.Runtime.Serialization.EnumMember(Value = @"user")]
Expand All @@ -56,7 +56,7 @@ public enum Scope

}

[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.4.1.0 (Newtonsoft.Json v11.0.0.0)")]
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.4.3.0 (Newtonsoft.Json v11.0.0.0)")]
public partial class InstallerSwitches
{
/// <summary>Silent is the value that should be passed to the installer when user chooses a silent or quiet install</summary>
Expand Down Expand Up @@ -107,7 +107,7 @@ public System.Collections.Generic.IDictionary<string, object> AdditionalProperti
}

/// <summary>The upgrade method</summary>
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.4.1.0 (Newtonsoft.Json v11.0.0.0)")]
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.4.3.0 (Newtonsoft.Json v11.0.0.0)")]
public enum UpgradeBehavior
{
[System.Runtime.Serialization.EnumMember(Value = @"install")]
Expand All @@ -118,7 +118,7 @@ public enum UpgradeBehavior

}

[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.4.1.0 (Newtonsoft.Json v11.0.0.0)")]
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.4.3.0 (Newtonsoft.Json v11.0.0.0)")]
public partial class Dependencies
{
/// <summary>List of Windows feature dependencies</summary>
Expand Down Expand Up @@ -153,7 +153,7 @@ public System.Collections.Generic.IDictionary<string, object> AdditionalProperti

}

[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.4.1.0 (Newtonsoft.Json v11.0.0.0)")]
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.4.3.0 (Newtonsoft.Json v11.0.0.0)")]
public partial class Installer
{
[Newtonsoft.Json.JsonProperty("InstallerLocale", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
Expand Down Expand Up @@ -185,6 +185,7 @@ public partial class Installer
/// <summary>The installer Url</summary>
[Newtonsoft.Json.JsonProperty("InstallerUrl", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
[System.ComponentModel.DataAnnotations.Required(AllowEmptyStrings = true)]
[System.ComponentModel.DataAnnotations.StringLength(2048)]
[System.ComponentModel.DataAnnotations.RegularExpression(@"^([Hh][Tt][Tt][Pp][Ss]?)://.+$")]
public string InstallerUrl { get; set; }

Expand All @@ -208,7 +209,7 @@ public partial class Installer

[Newtonsoft.Json.JsonProperty("InstallerSuccessCodes", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
[System.ComponentModel.DataAnnotations.MaxLength(16)]
public System.Collections.Generic.List<int> InstallerSuccessCodes { get; set; }
public System.Collections.Generic.List<long> InstallerSuccessCodes { get; set; }

[Newtonsoft.Json.JsonProperty("UpgradeBehavior", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.StringEnumConverter))]
Expand Down Expand Up @@ -259,7 +260,7 @@ public System.Collections.Generic.IDictionary<string, object> AdditionalProperti
}

/// <summary>A representation of a single-file manifest representing an app installers in the OWC. v1.0.0</summary>
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.4.1.0 (Newtonsoft.Json v11.0.0.0)")]
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.4.3.0 (Newtonsoft.Json v11.0.0.0)")]
public partial class InstallerManifest
{
[Newtonsoft.Json.JsonProperty("PackageIdentifier", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
Expand Down Expand Up @@ -307,7 +308,7 @@ public partial class InstallerManifest

[Newtonsoft.Json.JsonProperty("InstallerSuccessCodes", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
[System.ComponentModel.DataAnnotations.MaxLength(16)]
public System.Collections.Generic.List<int> InstallerSuccessCodes { get; set; }
public System.Collections.Generic.List<long> InstallerSuccessCodes { get; set; }

[Newtonsoft.Json.JsonProperty("UpgradeBehavior", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.StringEnumConverter))]
Expand Down Expand Up @@ -374,7 +375,7 @@ public System.Collections.Generic.IDictionary<string, object> AdditionalProperti

}

[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.4.1.0 (Newtonsoft.Json v11.0.0.0)")]
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.4.3.0 (Newtonsoft.Json v11.0.0.0)")]
public partial class PackageDependencies
{
[Newtonsoft.Json.JsonProperty("PackageIdentifier", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
Expand All @@ -400,7 +401,7 @@ public System.Collections.Generic.IDictionary<string, object> AdditionalProperti

}

[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.4.1.0 (Newtonsoft.Json v11.0.0.0)")]
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.4.3.0 (Newtonsoft.Json v11.0.0.0)")]
public enum Platform
{
[System.Runtime.Serialization.EnumMember(Value = @"Windows.Desktop")]
Expand All @@ -411,7 +412,7 @@ public enum Platform

}

[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.4.1.0 (Newtonsoft.Json v11.0.0.0)")]
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.4.3.0 (Newtonsoft.Json v11.0.0.0)")]
public enum InstallerArchitecture
{
[System.Runtime.Serialization.EnumMember(Value = @"x86")]
Expand All @@ -431,7 +432,7 @@ public enum InstallerArchitecture

}

[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.4.1.0 (Newtonsoft.Json v11.0.0.0)")]
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.4.3.0 (Newtonsoft.Json v11.0.0.0)")]
public enum InstallModes
{
[System.Runtime.Serialization.EnumMember(Value = @"interactive")]
Expand Down
16 changes: 8 additions & 8 deletions src/WingetCreateCore/Models/LocaleManifestModels.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//----------------------
// <auto-generated>
// Generated using the NJsonSchema v10.4.1.0 (Newtonsoft.Json v11.0.0.0) (http://NJsonSchema.org)
// Generated using the NJsonSchema v10.4.3.0 (Newtonsoft.Json v11.0.0.0) (http://NJsonSchema.org)
// </auto-generated>
//----------------------

Expand All @@ -9,7 +9,7 @@ namespace Microsoft.WingetCreateCore.Models.Locale
#pragma warning disable // Disable all warnings

/// <summary>A representation of a multiple-file manifest representing app metadata in other locale in the OWC. v1.0.0</summary>
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.4.1.0 (Newtonsoft.Json v11.0.0.0)")]
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.4.3.0 (Newtonsoft.Json v11.0.0.0)")]
public partial class LocaleManifest
{
/// <summary>The package unique identifier</summary>
Expand Down Expand Up @@ -40,19 +40,19 @@ public partial class LocaleManifest

/// <summary>The publisher home page</summary>
[Newtonsoft.Json.JsonProperty("PublisherUrl", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
[System.ComponentModel.DataAnnotations.StringLength(2000)]
[System.ComponentModel.DataAnnotations.StringLength(2048)]
[System.ComponentModel.DataAnnotations.RegularExpression(@"^([Hh][Tt][Tt][Pp][Ss]?)://.+$")]
public string PublisherUrl { get; set; }

/// <summary>The publisher support page</summary>
[Newtonsoft.Json.JsonProperty("PublisherSupportUrl", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
[System.ComponentModel.DataAnnotations.StringLength(2000)]
[System.ComponentModel.DataAnnotations.StringLength(2048)]
[System.ComponentModel.DataAnnotations.RegularExpression(@"^([Hh][Tt][Tt][Pp][Ss]?)://.+$")]
public string PublisherSupportUrl { get; set; }

/// <summary>The publisher privacy page or the package privacy page</summary>
[Newtonsoft.Json.JsonProperty("PrivacyUrl", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
[System.ComponentModel.DataAnnotations.StringLength(2000)]
[System.ComponentModel.DataAnnotations.StringLength(2048)]
[System.ComponentModel.DataAnnotations.RegularExpression(@"^([Hh][Tt][Tt][Pp][Ss]?)://.+$")]
public string PrivacyUrl { get; set; }

Expand All @@ -68,7 +68,7 @@ public partial class LocaleManifest

/// <summary>The package home page</summary>
[Newtonsoft.Json.JsonProperty("PackageUrl", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
[System.ComponentModel.DataAnnotations.StringLength(2000)]
[System.ComponentModel.DataAnnotations.StringLength(2048)]
[System.ComponentModel.DataAnnotations.RegularExpression(@"^([Hh][Tt][Tt][Pp][Ss]?)://.+$")]
public string PackageUrl { get; set; }

Expand All @@ -79,7 +79,7 @@ public partial class LocaleManifest

/// <summary>The license page</summary>
[Newtonsoft.Json.JsonProperty("LicenseUrl", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
[System.ComponentModel.DataAnnotations.StringLength(2000)]
[System.ComponentModel.DataAnnotations.StringLength(2048)]
[System.ComponentModel.DataAnnotations.RegularExpression(@"^([Hh][Tt][Tt][Pp][Ss]?)://.+$")]
public string LicenseUrl { get; set; }

Expand All @@ -90,7 +90,7 @@ public partial class LocaleManifest

/// <summary>The package copyright page</summary>
[Newtonsoft.Json.JsonProperty("CopyrightUrl", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
[System.ComponentModel.DataAnnotations.StringLength(2000)]
[System.ComponentModel.DataAnnotations.StringLength(2048)]
[System.ComponentModel.DataAnnotations.RegularExpression(@"^([Hh][Tt][Tt][Pp][Ss]?)://.+$")]
public string CopyrightUrl { get; set; }

Expand Down
Loading

0 comments on commit dd50443

Please sign in to comment.