mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 09:19:04 -04:00
Fix build_snapshot for Apple silicon laptops (#204951)
## Summary `build_snapshot` was using wrong Gradle task when building ES from source for Apple silicon laptops --------- Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
This commit is contained in:
parent
ff597e3670
commit
d86a966ceb
1 changed files with 6 additions and 1 deletions
|
@ -67,7 +67,12 @@ export async function buildSnapshot({
|
|||
export function archiveForPlatform(platform: NodeJS.Platform, license: string) {
|
||||
switch (platform) {
|
||||
case 'darwin':
|
||||
return { format: 'tar', ext: 'tar.gz', task: 'darwin-tar', platform: 'darwin' };
|
||||
return {
|
||||
format: 'tar',
|
||||
ext: 'tar.gz',
|
||||
task: os.arch() === 'arm64' ? 'darwin-aarch64-tar' : 'darwin-tar',
|
||||
platform: 'darwin',
|
||||
};
|
||||
case 'win32':
|
||||
return { format: 'zip', ext: 'zip', task: 'windows-zip', platform: 'windows' };
|
||||
case 'linux':
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue