当前仓库属于关闭状态,部分功能使用受限,详情请查阅 仓库状态说明
37 Star 179 Fork 209

OpenHarmony-SIG/flutter_engine
关闭

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
.github
assets
attachment
benchmarking
build
ci
common
display_list
docs
examples
flow
flutter_frontend_server
flutter_vma
fml
impeller
lib
runtime
shell
sky
testing
third_party
tools
android_lint
android_sdk
androidx
api_check
cipd/android_embedding_bundle
clang_tidy
const_finder
font-subset
fuchsia
gen_web_locale_keymap
githooks
javadoc
licenses
luci
path_ops
activate_emsdk.py
analysis_options.yaml
android_illegal_imports.py
clone_flutter.sh
configure_framework_commit.sh
dia_dll.py
download_fuchsia_sdk.py
engine_roll_pr_desc.sh
executable_action.gni
gen_android_buildconfig.py
gen_locale.dart
gen_objcdoc.sh
gn
gn.bat
gn_test.py
pub_get_offline.py
yapf.sh
vulkan
wasm
web_sdk
.ci.yaml
.clang-format
.clang-tidy
.gitattributes
.gitignore
.pylintrc
.style.yapf
AUTHORS
BUILD.gn
COMMITTERS.md
CONTRIBUTING.md
DEPS
Doxyfile
LICENSE
OAT.xml
README.OpenSource
README.en.md
README.md
analysis_options.yaml
克隆/下载
configure_framework_commit.sh 1.77 KB
一键复制 编辑 原始数据 按行查看 历史
#!/bin/bash
set -e
set -x
if [[ -z $ENGINE_PATH ]]
then
echo "Please set ENGINE_PATH environment variable."
exit 1
fi
# Go to the engine git repo to get the date of the latest commit.
cd $ENGINE_PATH/src/flutter
ENGINE_COMMIT=`git rev-parse HEAD`
echo "Using engine commit: $ENGINE_COMMIT"
if [[ -z $FLUTTER_CLONE_REPO_PATH ]]
then
echo "Please set FLUTTER_CLONE_REPO_PATH environment variable."
exit 1
else
cd $FLUTTER_CLONE_REPO_PATH
fi
if [[ $GIT_BRANCH =~ ^flutter-.*-candidate.*$ ]]
then
# Coming from presubmit and assuming the correct branch has been already checked out.
COMMIT_NO=`git rev-parse HEAD`
else
# Try to get release branch from the checkout.
RELEASE_BRANCH=`git branch -a --contains $ENGINE_COMMIT | grep 'flutter-.*-candidate.*' || true`
if [[ -z $RELEASE_BRANCH ]]
then
# If this is not a release branch commit get latest commit's time for the engine repo.
# Use date based on local time otherwise timezones might get mixed.
LATEST_COMMIT_TIME_ENGINE=`git log -1 --date=local --format="%cd"`
echo "Latest commit time on engine found as $LATEST_COMMIT_TIME_ENGINE"
# Get the time of the youngest commit older than engine commit.
# Git log uses commit date not the author date.
# Before makes the comparison considering the timezone as well.
COMMIT_NO=`git log --before="$LATEST_COMMIT_TIME_ENGINE" -n 1 | grep commit | cut -d ' ' -f2`
else
COMMIT_NO=`git rev-parse $RELEASE_BRANCH`
git checkout $RELEASE_BRANCH
fi
fi
echo "Using the flutter/flutter commit $COMMIT_NO";
git reset --hard $COMMIT_NO
# Write the commit number to a file. This file will be read by the LUCI recipe.
echo "$COMMIT_NO" >> flutter_ref.txt
# Print out the flutter version for troubleshooting
$FLUTTER_CLONE_REPO_PATH/bin/flutter --version -v
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/openharmony-sig/flutter_engine.git
git@gitee.com:openharmony-sig/flutter_engine.git
openharmony-sig
flutter_engine
flutter_engine
3.7.12-ohos-1.0.3

搜索帮助