Skip to content

Commit ea42287

Browse files
committed
Get correct public key
1 parent 387bd09 commit ea42287

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

mousetracks2/sign.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,10 @@ def verify_signature(file_path: Path | str, write_untrusted: bool = True) -> boo
125125
print(f'Checking signature of {file_path}...')
126126

127127
# No signature supplied during build process
128-
public_key = get_runtime_public_key()
128+
if IS_BUILT_EXE:
129+
public_key = get_runtime_public_key()
130+
else:
131+
public_key = get_build_public_key()
129132
if public_key is None:
130133
print(f'No public key set, signature verification disabled')
131134
return True

0 commit comments

Comments
 (0)