chore: remove duplicate and un-needed files from dist zips (#14882)
* chore: remove duplicate and un-needed files from dist zips * Strip chromedriver binaries Also, fix path for files to skip * Don't strip mksnapshot for now Mksnapshot needs special handling for arm/arm64 because there is both an x86 and arm/arm64 binary in those cases.
This commit is contained in:
parent
74badfeb56
commit
2b3415dfd8
1 changed files with 5 additions and 1 deletions
|
@ -5,6 +5,7 @@ import sys
|
||||||
import zipfile
|
import zipfile
|
||||||
|
|
||||||
LINUX_BINARIES_TO_STRIP = [
|
LINUX_BINARIES_TO_STRIP = [
|
||||||
|
'chromedriver',
|
||||||
'electron',
|
'electron',
|
||||||
'libffmpeg.so',
|
'libffmpeg.so',
|
||||||
'libnode.so'
|
'libnode.so'
|
||||||
|
@ -17,6 +18,8 @@ EXTENSIONS_TO_SKIP = [
|
||||||
PATHS_TO_SKIP = [
|
PATHS_TO_SKIP = [
|
||||||
'angledata', #Skipping because it is an output of //ui/gl that we don't need
|
'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
|
'swiftshader', #Skipping because it is an output of //ui/gl that we don't need
|
||||||
|
'./libVkLayer_', #Skipping because these are outputs that we don't need
|
||||||
|
'./VkLayerLayer_', #Skipping because these are outputs that we don't need
|
||||||
]
|
]
|
||||||
|
|
||||||
def skip_path(dep):
|
def skip_path(dep):
|
||||||
|
@ -57,7 +60,8 @@ def main(argv):
|
||||||
with open(runtime_deps) as f:
|
with open(runtime_deps) as f:
|
||||||
for dep in f.readlines():
|
for dep in f.readlines():
|
||||||
dep = dep.strip()
|
dep = dep.strip()
|
||||||
dist_files += [dep]
|
if dep not in dist_files:
|
||||||
|
dist_files += [dep]
|
||||||
if sys.platform == 'darwin':
|
if sys.platform == 'darwin':
|
||||||
mac_zip_results = execute(['zip', '-r', '-y', dist_zip] + dist_files)
|
mac_zip_results = execute(['zip', '-r', '-y', dist_zip] + dist_files)
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in a new issue