Commit 38a16e14 authored by Martin v. Löwis's avatar Martin v. Löwis

Merged revisions 69593 via svnmerge from

svn+ssh://pythondev@svn.python.org/python/trunk

........
  r69593 | martin.v.loewis | 2009-02-13 21:51:48 +0100 (Fr, 13 Feb 2009) | 1 line

  Add optional code signing after merging.
........
parent 24bd65f7
import msilib,os,win32com,tempfile,sys
PCBUILD="PCBuild"
certname = None
from config import *
Win64 = "amd64" in PCBUILD
......@@ -76,3 +77,8 @@ def merge(msi, feature, rootdir, modules):
db.Commit()
merge(msi, "SharedCRT", "TARGETDIR", modules)
# certname (from config.py) should be (a substring of)
# the certificate subject, e.g. "Python Software Foundation"
if certname:
os.system('signtool sign /n "%s" /t http://timestamp.verisign.com/scripts/timestamp.dll %s' % (certname, msi))
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment