瀏覽代碼

append windows phantomjs with .exe (#7065)

Ryan McKinley 9 年之前
父節點
當前提交
a656d01bf5
共有 1 個文件被更改,包括 4 次插入0 次删除
  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){