fix build process: use absolute paths for icon folder in PyInstaller configuration to prevent runtime errors
This commit is contained in:
@@ -23,7 +23,9 @@ def build(build: bool = True, copy: bool = True, test: bool = False, dest: str |
|
||||
if test:
|
||||
print("Building Windows test one-file bundle with PyInstaller")
|
||||
# On Windows use ';' as add-data separator (src;dest)
|
||||
add_data_args = ["--add-data", "icon;icon"]
|
||||
# Use absolute path for the icon folder so PyInstaller can find it
|
||||
icon_src = str(project_root / "icon")
|
||||
add_data_args = ["--add-data", f"{icon_src};icon"]
|
||||
|
||||
# Try to include dicognito package data (release_notes.md) which
|
||||
# PyInstaller may miss. This prevents runtime FileNotFoundError for
|
||||
|
||||
Reference in New Issue
Block a user