You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# TODO make sure this doesn't expose the decrypted API key in the appveyor log
16
+
# TODO Is this script run in local builds? if so we need to add back the certFile and certPassword since people still need to be able to make self-signed builds.
Copy file name to clipboardExpand all lines: sconstruct
+36-23Lines changed: 36 additions & 23 deletions
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
# A part of NonVisual Desktop Access (NVDA)
2
-
# Copyright (C) 2010-2023 NV Access Limited, James Teh, Michael Curran, Peter Vágner, Joseph Lee,
2
+
# Copyright (C) 2010-2024 NV Access Limited, James Teh, Michael Curran, Peter Vágner, Joseph Lee,
3
3
# Reef Turner, Babbage B.V., Leonard de Ruijter, Łukasz Golonka, Accessolutions, Julien Cochuyt,
4
4
# Cyrille Bougot
5
5
# This file may be used under the terms of the GNU General Public License, version 2 or later.
@@ -95,6 +95,7 @@ vars.Add(PathVariable("certFile", "The certificate file with which to sign execu
95
95
lambda key, val, env: not val or PathVariable.PathIsFile(key, val, env)))
96
96
vars.Add("certPassword", "The password for the private key in the signing certificate", "")
97
97
vars.Add("certTimestampServer", "The URL of the timestamping server to use to timestamp authenticode signatures", "")
98
+
vars.Add("apiSigningToken", "The API key for the signing service", "")
98
99
vars.Add(PathVariable("outputDir", "The directory where the final built archives and such will be placed", "output",PathVariable.PathIsDirCreate))
99
100
vars.Add(ListVariable("nvdaHelperDebugFlags", "a list of debugging features you require", 'none', ["debugCRT","RTC","analyze"]))
100
101
vars.Add(EnumVariable('nvdaHelperLogLevel','The level of logging you wish to see, lower is more verbose','15',allowed_values=[str(x) for x in range(60)]))
@@ -146,6 +147,9 @@ publisher = env["publisher"]
146
147
certFile = env["certFile"]
147
148
certPassword = env["certPassword"]
148
149
certTimestampServer = env["certTimestampServer"]
150
+
# TODO remove local testing code when using secure Appveyor store
151
+
# TODO make sure that the unencrypted API key isn't logged anywhere eg AppVeyor
152
+
apiSigningToken = env["apiSigningToken"] or os.environ.get("apiSigningToken") # workaround for local testing
149
153
userDocsDir=Dir('user_docs')
150
154
sourceDir = env.Dir("source")
151
155
Export('sourceDir')
@@ -165,24 +169,33 @@ Export('outFilePrefix')
165
169
outputDir=Dir(env['outputDir'])
166
170
Export('outputDir')
167
171
168
-
# An action to sign an executable with certFile.
169
-
# we encrypt with SHA256 as this is the minimum required by the Windows Store for appx packages
0 commit comments