]> khamidou — GitHub mirrors - electron.git/commitdiff
Ship VS2012 redist DLLs.
authorCheng Zhao <zcbenz@gmail.com>
Thu, 31 Jul 2014 06:12:01 +0000 (14:12 +0800)
committerCheng Zhao <zcbenz@gmail.com>
Thu, 31 Jul 2014 06:12:17 +0000 (14:12 +0800)
Atom Shell has been built with VS2013 so we should not ship VS2010's DLLs.

atom.gyp
script/create-dist.py
script/update-external-binaries.py
vendor/third_party/microsoft/msvcp100.dll [deleted file]
vendor/third_party/microsoft/msvcr100.dll [deleted file]

index c263e42a5b746b7e1676c05142fcead42dc41ec4..07f857b80bffdf3c611dc095d4aaec74681fb2f8 100644 (file)
--- a/atom.gyp
+++ b/atom.gyp
                 '<(libchromiumcontent_resources_dir)/ui_resources_200_percent.pak',
                 '<(libchromiumcontent_resources_dir)/webkit_resources_200_percent.pak',
                 'external_binaries/d3dcompiler_43.dll',
+                'external_binaries/msvcp120.dll',
+                'external_binaries/msvcr120.dll',
+                'external_binaries/vccorlib120.dll',
                 'external_binaries/xinput1_3.dll',
-                'vendor/third_party/microsoft/msvcp100.dll',
-                'vendor/third_party/microsoft/msvcr100.dll',
               ],
             },
             {
index b1cfc28796b12f71ea2562bd871625d6befbc84a..2a91fd927b6d9f5c052e146498aae95587c7f0da 100755 (executable)
@@ -36,12 +36,15 @@ TARGET_BINARIES = {
     'atom.exe',
     'chromiumcontent.dll',
     'content_shell.pak',
+    'd3dcompiler_43.dll',
     'ffmpegsumo.dll',
     'icudtl.dat',
     'libEGL.dll',
     'libGLESv2.dll',
-    'd3dcompiler_43.dll',
+    'msvcp120.dll',
+    'msvcr120.dll',
     'ui_resources_200_percent.pak',
+    'vccorlib120.dll',
     'webkit_resources_200_percent.pak',
     'xinput1_3.dll',
   ],
index 5d8014f55c136cd0fb418f73ec7e9f3dcbb28f9d..8b7c15bbd36671e0cba193e3cc4a62b1ff2c38e9 100755 (executable)
@@ -4,10 +4,10 @@ import errno
 import sys
 import os
 
-from lib.util import safe_mkdir, extract_zip, tempdir, download
+from lib.util import safe_mkdir, rm_rf, extract_zip, tempdir, download
 
 
-VERSION = 'v0.0.3'
+VERSION = 'v0.1.0'
 SOURCE_ROOT = os.path.abspath(os.path.dirname(os.path.dirname(__file__)))
 FRAMEWORKS_URL = 'https://github.com/atom/atom-shell-frameworks/releases' \
                  '/download/' + VERSION
@@ -17,10 +17,12 @@ def main():
   os.chdir(SOURCE_ROOT)
   version_file = os.path.join(SOURCE_ROOT, 'external_binaries', '.version')
 
-  safe_mkdir('external_binaries')
   if (is_updated(version_file, VERSION)):
     return
 
+  rm_rf('external_binaries')
+  safe_mkdir('external_binaries')
+
   with open(version_file, 'w') as f:
     f.write(VERSION)
 
@@ -30,6 +32,7 @@ def main():
     download_and_unzip('Squirrel')
   elif sys.platform in ['cygwin', 'win32']:
     download_and_unzip('directxsdk')
+    download_and_unzip('vs2012_crt')
 
 
 def is_updated(version_file, version):
diff --git a/vendor/third_party/microsoft/msvcp100.dll b/vendor/third_party/microsoft/msvcp100.dll
deleted file mode 100644 (file)
index 0285593..0000000
Binary files a/vendor/third_party/microsoft/msvcp100.dll and /dev/null differ
diff --git a/vendor/third_party/microsoft/msvcr100.dll b/vendor/third_party/microsoft/msvcr100.dll
deleted file mode 100644 (file)
index 6d6af7e..0000000
Binary files a/vendor/third_party/microsoft/msvcr100.dll and /dev/null differ