mirror of
https://github.com/debauchee/barrier.git
synced 2024-12-24 03:23:15 +03:00
moved mac sign identity to arg
This commit is contained in:
parent
42419dc353
commit
54883ad523
2
hm.py
2
hm.py
@ -70,7 +70,7 @@ cmd_opt_dict = {
|
||||
'genlist' : ['', []],
|
||||
'reset' : ['', []],
|
||||
'signwin' : ['', ['pfx=', 'pwd=', 'dist']],
|
||||
'signmac' : ['', []]
|
||||
'signmac' : ['', ['identity=']]
|
||||
}
|
||||
|
||||
# aliases to valid commands
|
||||
|
@ -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)
|
Loading…
Reference in New Issue
Block a user