File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 1
1
/* jshint node:true */
2
2
'use strict' ;
3
3
module . exports = function ( grunt ) {
4
-
5
4
var os = require ( 'os' ) ;
6
5
var config = {
7
6
pkg : grunt . file . readJSON ( 'package.json' ) ,
@@ -13,6 +12,10 @@ module.exports = function (grunt) {
13
12
platform : process . platform . replace ( 'win32' , 'windows' ) ,
14
13
} ;
15
14
15
+ if ( process . platform . match ( / ^ w i n / ) ) {
16
+ config . arch = process . env . hasOwnProperty ( 'ProgramFiles(x86)' ) ? 'x64' : 'x86' ;
17
+ }
18
+
16
19
config . pkg . version = grunt . option ( 'pkgVer' ) || config . pkg . version ;
17
20
18
21
// load plugins
@@ -35,7 +38,6 @@ module.exports = function (grunt) {
35
38
36
39
// Merge that object with what with whatever we have here
37
40
loadConfig ( config , './tasks/options/' ) ;
38
-
39
41
// pass the config to grunt
40
42
grunt . initConfig ( config ) ;
41
43
} ;
You can’t perform that action at this time.
0 commit comments