From 0da7d3401e7070d40d66f4c1397e87add68544e2 Mon Sep 17 00:00:00 2001 From: Vishrut Shah Date: Tue, 12 Jul 2016 14:31:20 -0700 Subject: [PATCH] OS X platform name is darwin. (#1253) --- Tools/gulp/gulp-regenerate-expected.js | 2 +- gulpfile.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Tools/gulp/gulp-regenerate-expected.js b/Tools/gulp/gulp-regenerate-expected.js index 25523c12ce..10b848c1a7 100644 --- a/Tools/gulp/gulp-regenerate-expected.js +++ b/Tools/gulp/gulp-regenerate-expected.js @@ -9,7 +9,7 @@ var PluginError = gutil.PluginError; var isWindows = (process.platform.lastIndexOf('win') === 0); var isLinux= (process.platform.lastIndexOf('linux') === 0); -var isMac = (process.platform.lastIndexOf('mac') === 0); +var isMac = (process.platform.lastIndexOf('darwin') === 0); function GetAutoRestFolder() { if (isWindows) { diff --git a/gulpfile.js b/gulpfile.js index fcfd6a15e6..d2a58793c3 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -24,7 +24,7 @@ const DEFAULT_ASSEMBLY_VERSION = '0.9.0.0'; const MAX_BUFFER = 1024 * 4096; var isWindows = (process.platform.lastIndexOf('win') === 0); var isLinux= (process.platform.lastIndexOf('linux') === 0); -var isMac = (process.platform.lastIndexOf('mac') === 0); +var isMac = (process.platform.lastIndexOf('darwin') === 0); process.env.MSBUILDDISABLENODEREUSE = 1;