OLD | NEW |
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 | 2 |
3 # Copyright 2014 The Chromium Authors. All rights reserved. | 3 # Copyright 2014 The Chromium Authors. All rights reserved. |
4 # Use of this source code is governed by a BSD-style license that can be | 4 # Use of this source code is governed by a BSD-style license that can be |
5 # found in the LICENSE file. | 5 # found in the LICENSE file. |
6 | 6 |
7 '''Publishes a set of extensions to the webstore. | 7 '''Publishes a set of extensions to the webstore. |
8 Given an unpacked extension, compresses and sends to the Chrome webstore. | 8 Given an unpacked extension, compresses and sends to the Chrome webstore. |
9 | 9 |
10 Releasing to the webstore should involve the following manual steps before | 10 Releasing to the webstore should involve the following manual steps before |
(...skipping 18 matching lines...) Expand all Loading... |
29 _CHROME_SOURCE_DIR = os.path.normpath( | 29 _CHROME_SOURCE_DIR = os.path.normpath( |
30 os.path.join( | 30 os.path.join( |
31 _SCRIPT_DIR, *[os.path.pardir] * 6)) | 31 _SCRIPT_DIR, *[os.path.pardir] * 6)) |
32 | 32 |
33 sys.path.insert( | 33 sys.path.insert( |
34 0, os.path.join(_CHROME_SOURCE_DIR, 'build', 'util')) | 34 0, os.path.join(_CHROME_SOURCE_DIR, 'build', 'util')) |
35 import version | 35 import version |
36 | 36 |
37 # A list of files (or directories) to exclude from the webstore build. | 37 # A list of files (or directories) to exclude from the webstore build. |
38 EXCLUDE_PATHS = [ | 38 EXCLUDE_PATHS = [ |
39 'cvox2/background/', | |
40 'manifest.json', | 39 'manifest.json', |
41 'manifest_guest.json', | 40 'manifest_guest.json', |
42 ] | 41 ] |
43 | 42 |
44 | 43 |
45 def CreateOptionParser(): | 44 def CreateOptionParser(): |
46 parser = optparse.OptionParser(description=__doc__) | 45 parser = optparse.OptionParser(description=__doc__) |
47 parser.usage = ( | 46 parser.usage = ( |
48 '%prog --client_secret <client_secret> extension_id:extension_path ...') | 47 '%prog --client_secret <client_secret> extension_id:extension_path ...') |
49 parser.add_option('-c', '--client_secret', dest='client_secret', | 48 parser.add_option('-c', '--client_secret', dest='client_secret', |
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
147 print('Uploading...%s' % | 146 print('Uploading...%s' % |
148 webstore_extension_util.PostUpload(output_path.name, client_secret)) | 147 webstore_extension_util.PostUpload(output_path.name, client_secret)) |
149 print('publishing...%s' % | 148 print('publishing...%s' % |
150 webstore_extension_util.PostPublish(client_secret).read()) | 149 webstore_extension_util.PostPublish(client_secret).read()) |
151 else: | 150 else: |
152 RunInteractivePrompt(client_secret, output_path) | 151 RunInteractivePrompt(client_secret, output_path) |
153 | 152 |
154 | 153 |
155 if __name__ == '__main__': | 154 if __name__ == '__main__': |
156 main() | 155 main() |
OLD | NEW |