Skip to content

Commit fb54f54

Browse files
committed
test(windows): define the missing sha256_file helper in the launcher guard
Signed-off-by: Martin Vogel <martin.vogel.tech@gmail.com>
1 parent e3bfcc3 commit fb54f54

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

‎tests/windows/test_windows_launcher.py‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,11 @@ class GuardFailure(Exception):
8080
pass
8181

8282

83+
def sha256_file(path):
84+
"""SHA-256 hex digest of a file's contents (payload/launcher digest checks)."""
85+
return hashlib.sha256(pathlib.Path(path).read_bytes()).hexdigest()
86+
87+
8388
class PROCESSENTRY32W(ctypes.Structure):
8489
_fields_ = [
8590
("dwSize", wintypes.DWORD),

0 commit comments

Comments
 (0)