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