Skip to content

Commit

Permalink
make manifest files optional
Browse files Browse the repository at this point in the history
during development, we want to be able to call 'install_exe' directly, without creating the manifest files
  • Loading branch information
totaam committed Jan 18, 2025
1 parent 4d15978 commit 5215b42
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -1852,12 +1852,17 @@ def do_add_DLLs(prefix="lib", *dll_names: str) -> None:
setup_options["executables"] = executables

def add_exe(script, icon, base_name, base="Console") -> None:
kwargs = {}
manifest = f"dist/{base_name}.exe.manifest"
if os.path.exists(manifest):
kwargs["manifest"] = manifest
executables.append(Executable(
script=script, init_script=None,
# targetDir = "dist",
icon=f"fs/share/xpra/icons/{icon}",
target_name=f"{base_name}.exe",
base=base,
**kwargs
))

def add_console_exe(script, icon, base_name) -> None:
Expand Down

0 comments on commit 5215b42

Please sign in to comment.