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

Unified Diff: chrome/browser/resources/chromeos/chromevox/tools/upload_chromevox_to_webstore.py

Issue 584313003: Enable runtime switching between ChromeVox and ChromeVox next via command line. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Make changes to exclude files/paths from webstore release. Created 6 years, 3 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/resources/chromeos/chromevox/tools/upload_chromevox_to_webstore.py
diff --git a/chrome/browser/resources/chromeos/chromevox/tools/upload_chromevox_to_webstore.py b/chrome/browser/resources/chromeos/chromevox/tools/upload_chromevox_to_webstore.py
index 953e6abe9051284423305d61dc316331cdfcc33f..ad51cec1a7b1c9a986faafb5877ae477951ee1bd 100755
--- a/chrome/browser/resources/chromeos/chromevox/tools/upload_chromevox_to_webstore.py
+++ b/chrome/browser/resources/chromeos/chromevox/tools/upload_chromevox_to_webstore.py
@@ -23,8 +23,14 @@ import sys
import tempfile
from zipfile import ZipFile
-# A list of files to exclude from the webstore build.
-EXCLUDE_FILES = ['manifest_guest.json']
+# A list of files (or directories) to exclude from the webstore build.
+EXCLUDE_PATHS = [
+ 'cvox2/background/',
+ 'deps.js',
+ 'manifest_guest.json',
+ 'manifest_next.json',
+ 'manifest_next_guest.json'
+ ]
def CreateOptionParser():
@@ -91,9 +97,11 @@ def main():
with ZipFile(output_path, 'w') as zip:
for root, dirs, files in os.walk(extension_path):
rel_path = os.path.join(os.path.relpath(root, extension_path), '')
+ if rel_path in EXCLUDE_PATHS:
+ continue
for extension_file in files:
- if extension_file in EXCLUDE_FILES:
+ if extension_file in EXCLUDE_PATHS:
continue
if extension_file == 'manifest.json':
new_file = tempfile.NamedTemporaryFile(mode='w+a', bufsize=0)

Powered by Google App Engine
This is Rietveld 408576698