]> khamidou — GitHub mirrors - electron.git/commitdiff
linux: Fix create-dist.
authorCheng Zhao <zcbenz@gmail.com>
Mon, 24 Feb 2014 05:29:06 +0000 (13:29 +0800)
committerCheng Zhao <zcbenz@gmail.com>
Mon, 24 Feb 2014 05:44:23 +0000 (13:44 +0800)
script/create-dist.py

index d0fd8bcc139a12a882ee623090adfb600b3022d9..80861d16d004f639f8731e89409bb3cf30910f63 100755 (executable)
@@ -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)