Skip to content

Commit

Permalink
Fix pyinstaller script on Windows (conan-io#15194)
Browse files Browse the repository at this point in the history
  • Loading branch information
jcar87 authored Dec 1, 2023
1 parent dc98b6a commit 1f548d8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pyinstaller.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ def pyinstall(source_folder, onefile=False):
win_ver_file = os.path.join(pyinstaller_path, 'windows-version-file')
content = _windows_version_file(__version__)
save(win_ver_file, content)
win_ver = "--version-file \"%s\"" % win_ver_file
win_ver = ["--version-file", win_ver_file]

if not os.path.exists(pyinstaller_path):
os.mkdir(pyinstaller_path)
Expand All @@ -136,7 +136,7 @@ def pyinstall(source_folder, onefile=False):
command_args = [conan_path, "--noconfirm", f"--paths={source_folder}", "--console", f"--distpath={distpath}"]
command_args.extend(hidden.split(" "))
if win_ver:
command_args.append(win_ver)
command_args.extend(win_ver)
if onefile:
command_args.append("--onefile")

Expand Down

0 comments on commit 1f548d8

Please sign in to comment.