From 13b3172a039c8d5efb4530115b0b393c9f14a5b8 Mon Sep 17 00:00:00 2001 From: Axel Isouard Date: Tue, 28 Mar 2017 20:04:39 +0200 Subject: [PATCH] Set the package platform to win instead of win32 --- scripts/fetch.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/fetch.js b/scripts/fetch.js index d2c28c6..7298ed4 100644 --- a/scripts/fetch.js +++ b/scripts/fetch.js @@ -44,7 +44,8 @@ function fetchModule() { function fetchLibWebRTC() { const url = process.env.npm_package_libwebrtc_url; const version = process.env.npm_package_libwebrtc_version; - const platform = process.platform === 'darwin' ? 'mac' : process.platform; + const platform = process.platform === 'darwin' ? 'mac' : + (process.platform === 'win32' ? 'win' : process.platform); const fileName = `libwebrtc-${version}-${platform}-${process.arch}`; const suffix = process.platform === 'win32' ? '.zip' : '.tar.gz';