From 7a8e43c65eadb073c00dfc6d1dd9e949599b43a1 Mon Sep 17 00:00:00 2001 From: Cheng Zhao Date: Mon, 24 Feb 2014 13:29:06 +0800 Subject: [PATCH] linux: Fix create-dist. --- script/create-dist.py | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/script/create-dist.py b/script/create-dist.py index d0fd8bcc..80861d16 100755 --- a/script/create-dist.py +++ b/script/create-dist.py @@ -39,6 +39,11 @@ TARGET_BINARIES = { 'icudt.dll', 'libGLESv2.dll', ], + 'linux': [ + 'atom', + 'libchromiumcontent.so', + 'libffmpegsumo.so', + ], } TARGET_DIRECTORIES = { 'darwin': [ @@ -47,6 +52,9 @@ TARGET_DIRECTORIES = { 'win32': [ 'resources', ], + 'linux': [ + 'resources', + ], } HEADERS_SUFFIX = [ @@ -74,8 +82,9 @@ def main(): args = parse_args() force_build() - download_libchromiumcontent_symbols(args.url) - create_symbols() + if sys.platform != 'linux2': + download_libchromiumcontent_symbols(args.url) + create_symbols() copy_binaries() copy_headers() copy_license() @@ -151,7 +160,7 @@ def create_version(): def download_libchromiumcontent_symbols(url): if sys.platform == 'darwin': symbols_name = 'libchromiumcontent.dylib.dSYM' - else: + elif sys.platform == 'win32': symbols_name = 'chromiumcontent.dll.pdb' brightray_dir = os.path.join(SOURCE_ROOT, 'vendor', 'brightray', 'vendor') @@ -196,6 +205,8 @@ def create_symbols_zip(): with scoped_cwd(DIST_DIR): files = ['LICENSE', 'version'] dirs = ['Atom-Shell.breakpad.syms'] + if sys.platform == 'linux2': + dirs = [] make_zip(zip_file, files, dirs) -- 2.43.0