Skip to content

Commit 42938de

Browse files
zcbenzalexeykuzmin
authored andcommitted
Build with Visual Studio 2017
1 parent e6d38cb commit 42938de

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

docs/development/build-instructions-windows.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ Follow the guidelines below for building Electron on Windows.
55
## Prerequisites
66

77
* Windows 7 / Server 2008 R2 or higher
8-
* Visual Studio 2015 Update 3 - [download VS 2015 Community Edition for
9-
free](https://www.visualstudio.com/vs/older-downloads/)
8+
* Visual Studio 2017 Update 3 - [download VS 2017 Community Edition for
9+
free](https://www.visualstudio.com/vs/)
1010
* [Python 2.7](http://www.python.org/download/releases/2.7/)
1111
* [Node.js](https://nodejs.org/download/)
1212
* [Git](http://git-scm.com)

script/lib/env_util.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,9 @@ def get_vs_env(vs_version, arch):
6363
"""
6464
Returns the env object for VS building environment.
6565
66-
The vs_version can be strings like "12.0" (e.g. VS2013), the arch has to
66+
The vs_version can be strings like "2017", the arch has to
6767
be one of "x86", "amd64", "arm", "x86_amd64", "x86_arm", "amd64_x86",
6868
"amd64_arm", e.g. the args passed to vcvarsall.bat.
6969
"""
70-
vsvarsall = "C:\\Program Files (x86)\\Microsoft Visual Studio {0}\\VC\\vcvarsall.bat".format(vs_version)
70+
vsvarsall = "C:\\Program Files (x86)\\Microsoft Visual Studio\\{0}\\Community\\VC\\Auxiliary\\Build\\vcvarsall.bat".format(vs_version)
7171
return get_environment_from_batch_command([vsvarsall, arch])

script/lib/util.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ def import_vs_env(target_arch):
246246
vs_arch = 'amd64_x86'
247247
else:
248248
vs_arch = 'x86_amd64'
249-
env = get_vs_env('14.0', vs_arch)
249+
env = get_vs_env('2017', vs_arch)
250250
os.environ.update(env)
251251

252252

script/update.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ def run_gyp(target_arch, component):
6161
if PLATFORM == 'linux' and target_arch != get_host_arch():
6262
env['GYP_CROSSCOMPILE'] = '1'
6363
elif PLATFORM == 'win32':
64-
env['GYP_MSVS_VERSION'] = '2015'
64+
env['GYP_MSVS_VERSION'] = '2017'
6565
python = sys.executable
6666
if sys.platform == 'cygwin':
6767
# Force using win32 python on cygwin.

0 commit comments

Comments
 (0)