mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-25 15:44:04 -06:00
Document Wix arguments
Contribute to CURA-9157
This commit is contained in:
parent
15c1ade87d
commit
e31c2735dc
2 changed files with 22 additions and 9 deletions
|
@ -1,7 +1,7 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi" xmlns:fw="http://schemas.microsoft.com/wix/FirewallExtension">
|
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi" xmlns:fw="http://schemas.microsoft.com/wix/FirewallExtension">
|
||||||
<Product
|
<Product
|
||||||
Id="{{ product_code }}"
|
Id="*"
|
||||||
Name="{{ app_name }}"
|
Name="{{ app_name }}"
|
||||||
Language="1033"
|
Language="1033"
|
||||||
Version="{{ version_major }}.{{ version_minor }}.{{ version_patch }}"
|
Version="{{ version_major }}.{{ version_minor }}.{{ version_patch }}"
|
||||||
|
|
|
@ -40,7 +40,6 @@ def generate_wxs(source_path: Path, dist_path: Path, filename: Path, app_name: s
|
||||||
company="UltiMaker",
|
company="UltiMaker",
|
||||||
web_site="https://ultimaker.com",
|
web_site="https://ultimaker.com",
|
||||||
year=datetime.now().year,
|
year=datetime.now().year,
|
||||||
product_code=str(uuid.uuid5(uuid.NAMESPACE_DNS, app_name + os.environ.get("CURA_VERSION_MAJOR") + os.environ.get("CURA_VERSION_MINOR"))),
|
|
||||||
upgrade_code=str(uuid.uuid5(uuid.NAMESPACE_DNS, app_name)),
|
upgrade_code=str(uuid.uuid5(uuid.NAMESPACE_DNS, app_name)),
|
||||||
shortcut_uuid=str(uuid.uuid5(uuid.NAMESPACE_DNS, f"Shortcut {app_name}")),
|
shortcut_uuid=str(uuid.uuid5(uuid.NAMESPACE_DNS, f"Shortcut {app_name}")),
|
||||||
cura_license_file=str(source_loc.joinpath("packaging", "msi", "cura_license.rtf")),
|
cura_license_file=str(source_loc.joinpath("packaging", "msi", "cura_license.rtf")),
|
||||||
|
@ -83,22 +82,36 @@ def build(dist_path: Path, filename: Path):
|
||||||
manageoldcuradlg_loc = work_loc.joinpath("CustomizeCuraDlg.wxs")
|
manageoldcuradlg_loc = work_loc.joinpath("CustomizeCuraDlg.wxs")
|
||||||
build_loc = work_loc.joinpath("build_msi")
|
build_loc = work_loc.joinpath("build_msi")
|
||||||
|
|
||||||
heat_command = ["heat", "dir", f"{dist_loc.as_posix()}\\", "-dr", "APPLICATIONFOLDER", "-cg", "NewFilesGroup", "-sw5150",
|
heat_command = ["heat",
|
||||||
"-gg", "-g1", "-sf", "-srd", "-var", "var.CuraDir", "-t", f"{exclude_components_loc.as_posix()}",
|
"dir", f"{dist_loc.as_posix()}\\",
|
||||||
|
"-dr", "APPLICATIONFOLDER",
|
||||||
|
"-cg", "NewFilesGroup",
|
||||||
|
"-sw5150", # Don't pollute logs with warnings from auto generated content
|
||||||
|
"-gg",
|
||||||
|
"-g1",
|
||||||
|
"-sf",
|
||||||
|
"-srd",
|
||||||
|
"-var", "var.CuraDir",
|
||||||
|
"-t", f"{exclude_components_loc.as_posix()}",
|
||||||
"-out", f"{heat_loc.as_posix()}"]
|
"-out", f"{heat_loc.as_posix()}"]
|
||||||
subprocess.call(heat_command)
|
subprocess.call(heat_command)
|
||||||
|
|
||||||
build_command = ["candle", "-arch", "x64", f"-dCuraDir={dist_loc}\\",
|
build_command = ["candle",
|
||||||
|
"-arch", "x64",
|
||||||
|
f"-dCuraDir={dist_loc}\\",
|
||||||
"-ext", "WixFirewallExtension",
|
"-ext", "WixFirewallExtension",
|
||||||
"-out", f"{build_loc.as_posix()}\\",
|
"-out", f"{build_loc.as_posix()}\\",
|
||||||
f"{wxs_loc.as_posix()}", f"{heat_loc.as_posix()}", f"{manageoldcuradlg_loc.as_posix()}"]
|
f"{wxs_loc.as_posix()}",
|
||||||
|
f"{heat_loc.as_posix()}",
|
||||||
|
f"{manageoldcuradlg_loc.as_posix()}"]
|
||||||
subprocess.call(build_command)
|
subprocess.call(build_command)
|
||||||
|
|
||||||
link_command = ["light", f"{build_loc.joinpath(wxs_loc.name).with_suffix('.wixobj')}",
|
link_command = ["light",
|
||||||
|
f"{build_loc.joinpath(wxs_loc.name).with_suffix('.wixobj')}",
|
||||||
f"{build_loc.joinpath(heat_loc.name).with_suffix('.wixobj')}",
|
f"{build_loc.joinpath(heat_loc.name).with_suffix('.wixobj')}",
|
||||||
f"{build_loc.joinpath(manageoldcuradlg_loc.name).with_suffix('.wixobj')}",
|
f"{build_loc.joinpath(manageoldcuradlg_loc.name).with_suffix('.wixobj')}",
|
||||||
"-sw1076",
|
"-sw1076", # Don't pollute logs with warnings from auto generated content
|
||||||
"-dcl:high",
|
"-dcl:high", # Use high compression ratio
|
||||||
"-ext", "WixUIExtension",
|
"-ext", "WixUIExtension",
|
||||||
"-ext", "WixFirewallExtension",
|
"-ext", "WixFirewallExtension",
|
||||||
"-out", f"{work_loc.joinpath(filename.name)}"]
|
"-out", f"{work_loc.joinpath(filename.name)}"]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue