Skip to content

Commit 076f010

Browse files
committed
fix(win): fix binary check for windows
Modified: • src/omnipkg/dispatcher.py (+2/-1 lines) [gitship-generated]
1 parent 5904793 commit 076f010

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/omnipkg/dispatcher.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -614,9 +614,10 @@ def _push_binary_to_bin_dir(native_bin, target_bin, src_hash: str, debug: bool)
614614
target_bin = Path(target_bin)
615615

616616
# Find the native binary (prefer "8pkg" as canonical name)
617+
_exe = ".exe" if sys.platform == "win32" else ""
617618
src_binary = None
618619
for name in ("8pkg", "omnipkg"):
619-
candidate = native_bin / name
620+
candidate = native_bin / (name + _exe)
620621
if candidate.exists() and os.access(str(candidate), os.X_OK):
621622
# Quick sanity: must be a real binary, not a Python script
622623
try:

0 commit comments

Comments
 (0)