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

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: 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 errno
brettw 2016/01/22 19:00:12 I think "errno" and "os" are unused.
sdefresne 2016/01/25 14:01:22 Removed, thank you.
7 import os
8 import subprocess
9 import sys
10
11
12 def PerformCodeSigning(args):
13 return subprocess.check_call([
14 '/usr/bin/env',
brettw 2016/01/22 19:00:12 Random question: this env call is just to search t
sdefresne 2016/01/25 14:01:22 I think that is it's purpose, and it is probably u
15 'xcrun',
16 'codesign',
17 '--entitlements',
18 args.entitlements_path,
19 '--sign',
20 args.identity,
21 '-f',
22 args.application_path,
23 ])
24
25
26 def main():
27 parser = argparse.ArgumentParser(
28 description='Code sign the specified application')
29 parser.add_argument('-p', dest='application_path', required=True,
30 help='The application path')
31 parser.add_argument('-i', dest='identity', required=True,
32 help='The code signing identity to use')
33 parser.add_argument('-e', dest='entitlements_path', required=True,
34 help='The path to the entitlements .xcent')
35 PerformCodeSigning(parser.parse_args())
36
37
38 if __name__ == '__main__':
39 sys.exit(main())
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698