Skip to content

Commit

Permalink
FIX: windows installer
Browse files Browse the repository at this point in the history
  • Loading branch information
sander-willems-bruker committed Jul 24, 2023
1 parent e271c24 commit 06c6b1f
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions misc/pyinstaller/alphatims.spec
Original file line number Diff line number Diff line change
Expand Up @@ -75,18 +75,18 @@ else:
hidden_imports = [h for h in hidden_imports if "__pycache__" not in h]
datas = [d for d in datas if ("__pycache__" not in d[0]) and (d[1] not in [".", "Resources", "scripts"])]

if sys.platform[:5] == "win32":
base_path = os.path.dirname(sys.executable)
library_path = os.path.join(base_path, "Library", "bin")
dll_path = os.path.join(base_path, "DLLs")
libcrypto_dll_path = os.path.join(dll_path, "libcrypto-1_1-x64.dll")
libssl_dll_path = os.path.join(dll_path, "libssl-1_1-x64.dll")
libcrypto_lib_path = os.path.join(library_path, "libcrypto-1_1-x64.dll")
libssl_lib_path = os.path.join(library_path, "libssl-1_1-x64.dll")
if not os.path.exists(libcrypto_dll_path):
datas.append((libcrypto_lib_path, "."))
if not os.path.exists(libssl_dll_path):
datas.append((libssl_lib_path, "."))
# if sys.platform[:5] == "win32":
# base_path = os.path.dirname(sys.executable)
# library_path = os.path.join(base_path, "Library", "bin")
# dll_path = os.path.join(base_path, "DLLs")
# libcrypto_dll_path = os.path.join(dll_path, "libcrypto-1_1-x64.dll")
# libssl_dll_path = os.path.join(dll_path, "libssl-1_1-x64.dll")
# libcrypto_lib_path = os.path.join(library_path, "libcrypto-1_1-x64.dll")
# libssl_lib_path = os.path.join(library_path, "libssl-1_1-x64.dll")
# if not os.path.exists(libcrypto_dll_path):
# datas.append((libcrypto_lib_path, "."))
# if not os.path.exists(libssl_dll_path):
# datas.append((libssl_lib_path, "."))

a = Analysis(
[script_name],
Expand Down

0 comments on commit 06c6b1f

Please sign in to comment.