From 54883ad52342fa1f0eae7aa159c16ec0492d20e5 Mon Sep 17 00:00:00 2001 From: Nick Bolton Date: Sun, 29 Jul 2012 17:27:40 +0000 Subject: [PATCH] moved mac sign identity to arg --- hm.py | 2 +- tools/build/toolchain.py | 10 +++++++--- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/hm.py b/hm.py index 4a4763a1..0bce7a82 100644 --- a/hm.py +++ b/hm.py @@ -70,7 +70,7 @@ cmd_opt_dict = { 'genlist' : ['', []], 'reset' : ['', []], 'signwin' : ['', ['pfx=', 'pwd=', 'dist']], - 'signmac' : ['', []] + 'signmac' : ['', ['identity=']] } # aliases to valid commands diff --git a/tools/build/toolchain.py b/tools/build/toolchain.py index 7353ca16..f4091437 100644 --- a/tools/build/toolchain.py +++ b/tools/build/toolchain.py @@ -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() \ No newline at end of file + idenity = None + for o, a in self.opts: + if o == '--identity': + identity = a + self.ic.signmac(identity) \ No newline at end of file