mirror of
https://github.com/grafana/grafana.git
synced 2025-01-19 13:03:32 -06:00
tech(build): dont override arch for windows
This commit is contained in:
parent
0abc22f272
commit
75a1ff1037
12
Gruntfile.js
12
Gruntfile.js
@ -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');
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user