mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 17:28:26 -04:00
* Update Puppeteer to 8.0.0 Updates Chromium to r856583 Links to new build of Linux headless_shell in the Kibana team GCS bucket Links to main download site of Chromium for Mac and Windows Removes Mac and Windows compatibility from the Chromium build scripts * add functional tests for large dashboard * ensure png comparison is working * add test for large dashboard pdf * update arm64 binary checksum * update README * more readme update * Update x-pack/build_chromium/README.md Co-authored-by: Jean-Louis Leysens <jloleysens@gmail.com> Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com> Co-authored-by: Jean-Louis Leysens <jloleysens@gmail.com>
43 lines
1.6 KiB
Python
43 lines
1.6 KiB
Python
import os, platform, sys
|
|
from os import path
|
|
from build_util import runcmd, mkdir
|
|
|
|
# This is a cross-platform initialization script which should only be run
|
|
# once per environment.
|
|
|
|
# Set to "arm" to build for ARM
|
|
arch_name = sys.argv[1] if len(sys.argv) >= 2 else 'undefined'
|
|
build_path = path.abspath(os.curdir)
|
|
src_path = path.abspath(path.join(build_path, 'chromium', 'src'))
|
|
|
|
if arch_name != 'x64' and arch_name != 'arm64':
|
|
raise Exception('Unexpected architecture: ' + arch_name + '. `x64` and `arm64` are supported.')
|
|
|
|
# Configure git
|
|
print('Configuring git globals...')
|
|
runcmd('git config --global core.autocrlf false')
|
|
runcmd('git config --global core.filemode false')
|
|
runcmd('git config --global branch.autosetuprebase always')
|
|
runcmd('git config --global core.compression 0')
|
|
|
|
# Grab Chromium's custom build tools, if they aren't already installed
|
|
# Put depot_tools on the path so we can properly run the fetch command
|
|
if not path.isdir('depot_tools'):
|
|
print('Installing depot_tools...')
|
|
runcmd('git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git')
|
|
else:
|
|
print('Updating depot_tools...')
|
|
original_dir = os.curdir
|
|
os.chdir(path.join(build_path, 'depot_tools'))
|
|
runcmd('git checkout master')
|
|
runcmd('git pull origin master')
|
|
os.chdir(original_dir)
|
|
|
|
# Fetch the Chromium source code
|
|
chromium_dir = path.join(build_path, 'chromium')
|
|
if not path.isdir(chromium_dir):
|
|
mkdir(chromium_dir)
|
|
os.chdir(chromium_dir)
|
|
runcmd('fetch chromium --nohooks=1 --no-history=1')
|
|
else:
|
|
print('Directory exists: ' + chromium_dir + '. Skipping chromium fetch.')
|