Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(69)

Side by Side Diff: build/config/ios/ios_code_sign.py

Issue 1611363003: Add support for iOS application bundle to GN. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@gn-bundles
Patch Set: Filter .xcassets from the copy_bundle_data step Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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())
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698