mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 01:38:56 -04:00
[build] Add rpm, deb name and path
This commit is contained in:
parent
5b3e178976
commit
6041ff8852
1 changed files with 15 additions and 0 deletions
|
@ -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
|
||||
};
|
||||
});
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue