| Index: build/config/ios/ios_code_sign.py
|
| diff --git a/build/config/ios/ios_code_sign.py b/build/config/ios/ios_code_sign.py
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..31d8b79af6a785f6a0cceea42c0bd10c63d25bdc
|
| --- /dev/null
|
| +++ b/build/config/ios/ios_code_sign.py
|
| @@ -0,0 +1,39 @@
|
| +# Copyright (c) 2015 The Chromium Authors. All rights reserved.
|
| +# Use of this source code is governed by a BSD-style license that can be
|
| +# found in the LICENSE file.
|
| +
|
| +import argparse
|
| +import errno
|
| +import os
|
| +import subprocess
|
| +import sys
|
| +
|
| +
|
| +def PerformCodeSigning(args):
|
| + return subprocess.check_call([
|
| + '/usr/bin/env',
|
| + 'xcrun',
|
| + 'codesign',
|
| + '--entitlements',
|
| + args.entitlements_path,
|
| + '--sign',
|
| + args.identity,
|
| + '-f',
|
| + args.application_path,
|
| + ])
|
| +
|
| +
|
| +def main():
|
| + parser = argparse.ArgumentParser(
|
| + description='Code sign the specified application')
|
| + parser.add_argument('-p', dest='application_path', required=True,
|
| + help='The application path')
|
| + parser.add_argument('-i', dest='identity', required=True,
|
| + help='The code signing identity to use')
|
| + parser.add_argument('-e', dest='entitlements_path', required=True,
|
| + help='The path to the entitlements .xcent')
|
| + PerformCodeSigning(parser.parse_args())
|
| +
|
| +
|
| +if __name__ == '__main__':
|
| + sys.exit(main())
|
|
|