diff options
| author | Rob Mensching <rob@firegiant.com> | 2022-08-08 10:43:49 -0700 |
|---|---|---|
| committer | Rob Mensching <rob@firegiant.com> | 2022-08-08 19:44:05 -0700 |
| commit | 2f1a8d6caa50640925bf634062121391c450a5ed (patch) | |
| tree | 95268f2ba1e6f2f11569922bce0b5d649076e97b /src/setup/MetadataTask/Metadata.cs | |
| parent | d0882c24534f9bcdba63641ff9ef2cfc7780d879 (diff) | |
| download | wix-2f1a8d6caa50640925bf634062121391c450a5ed.tar.gz wix-2f1a8d6caa50640925bf634062121391c450a5ed.tar.bz2 wix-2f1a8d6caa50640925bf634062121391c450a5ed.zip | |
Generate metadata needed to populate update feed
Step towards completing 5367
Diffstat (limited to 'src/setup/MetadataTask/Metadata.cs')
| -rw-r--r-- | src/setup/MetadataTask/Metadata.cs | 78 |
1 files changed, 78 insertions, 0 deletions
diff --git a/src/setup/MetadataTask/Metadata.cs b/src/setup/MetadataTask/Metadata.cs new file mode 100644 index 00000000..139d9240 --- /dev/null +++ b/src/setup/MetadataTask/Metadata.cs | |||
| @@ -0,0 +1,78 @@ | |||
| 1 | // Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information. | ||
| 2 | |||
| 3 | namespace WixToolset.Tasks | ||
| 4 | { | ||
| 5 | public enum MetadataType | ||
| 6 | { | ||
| 7 | Unknown, | ||
| 8 | Burn, | ||
| 9 | Msi, | ||
| 10 | } | ||
| 11 | |||
| 12 | public enum ArchitectureType | ||
| 13 | { | ||
| 14 | Unknown, | ||
| 15 | Arm64, | ||
| 16 | X64, | ||
| 17 | X86, | ||
| 18 | } | ||
| 19 | |||
| 20 | //{ | ||
| 21 | // "id": [PackageSymbolId] | [BundleSymbolId], | ||
| 22 | // "type": "msi" | "burn" | ||
| 23 | // "name": [ProductName] | [BundleName] | ||
| 24 | // "locale": [ProductLanguage] | [BundleLanguage] | ||
| 25 | // "publisher": [Manufacturer] | ||
| 26 | // "aboutUrl": [ARPURLINFOABOUT] | [AboutUrl] | ||
| 27 | // "supportUrl": [ARPHELPLINK] | [SupportUrl] | ||
| 28 | // "description": [ARPCOMMENTS] | "Installation for" + [BundleName] | ||
| 29 | // "license": [ProductLicense] | [BundleLicense] | ||
| 30 | // "architecture": "x86" | "x64" | "arm64" | ||
| 31 | // "size": #### | ||
| 32 | // "sha256": hex, | ||
| 33 | // "file": <filename> | ||
| 34 | // "created": <ISO timestamp> | ||
| 35 | // "productCode": [ProductCode] | ||
| 36 | // "bundleCode": [BundleId] | ||
| 37 | // "upgradeCode": [UpgradeCode] | ||
| 38 | //} | ||
| 39 | |||
| 40 | public class Metadata | ||
| 41 | { | ||
| 42 | public string Id { get; set; } | ||
| 43 | |||
| 44 | public MetadataType Type { get; set; } | ||
| 45 | |||
| 46 | public string Name { get; set; } | ||
| 47 | |||
| 48 | public string Version { get; set; } | ||
| 49 | |||
| 50 | public string Locale { get; set; } | ||
| 51 | |||
| 52 | public string Publisher { get; set; } | ||
| 53 | |||
| 54 | public string AboutUrl { get; set; } | ||
| 55 | |||
| 56 | public string SupportUrl { get; set; } | ||
| 57 | |||
| 58 | public string Description { get; set; } | ||
| 59 | |||
| 60 | public string License { get; set; } | ||
| 61 | |||
| 62 | public ArchitectureType Architecture { get; set; } | ||
| 63 | |||
| 64 | public string File { get; set; } | ||
| 65 | |||
| 66 | public long Size { get; set; } | ||
| 67 | |||
| 68 | public string Sha256 { get; set; } | ||
| 69 | |||
| 70 | public string Created { get; set; } | ||
| 71 | |||
| 72 | public string ProductCode { get; set; } | ||
| 73 | |||
| 74 | public string BundleCode { get; set; } | ||
| 75 | |||
| 76 | public string UpgradeCode { get; set; } | ||
| 77 | } | ||
| 78 | } | ||
