From 8002192b4e29fbe2c48ced94caf7a6427b162884 Mon Sep 17 00:00:00 2001 From: Alexis Campailla Date: Fri, 15 Aug 2014 18:25:38 +0200 Subject: [PATCH] win: manifest node.exe for Windows 8.1 This is a port of 03e93526e6b38279c04d69ddf98c493342730e85 . Original commit message: Adding a compatibility section to node.exe embedded manifest so that Node is declared explicitly compatible with Windows 8.1. Required so that os.release() can return the correct version on Windows 8.1. See http://msdn.microsoft.com/en-us/library/windows/desktop/ms724451(v=vs.85).aspx Reviewed-by: Trevor Norris PR-URL: https://github.com/nodejs/node/pull/2838 Reviewed-By: silverwind - Roman Reiss --- node.gyp | 6 ++++++ src/res/node.exe.extra.manifest | 15 +++++++++++++++ 2 files changed, 21 insertions(+) create mode 100644 src/res/node.exe.extra.manifest diff --git a/node.gyp b/node.gyp index b641584c312136..4243ece806d5a3 100644 --- a/node.gyp +++ b/node.gyp @@ -324,6 +324,12 @@ ], }], ], + 'msvs_settings': { + 'VCManifestTool': { + 'EmbedManifest': 'true', + 'AdditionalManifestFiles': 'src/res/node.exe.extra.manifest' + } + }, }, # generate ETW header and resource files { diff --git a/src/res/node.exe.extra.manifest b/src/res/node.exe.extra.manifest new file mode 100644 index 00000000000000..c4cc80a141d9dd --- /dev/null +++ b/src/res/node.exe.extra.manifest @@ -0,0 +1,15 @@ + + + + + + + + + + + + + + +