| 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..c7e592f5c8f15d7fb09d888c4dd6e4105bea7152
|
| --- /dev/null
|
| +++ b/build/config/ios/ios_code_sign.py
|
| @@ -0,0 +1,36 @@
|
| +# 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 subprocess
|
| +import sys
|
| +
|
| +
|
| +def PerformCodeSigning(args):
|
| + return subprocess.check_call([
|
| + '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())
|
|
|