Sfoglia il codice sorgente

append windows phantomjs with .exe (#7065)

Ryan McKinley 9 anni fa
parent
commit
a656d01bf5
1 ha cambiato i file con 4 aggiunte e 0 eliminazioni
  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 dest = './vendor/phantomjs/phantomjs';
     var confDir = './node_modules/phantomjs-prebuilt/lib/';
     var confDir = './node_modules/phantomjs-prebuilt/lib/';
 
 
+    if (process.platform === "win32") {
+      dest += ".exe";
+    }
+
     src = config.phjs
     src = config.phjs
 
 
     if (!src){
     if (!src){