| OLD | NEW |
| (Empty) | |
| 1 # Copyright (c) 2015 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. |
| 4 |
| 5 import argparse |
| 6 import subprocess |
| 7 import sys |
| 8 |
| 9 |
| 10 def PerformCodeSigning(args): |
| 11 return subprocess.check_call([ |
| 12 'xcrun', |
| 13 'codesign', |
| 14 '--entitlements', |
| 15 args.entitlements_path, |
| 16 '--sign', |
| 17 args.identity, |
| 18 '-f', |
| 19 args.application_path, |
| 20 ]) |
| 21 |
| 22 |
| 23 def main(): |
| 24 parser = argparse.ArgumentParser( |
| 25 description='Code sign the specified application') |
| 26 parser.add_argument('-p', dest='application_path', required=True, |
| 27 help='The application path') |
| 28 parser.add_argument('-i', dest='identity', required=True, |
| 29 help='The code signing identity to use') |
| 30 parser.add_argument('-e', dest='entitlements_path', required=True, |
| 31 help='The path to the entitlements .xcent') |
| 32 PerformCodeSigning(parser.parse_args()) |
| 33 |
| 34 |
| 35 if __name__ == '__main__': |
| 36 sys.exit(main()) |
| OLD | NEW |