diff options
author | callum_linden <none@none> | 2012-07-25 16:42:37 -0700 |
---|---|---|
committer | callum_linden <none@none> | 2012-07-25 16:42:37 -0700 |
commit | 78854c9baa4528943a0b399bca38b7f6dd446000 (patch) | |
tree | 136a9ec86f3be1f8e25b77cd2f04626e5e337f0e /indra/newview/viewer_manifest.py | |
parent | 1154d5afde0730b541716587ca3c5b962dba1b8d (diff) |
Fix to build with code signing option (patch from STORM-1900)
Diffstat (limited to 'indra/newview/viewer_manifest.py')
-rw-r--r-- | indra/newview/viewer_manifest.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/indra/newview/viewer_manifest.py b/indra/newview/viewer_manifest.py index d1c952ac3b..587d708e86 100644 --- a/indra/newview/viewer_manifest.py +++ b/indra/newview/viewer_manifest.py @@ -816,6 +816,16 @@ class DarwinManifest(ViewerManifest): self.run_command("chmod +x %r" % os.path.join(self.get_dst_prefix(), script)) def package_finish(self): + # Sign the app if requested. + if 'signature' in self.args: + identity = self.args['signature'] + if identity == '': + identity = 'Developer ID Application' + self.run_command('codesign --force --sign %(identity)r %(bundle)r' % { + 'identity': identity, + 'bundle': self.get_dst_prefix() + }) + channel_standin = 'Second Life Viewer' # hah, our default channel is not usable on its own if not self.default_channel(): channel_standin = self.channel() |