File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2222LICENSE = "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
You can’t perform that action at this time.
0 commit comments