Skip to content

Commit 372da26

Browse files
Merge pull request #62 from drunkenbot-ai/fix-windows-installer-paths
Fix Windows installer deep license paths
2 parents f01f978 + db6f6e5 commit 372da26

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

packaging/packager.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,10 @@ def build(*, clean: bool, runtime_dir: Path | None = None, gpu: bool = False) ->
183183
"SolidCompression=yes",
184184
*( [f'UninstallDisplayIcon={{app}}\\drunken_bot_logo_small.ico'] if icon_path else [] ),
185185
"[Files]",
186-
f'Source: "{bundle}\\*"; DestDir: "{{app}}"; Flags: recursesubdirs ignoreversion',
186+
# PyTorch wheels contain very deep dist-info license trees.
187+
# They are metadata only and can exceed Inno's source-path
188+
# limits on Windows, so do not copy them into the installer.
189+
f'Source: "{bundle}\\*"; DestDir: "{{app}}"; Flags: recursesubdirs ignoreversion; Excludes: "runtime\\Lib\\site-packages\\*.dist-info\\licenses\\*;runtime\\Lib\\site-packages\\*.dist-info\\license\\*"',
187190
*( [f'Source: "{icon_path}"; DestDir: "{{app}}"; Flags: ignoreversion'] if icon_path else [] ),
188191
"[Icons]",
189192
*( [f'Name: "{{autoprograms}}\\{APP_NAME}\\{APP_NAME}"; Filename: "{{app}}\\{APP_NAME}.exe"; IconFilename: "{{app}}\\drunken_bot_logo_small.ico"'] if icon_path else [] ),

0 commit comments

Comments
 (0)