Browse Source

append windows phantomjs with .exe (#7065)

Ryan McKinley 9 năm trước cách đây
mục cha
commit
a656d01bf5
1 tập tin đã thay đổi với 4 bổ sung0 xóa
  1. 4 0
      tasks/options/phantomjs.js

+ 4 - 0
tasks/options/phantomjs.js

@@ -6,6 +6,10 @@ module.exports = function(config,grunt) {
     var dest = './vendor/phantomjs/phantomjs';
     var confDir = './node_modules/phantomjs-prebuilt/lib/';
 
+    if (process.platform === "win32") {
+      dest += ".exe";
+    }
+
     src = config.phjs
 
     if (!src){