packaging: fix options hostArchitectures attribute

This is used by the meson.pkg but is an optional attribute:

https://developer.apple.com/library/archive/documentation/DeveloperTools/Reference/DistributionDefinitionRef/Chapters/Distribution_XML_Ref.html#//apple_ref/doc/uid/TP40005370-CH100-SW41

Found by https://www.check-spelling.dev/

Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
pull/11673/head
Josh Soref 2 years ago committed by Eli Schwartz
parent cf9fd56bc9
commit b5c1c93ea8
  1. 2
      packaging/createpkg.py

@ -85,7 +85,7 @@ class PkgGenerator:
ET.SubElement(root, 'pkg-ref', {'id': self.identifier})
ET.SubElement(root, 'options', {'customize': 'never',
'require-scripts': 'false',
'hostArhcitectures': 'x86_64,arm64'})
'hostArchitectures': 'x86_64,arm64'})
choices_outline = ET.SubElement(root, 'choices-outline')
line = ET.SubElement(choices_outline, 'line', {'choice': 'default'})
ET.SubElement(line, 'line', {'choice': self.identifier})

Loading…
Cancel
Save