Download dirextx sdk dlls.
This commit is contained in:
parent
d5171ab941
commit
8f9e0d8d59
3 changed files with 21 additions and 13 deletions
2
atom.gyp
2
atom.gyp
|
@ -329,6 +329,8 @@
|
||||||
'<(libchromiumcontent_library_dir)/icudt.dll',
|
'<(libchromiumcontent_library_dir)/icudt.dll',
|
||||||
'<(libchromiumcontent_library_dir)/libGLESv2.dll',
|
'<(libchromiumcontent_library_dir)/libGLESv2.dll',
|
||||||
'<(libchromiumcontent_resources_dir)/content_shell.pak',
|
'<(libchromiumcontent_resources_dir)/content_shell.pak',
|
||||||
|
'frameworks/d3dcompiler_43.dll',
|
||||||
|
'frameworks/xinput1_3.dll',
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
|
|
||||||
|
import errno
|
||||||
import sys
|
import sys
|
||||||
import os
|
import os
|
||||||
|
|
||||||
|
@ -8,15 +9,25 @@ from lib.util import safe_mkdir, extract_zip, tempdir, download
|
||||||
|
|
||||||
SOURCE_ROOT = os.path.abspath(os.path.dirname(os.path.dirname(__file__)))
|
SOURCE_ROOT = os.path.abspath(os.path.dirname(os.path.dirname(__file__)))
|
||||||
FRAMEWORKS_URL = 'https://github.com/atom/atom-shell-frameworks/releases' \
|
FRAMEWORKS_URL = 'https://github.com/atom/atom-shell-frameworks/releases' \
|
||||||
'/download/v0.0.2'
|
'/download/v0.0.3'
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
os.chdir(SOURCE_ROOT)
|
os.chdir(SOURCE_ROOT)
|
||||||
safe_mkdir('frameworks')
|
try:
|
||||||
download_and_unzip('Mantle')
|
os.makedirs('frameworks')
|
||||||
download_and_unzip('ReactiveCocoa')
|
except OSError as e:
|
||||||
download_and_unzip('Squirrel')
|
if e.errno != errno.EEXIST:
|
||||||
|
raise
|
||||||
|
else:
|
||||||
|
return
|
||||||
|
|
||||||
|
if sys.platform == 'darwin':
|
||||||
|
download_and_unzip('Mantle')
|
||||||
|
download_and_unzip('ReactiveCocoa')
|
||||||
|
download_and_unzip('Squirrel')
|
||||||
|
elif sys.platform in ['cygwin', 'win32']:
|
||||||
|
download_and_unzip('directxsdk')
|
||||||
|
|
||||||
|
|
||||||
def download_and_unzip(framework):
|
def download_and_unzip(framework):
|
||||||
|
@ -26,11 +37,7 @@ def download_and_unzip(framework):
|
||||||
|
|
||||||
|
|
||||||
def download_framework(framework):
|
def download_framework(framework):
|
||||||
framework_path = os.path.join('frameworks', framework) + '.framework'
|
filename = framework + '.zip'
|
||||||
if os.path.exists(framework_path):
|
|
||||||
return
|
|
||||||
|
|
||||||
filename = framework + '.framework.zip'
|
|
||||||
url = FRAMEWORKS_URL + '/' + filename
|
url = FRAMEWORKS_URL + '/' + filename
|
||||||
download_dir = tempdir(prefix='atom-shell-')
|
download_dir = tempdir(prefix='atom-shell-')
|
||||||
path = os.path.join(download_dir, filename)
|
path = os.path.join(download_dir, filename)
|
||||||
|
|
|
@ -16,9 +16,8 @@ def main():
|
||||||
|
|
||||||
|
|
||||||
def update_frameworks():
|
def update_frameworks():
|
||||||
if sys.platform == 'darwin':
|
uf = os.path.join('script', 'update-frameworks.py')
|
||||||
uf = os.path.join('script', 'update-frameworks.py')
|
subprocess.check_call([sys.executable, uf])
|
||||||
subprocess.check_call([sys.executable, uf])
|
|
||||||
|
|
||||||
|
|
||||||
def update_gyp():
|
def update_gyp():
|
||||||
|
|
Loading…
Reference in a new issue