Skip to content
Snippets Groups Projects
Commit 2149be5d authored by CG Linden's avatar CG Linden
Browse files

Attempt to invoke the code signer differently

parent 89de8e5b
No related branches found
No related tags found
No related merge requests found
...@@ -395,9 +395,14 @@ def package_finish(self): ...@@ -395,9 +395,14 @@ def package_finish(self):
self.run_command('"' + proper_windows_path(NSIS_path) + '" ' + self.dst_path_of(tempfile)) self.run_command('"' + proper_windows_path(NSIS_path) + '" ' + self.dst_path_of(tempfile))
# self.remove(self.dst_path_of(tempfile)) # self.remove(self.dst_path_of(tempfile))
# If we're on a build machine, sign the code using our Authenticode certificate. JC # If we're on a build machine, sign the code using our Authenticode certificate. JC
sign_py = 'C:\\buildscripts\\code-signing\\sign.py' sign_py = os.path.expandvars("${SIGN}")
if not sign_py or sign_py == "${SIGN}":
sign_py = 'C:\\buildscripts\\code-signing\\sign.py'
python = os.path.expandvars("${PYTHON}")
if not python or python == "${PYTHON}":
python = 'python'
if os.path.exists(sign_py): if os.path.exists(sign_py):
self.run_command(sign_py + ' ' + self.dst_path_of(installer_file)) self.run_command("%s %s %s" % (python, sign_py self.dst_path_of(installer_file)))
else: else:
print "Skipping code signing,", sign_py, "does not exist" print "Skipping code signing,", sign_py, "does not exist"
self.created_path(self.dst_path_of(installer_file)) self.created_path(self.dst_path_of(installer_file))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment