|
|
@@ -12,12 +12,16 @@ 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()
|
|
|
+
|
|
|
+ if (process.platform.match(/^win/)) {
|
|
|
+ config.arch = process.env.hasOwnProperty('ProgramFiles(x86)') ? 'x64' : 'x86';
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
- config.arch = grunt.option('arch') || os.arch();
|
|
|
-
|
|
|
config.phjs = grunt.option('phjsToRelease');
|
|
|
|
|
|
config.pkg.version = grunt.option('pkgVer') || config.pkg.version;
|