Commit 30b64e72 authored by Alexander.Trofimov's avatar Alexander.Trofimov

fix build with params

parent df07d534
...@@ -149,15 +149,15 @@ module.exports = function(grunt) { ...@@ -149,15 +149,15 @@ module.exports = function(grunt) {
}); });
var mobileFiles = packageFile['compile']['sdk']['mobile']; var mobileFiles = packageFile['compile']['sdk']['mobile'];
if(mobileFiles){ if(mobileFiles){
srcFiles = mobileFiles.concat(srcFiles); srcFiles = srcFiles.concat(mobileFiles);
} }
} }
if (grunt.option('private')) { if (grunt.option('private')) {
srcFiles.concat(packageFile['compile']['sdk']['private']); srcFiles = srcFiles.concat(packageFile['compile']['sdk']['private']);
} }
if (grunt.option('desktop')) { if (grunt.option('desktop')) {
srcFiles.concat(packageFile['compile']['sdk']['desktop']); srcFiles = srcFiles.concat(packageFile['compile']['sdk']['desktop']);
} }
...@@ -192,7 +192,7 @@ module.exports = function(grunt) { ...@@ -192,7 +192,7 @@ module.exports = function(grunt) {
variables: { variables: {
Version: packageFile['info']['version'], Version: packageFile['info']['version'],
Build: packageFile['info']['build'].toString(), Build: packageFile['info']['build'].toString(),
Rev: packageFile['info']['rev'].toString() Rev: (packageFile['info']['rev'] || 1).toString()
} }
}, },
files: { files: {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment