tech(build): dont override arch for windows

This commit is contained in:
bergquist 2016-10-17 15:09:35 +02:00
parent 0abc22f272
commit 75a1ff1037

View File

@ -12,11 +12,15 @@ module.exports = function (grunt) {
platform: process.platform.replace('win32', 'windows'),
};
if (process.platform.match(/^win/)) {
config.arch = process.env.hasOwnProperty('ProgramFiles(x86)') ? 'x64' : 'x86';
}
if (grunt.option('arch')) {
config.arch = grunt.option('arch')
} else {
config.arch = os.arch()
config.arch = grunt.option('arch') || os.arch();
if (process.platform.match(/^win/)) {
config.arch = process.env.hasOwnProperty('ProgramFiles(x86)') ? 'x64' : 'x86';
}
}
config.phjs = grunt.option('phjsToRelease');