From a82c4923bd4d3e7d8f163653cdffa0d8be13eb90 Mon Sep 17 00:00:00 2001 From: John Kleinschmidt Date: Fri, 21 Sep 2018 16:58:33 -0400 Subject: [PATCH] Make sure resources gets skipped --- build/zip.py | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/build/zip.py b/build/zip.py index 69fe91e92680..e3b5a2fd5c83 100644 --- a/build/zip.py +++ b/build/zip.py @@ -15,15 +15,17 @@ EXTENSIONS_TO_SKIP = [ ] PATHS_TO_SKIP = [ - 'angledata', - 'swiftshader', - 'resources/inspector' + 'angledata', #Skipping because it is an output of //ui/gl that we don't need + 'swiftshader', #Skipping because it is an output of //ui/gl that we don't need + 'resources/inspector' ] def skip_path(dep): should_skip = ( any(dep.startswith(path) for path in PATHS_TO_SKIP) or any(dep.endswith(ext) for ext in EXTENSIONS_TO_SKIP)) + if should_skip: + print("Skipping {}".format(dep)) return should_skip def strip_binaries(target_cpu, dep): @@ -69,7 +71,10 @@ def main(argv): if os.path.isdir(dep): for root, dirs, files in os.walk(dep): for file in files: - z.write(os.path.join(root, file)) + file_path = os.path.join(root, file) + if skip_path(file_path): + continue + z.write(file_path) else: z.write(dep)