@joebigelow / wix / commits / fcaaa4eb

Fix architectures when generating metadata

Rob Mensching committed Aug 9, 2022 at 08:50 UTC fcaaa4eb7ee6581693faefc553b63fdb02ca30bc
2 files changed +2 -22
src/setup/MetadataTask/GenerateMetadata.cs
+2 -2
@@ -104,8 +104,8 @@ namespace WixToolset.Tasks
104 switch (platform)
105 {
106 case Platform.X86: return ArchitectureType.X86;
107 - case Platform.X64: return ArchitectureType.X86;
108 - case Platform.ARM64: return ArchitectureType.X86;
107 + case Platform.X64: return ArchitectureType.X64;
108 + case Platform.ARM64: return ArchitectureType.Arm64;
109 default: throw new ArgumentException($"Unknown platform {platform}");
110 }
111 }
src/setup/MetadataTask/Metadata.cs
-20
@@ -17,26 +17,6 @@ namespace WixToolset.Tasks
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 -
20 public class Metadata
21 {
22 public string Id { get; set; }