mirror of
https://github.com/elastic/kibana.git
synced 2025-04-25 10:23:14 -04:00
The default behavior of the build task is to now apply the -snapshot suffix dynamically rather than us manually hardcoding and managing it within the source code itself. The `--release` flag will drop the -snapshot suffix on a build, which should be used for any release candidate. The default behavior of the build task has also changed to create rpm/deb packages as well. Since we've only confirmed that this works on linux, you can override that behavior by passing `skip-os-packages`. If you do not want to create any zip or tar.gz archives, you can pass `--skip-archives`.
14 lines
417 B
JavaScript
14 lines
417 B
JavaScript
import { execFileSync } from 'child_process';
|
|
|
|
export default (grunt) => {
|
|
grunt.registerTask('_rebuild:extractZips', function () {
|
|
const buildDir = grunt.config.get('buildDir');
|
|
const targetDir = grunt.config.get('target');
|
|
|
|
const zips = grunt.file.expand({ cwd: targetDir }, '*.zip');
|
|
|
|
zips.forEach(zip => {
|
|
execFileSync('unzip', [zip, '-d', buildDir], { cwd: targetDir });
|
|
});
|
|
});
|
|
};
|