Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions sconstruct
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import os
import time
from glob import glob
import sourceEnv
from py2exe.dllfinder import pydll
import importlib.util

def recursiveCopy(env,targetDir,sourceDir):
Expand Down Expand Up @@ -262,6 +263,11 @@ def NVDADistGenerator(target, source, env, for_signature):

action.append(buildCmd)

# Python3 has started signing its main python dll.
# However, Py2exe currently tries to add a string resource to it, invalidating the signature and possibly currupting the certificate.
# Therefore, copy a fresh version of the dll one more time once py2exe has completed.
action.append(Copy(target[0],pydll))

if certFile:
for prog in "nvda_noUIAccess.exe", "nvda_uiAccess.exe", "nvda_slave.exe", "nvda_eoaProxy.exe":
action.append(lambda target,source,env, progByVal=prog: signExec([target[0].File(progByVal)],source,env))
Expand Down