mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
Merge pull request #1340 from atom/zip_verify_file_exist
Verify whether the file exists before including it in zip
This commit is contained in:
@@ -191,7 +191,7 @@ def create_dist_zip():
|
||||
with scoped_cwd(DIST_DIR):
|
||||
files = TARGET_BINARIES[TARGET_PLATFORM] + ['LICENSE', 'version']
|
||||
if TARGET_PLATFORM == 'linux':
|
||||
files += SYSTEM_LIBRARIES
|
||||
files += [lib for lib in SYSTEM_LIBRARIES if os.path.exists(lib)]
|
||||
dirs = TARGET_DIRECTORIES[TARGET_PLATFORM]
|
||||
make_zip(zip_file, files, dirs)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user