Details
Description
Currently, pyside6-deploy only looks at the title parameter in the pysidedeploy.spec file if the platform being deployed to is MacOS, as is evident by this snippet of code from deploy_util.py:
def finalize(config: Config): """ Copy the executable into the final location For Android deployment, this is done through buildozer """ generated_exec_path = config.generated_files_path / (config.source_file.stem + EXE_FORMAT) if generated_exec_path.exists() and config.exe_dir: if sys.platform == "darwin": shutil.copytree(generated_exec_path, config.exe_dir / (config.title + EXE_FORMAT), dirs_exist_ok=True) else: shutil.copy(generated_exec_path, config.exe_dir) print("[DEPLOY] Executed file created in " f"{str(config.exe_dir / (config.source_file.stem + EXE_FORMAT))}")
I think the else section should say this instead:
else:
shutil.copy(generated_exec_path, config.exe_dir / (config.title + EXE_FORMAT))
This way, the file will always get renamed to what is specified by the title parameter/--name flag.