Skip to content

Commit 3e1a1a7

Browse files
committed
Fix package
1 parent f272cee commit 3e1a1a7

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

script/package.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@
2222
LICENSE = "MIT"
2323

2424

25-
def run_command(command):
25+
def run_command(command: list[str]) -> None:
2626
"""Run a system command and handle errors."""
27-
command[0] = shutil.which(command[0]) # On windows .bat files need full path
27+
command[0] = str(shutil.which(command[0])) # On windows .bat files need full path
2828

2929
if not command[0]:
3030
raise FileNotFoundError(f"Command not found: {command[0]}")
@@ -97,7 +97,7 @@ def package_macos() -> None:
9797
run_command(cmd)
9898

9999

100-
def check_wix_installed():
100+
def check_wix_installed() -> None:
101101
"""Check if WiX Toolset v4 is installed (candle.exe & light.exe)."""
102102
wix = shutil.which("wix.exe")
103103
if not wix:
@@ -138,7 +138,6 @@ def generate_wix_xml(build_dir: Path, output_wxs: Path) -> None:
138138
Guid="*",
139139
Directory="INSTALLFOLDER",
140140
)
141-
ET.SubElement(component, "Files", Include=str(build_dir.resolve() / "**"))
142141

143142
ET.SubElement(
144143
component,
@@ -177,6 +176,7 @@ def generate_wix_xml(build_dir: Path, output_wxs: Path) -> None:
177176
"ComponentRef",
178177
Id="MainComponent",
179178
)
179+
ET.SubElement(feature, "Files", Include=str(build_dir.resolve() / "**"))
180180

181181
ET.SubElement(package, "Property", Id="ARPCOMMENTS", Value=DESCRIPTION)
182182

0 commit comments

Comments
 (0)