diff options
author | João Reis <reis@janeasystems.com> | 2020-02-20 22:35:14 +0300 |
---|---|---|
committer | João Reis <reis@janeasystems.com> | 2020-03-05 06:06:17 +0300 |
commit | cb8898c48feac55ef49b1594d7a4131e827c213e (patch) | |
tree | 3b19ce4ed1f94177d42cff00e8c1d06e5e205108 /src/node_main.cc | |
parent | 67d45fb298158f47974a41d821c25dec26bbd40a (diff) |
win: block running on EOL Windows versions
Windows 7 and Windows Server 2008 R2 EOL was January 14, 2020.
Windows 8 EOL was January 12, 2016.
Windows 2012 (not R2) is still supported and allowed to run. This
clarifies that support is experimental.
PR-URL: https://github.com/nodejs/node/pull/31954
Reviewed-By: Rod Vagg <rod@vagg.org>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: David Carlier <devnexen@gmail.com>
Reviewed-By: Franziska Hinkelmann <franziska.hinkelmann@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Diffstat (limited to 'src/node_main.cc')
-rw-r--r-- | src/node_main.cc | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/node_main.cc b/src/node_main.cc index e92c0df9429..00f3f2a4836 100644 --- a/src/node_main.cc +++ b/src/node_main.cc @@ -28,9 +28,12 @@ #include <WinError.h> int wmain(int argc, wchar_t* wargv[]) { - if (!IsWindows7OrGreater()) { - fprintf(stderr, "This application is only supported on Windows 7, " - "Windows Server 2008 R2, or higher."); + // Windows Server 2012 (not R2) is supported until 10/10/2023, so we allow it + // to run in the experimental support tier. + if (!IsWindows8Point1OrGreater() && + !(IsWindowsServer() && IsWindows8OrGreater())) { + fprintf(stderr, "This application is only supported on Windows 8.1, " + "Windows Server 2012 R2, or higher."); exit(ERROR_EXE_MACHINE_TYPE_MISMATCH); } |