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/', |
39 'manifest.json', | 40 'manifest.json', |
40 'manifest_guest.json', | 41 'manifest_guest.json', |
41 ] | 42 ] |
42 | 43 |
43 | 44 |
44 def CreateOptionParser(): | 45 def CreateOptionParser(): |
45 parser = optparse.OptionParser(description=__doc__) | 46 parser = optparse.OptionParser(description=__doc__) |
46 parser.usage = ( | 47 parser.usage = ( |
47 '%prog --client_secret <client_secret> extension_id:extension_path ...') | 48 '%prog --client_secret <client_secret> extension_id:extension_path ...') |
48 parser.add_option('-c', '--client_secret', dest='client_secret', | 49 parser.add_option('-c', '--client_secret', dest='client_secret', |
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
146 print('Uploading...%s' % | 147 print('Uploading...%s' % |
147 webstore_extension_util.PostUpload(output_path.name, client_secret)) | 148 webstore_extension_util.PostUpload(output_path.name, client_secret)) |
148 print('publishing...%s' % | 149 print('publishing...%s' % |
149 webstore_extension_util.PostPublish(client_secret).read()) | 150 webstore_extension_util.PostPublish(client_secret).read()) |
150 else: | 151 else: |
151 RunInteractivePrompt(client_secret, output_path) | 152 RunInteractivePrompt(client_secret, output_path) |
152 | 153 |
153 | 154 |
154 if __name__ == '__main__': | 155 if __name__ == '__main__': |
155 main() | 156 main() |
OLD | NEW |