提交 0d17f16c 编写于 作者: C Chinmay Garde

Pass the local-engine flag to both `build aot` and `build flx` to avoid using...

Pass the local-engine flag to both `build aot` and `build flx` to avoid using mismatched gen/sky_snapshot pairs. (#2715)
上级 6ef35837
......@@ -41,17 +41,17 @@ BuildApp() {
RunCommand pushd ${project_path}
local local_engine_flag=""
if [[ -n "$LOCAL_ENGINE" ]]; then
local_engine_flag="--local-engine=$LOCAL_ENGINE"
fi
if [[ $CURRENT_ARCH != "x86_64" ]]; then
local interpreter_flag="--interpreter"
if [[ "$DART_EXPERIMENTAL_INTERPRETER" != "1" ]]; then
interpreter_flag=""
fi
local local_engine_flag=""
if [[ -n "$LOCAL_ENGINE" ]]; then
local_engine_flag="--local-engine=$LOCAL_ENGINE"
fi
RunCommand ${FLUTTER_ROOT}/bin/flutter --suppress-analytics build aot \
--target-platform=ios \
--release \
......@@ -75,6 +75,7 @@ BuildApp() {
RunCommand ${FLUTTER_ROOT}/bin/flutter --suppress-analytics build flx \
--output-file=${derived_dir}/app.flx \
${precompilation_flag} \
${local_engine_flag} \
if [[ $? -ne 0 ]]; then
EchoError "Failed to package $1."
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册