mirror of
https://github.com/freedomofpress/dangerzone.git
synced 2025-04-28 18:02:38 +02:00
Change: Convert Wix UI extension authoring to WiX Toolset v5
Due to limitations of the xml.etree.ElementTree library, add the items in the root element as a dictionary
This commit is contained in:
parent
abb71e0fe5
commit
4eadc30605
1 changed files with 8 additions and 6 deletions
|
@ -114,7 +114,13 @@ def main():
|
|||
)
|
||||
|
||||
# Add the Wix root element
|
||||
wix_el = ET.Element("Wix", xmlns="http://wixtoolset.org/schemas/v4/wxs")
|
||||
wix_el = ET.Element(
|
||||
"Wix",
|
||||
{
|
||||
"xmlns": "http://wixtoolset.org/schemas/v4/wxs",
|
||||
"xmlns:ui": "http://wixtoolset.org/schemas/v4/wxs/ui",
|
||||
},
|
||||
)
|
||||
|
||||
# Add the Package element
|
||||
package_el = ET.SubElement(
|
||||
|
@ -153,12 +159,8 @@ def main():
|
|||
Value="https://freedom.press",
|
||||
)
|
||||
ET.SubElement(
|
||||
package_el,
|
||||
"Property",
|
||||
Id="WIXUI_INSTALLDIR",
|
||||
Value="INSTALLFOLDER",
|
||||
package_el, "ui:WixUI", Id="WixUI_InstallDir", InstallDirectory="INSTALLFOLDER"
|
||||
)
|
||||
ET.SubElement(package_el, "UIRef", Id="WixUI_InstallDir")
|
||||
ET.SubElement(package_el, "UIRef", Id="WixUI_ErrorProgressText")
|
||||
ET.SubElement(
|
||||
package_el,
|
||||
|
|
Loading…
Reference in a new issue