1#!/bin/bash 2# Copyright (c) 2022 Huawei Device Co., Ltd. 3# Licensed under the Apache License, Version 2.0 (the "License"); 4# you may not use this file except in compliance with the License. 5# You may obtain a copy of the License at 6# 7# http://www.apache.org/licenses/LICENSE-2.0 8# 9# Unless required by applicable law or agreed to in writing, software 10# distributed under the License is distributed on an "AS IS" BASIS, 11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12# See the License for the specific language governing permissions and 13# limitations under the License. 14 15set -e 16 17# 下载google工具集depot_tools 18 19git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git 20 21# 配置环境变量 22 23export PATH="$PATH:${HOME}/depot_tools" 24 25# 下载代码 26 27fetch --nohooks chromium 28 29cd src 30 31git fetch origin 91.0.4455.0 32 33git checkout -b 91.0.4455.0 FETCH_HEAD 34 35gclient sync --with_branch_heads -D 36 37# 下载依赖 38./build/install-build-deps.sh --no-chromeos-fonts 39./build/install-build-deps-android.sh 40 41gclient runhooks 42 43# 使用Openharmony nweb的patch 44 45# 1.使用针对cef的修改 46git apply ../patch/0001_cef_V4455.patch 47 48# 2.使用针对openharmony编译的修改 49git apply ../patch/0002_build_for_ohos.patch 50 51# 3.使用nweb引擎的修改 52git apply ../patch/0003_ohos_nweb.patch 53 54# 4.chromium cve安全漏洞补丁及nweb bug修复 55git apply ../patch/0004_nweb_cve_bugfix.patch 56 57# 5.2022-3-24-cve安全漏洞补丁 58git apply ../patch/3.1_Release_cve_v8.patch 59 60