Skip to content

Commit

Permalink
Bk Package now signs windows msi
Browse files Browse the repository at this point in the history
(integrated from master branch change f0c22d2 by cgchoffman <cgchoffman@gmail.com>)
  • Loading branch information
th3coop committed Nov 10, 2015
1 parent 877caad commit 8bd1d6f
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Blackfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -1564,6 +1564,16 @@ def _PackageKomodoMSI(cfg):
if not exists(dirname(cfg.komodoInstallerPackage)):
os.makedirs(dirname(cfg.komodoInstallerPackage))
shutil.copyfile(join(wrkDir, "komodo.msi"), cfg.komodoInstallerPackage)

# signtool sign /v /f c:\ActiveStateSPC.pfx /t http://timestamp.verisign.com/scripts/timestamp.dll %1
print "---- sign MSI to packages"
# All elements to this of the command below should be part of the config file
# and configured during bk configure
key = "C:\\bb\\certificates\\ActiveStateSPC.pfx" # this should be a config set during bk configure
command = "signtool sign /v /f \"%s\" /t http://timestamp.verisign.com/scripts/timestamp.dll \"%s\"" %(key, cfg.komodoInstallerPackage)
print("---- run command: %s", command)
_run(command)

print "'%s' created" % cfg.komodoInstallerPackage


Expand Down

0 comments on commit 8bd1d6f

Please sign in to comment.