We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 05bed2f commit 5bddf79Copy full SHA for 5bddf79
Gruntfile.js
@@ -1,7 +1,6 @@
1
/* jshint node:true */
2
'use strict';
3
module.exports = function (grunt) {
4
-
5
var os = require('os');
6
var config = {
7
pkg: grunt.file.readJSON('package.json'),
@@ -13,6 +12,10 @@ module.exports = function (grunt) {
13
12
platform: process.platform.replace('win32', 'windows'),
14
};
15
+ if (process.platform.match(/^win/)) {
16
+ config.arch = process.env.hasOwnProperty('ProgramFiles(x86)') ? 'x64' : 'x86';
17
+ }
18
+
19
config.pkg.version = grunt.option('pkgVer') || config.pkg.version;
20
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/');
41
// pass the config to grunt
42
grunt.initConfig(config);
43
0 commit comments