[build] Add rpm, deb name and path

This commit is contained in:
Jonathan Budzenski 2016-03-09 16:45:55 -06:00
parent 5b3e178976
commit 6041ff8852

View file

@ -26,12 +26,27 @@ module.exports = function (grunt) {
let zipName = `${buildName}.zip`;
let zipPath = resolve(rootPath, `target/${zipName}`);
let debName;
let debPath;
let rpmName;
let rpmPath;
if (name.match('linux')) {
let debArch = name.match('x64') ? 'amd64' : 'i386';
debName = `kibana_${version}_${debArch}.deb`;
debPath = resolve(rootPath, `target/${debName}`);
let rpmArch = name.match('x64') ? 'x86_64' : 'i386';
rpmName = `kibana-${version.replace('-', '_')}-1.${rpmArch}.rpm`;
rpmPath = resolve(rootPath, `target/${rpmName}`);
}
return {
name, win,
nodeUrl, nodeDir,
buildName, buildDir,
tarName, tarPath,
zipName, zipPath,
debName, debPath,
rpmName, rpmPath
};
});
};