moved mac sign identity to arg

This commit is contained in:
Nick Bolton 2012-07-29 17:27:40 +00:00
parent 42419dc353
commit 54883ad523
2 changed files with 8 additions and 4 deletions

2
hm.py
View File

@ -70,7 +70,7 @@ cmd_opt_dict = {
'genlist' : ['', []],
'reset' : ['', []],
'signwin' : ['', ['pfx=', 'pwd=', 'dist']],
'signmac' : ['', []]
'signmac' : ['', ['identity=']]
}
# aliases to valid commands

View File

@ -347,10 +347,10 @@ class InternalCommands:
if self.enable_make_gui:
self.make_gui(targets)
def signmac(self):
def signmac(self, identity):
self.try_chdir("bin")
err = os.system(
'codesign -fs "Developer ID Application: Nick Bolton" Synergy.app')
'codesign -fs "' + identity + '" Synergy.app')
self.restore_chdir()
def signwin(self, pfx, pwdFile, dist):
@ -1307,4 +1307,8 @@ class CommandHandler:
self.ic.signwin(pfx, pwd, dist)
def signmac(self):
self.ic.signmac()
idenity = None
for o, a in self.opts:
if o == '--identity':
identity = a
self.ic.signmac(identity)