mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Windows builds: sign DLLs in addition to EXEs
Apparently Microsoft's latest pointless bit of security theatre now wants DLLs signed in addition to EXEs. Because of course, executable code can only be in DLLs and EXEs. Roll eyes. Fixes #1997486 [calibre does not start when Win 11´s smart app control is activated](https://bugs.launchpad.net/calibre/+bug/1997486)
This commit is contained in:
parent
aea3492d77
commit
168718e3e7
@ -548,9 +548,9 @@ def copy_crt_and_d3d(env):
|
||||
def sign_executables(env):
|
||||
files_to_sign = []
|
||||
for path in walk(env.base):
|
||||
if path.lower().endswith('.exe'):
|
||||
if path.lower().endswith('.exe') or path.lower().endswith('.dll'):
|
||||
files_to_sign.append(path)
|
||||
printf('Signing {} exe files'.format(len(files_to_sign)))
|
||||
printf('Signing {} exe/dll files'.format(len(files_to_sign)))
|
||||
sign_files(env, files_to_sign)
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user