mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
f624334abf
commit
d90d89aa8c
@ -558,15 +558,19 @@ class Win32Freeze(Command, WixMixIn):
|
|||||||
args = ['signtool.exe', 'sign', '/a', '/fd', 'sha256', '/td', 'sha256', '/d',
|
args = ['signtool.exe', 'sign', '/a', '/fd', 'sha256', '/td', 'sha256', '/d',
|
||||||
'calibre - E-book management', '/du',
|
'calibre - E-book management', '/du',
|
||||||
'http://calibre-ebook.com', '/tr']
|
'http://calibre-ebook.com', '/tr']
|
||||||
|
|
||||||
|
def runcmd(cmd):
|
||||||
for timeserver in ('http://timestamp.geotrust.com/tsa', 'http://timestamp.comodoca.com/rfc3161',):
|
for timeserver in ('http://timestamp.geotrust.com/tsa', 'http://timestamp.comodoca.com/rfc3161',):
|
||||||
try:
|
try:
|
||||||
subprocess.check_call(args + [timeserver] + files)
|
subprocess.check_call(cmd + [timeserver] + files)
|
||||||
break
|
break
|
||||||
except subprocess.CalledProcessError:
|
except subprocess.CalledProcessError:
|
||||||
print ('Signing failed, retrying with different timestamp server')
|
print ('Signing failed, retrying with different timestamp server')
|
||||||
else:
|
else:
|
||||||
raise SystemExit('Signing failed')
|
raise SystemExit('Signing failed')
|
||||||
|
|
||||||
|
runcmd(args)
|
||||||
|
|
||||||
def add_dir_to_zip(self, zf, path, prefix=''):
|
def add_dir_to_zip(self, zf, path, prefix=''):
|
||||||
'''
|
'''
|
||||||
Add a directory recursively to the zip file with an optional prefix.
|
Add a directory recursively to the zip file with an optional prefix.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user