setup: utf-8-sig signing

This commit is contained in:
Fabian Dill 2022-05-17 21:40:03 +02:00 committed by KonoTyran
parent 05efbe0af8
commit 47b179dec4
1 changed files with 2 additions and 2 deletions

View File

@ -29,9 +29,9 @@ except pkg_resources.ResolutionError:
if os.path.exists("X:/pw.txt"):
print("Using signtool")
with open("X:/pw.txt") as f:
with open("X:/pw.txt", encoding="utf-8-sig") as f:
pw = f.read()
signtool = r'signtool sign /f X:/_SITS_Zertifikat_.pfx /p ' + pw + r' /fd sha256 /tr http://timestamp.digicert.com/ '
signtool = r'signtool sign /f X:/_SITS_Zertifikat_.pfx /p "' + pw + r'" /fd sha256 /tr http://timestamp.digicert.com/ '
else:
signtool = None