Commit e22d0e60 authored by Chris Bracken's avatar Chris Bracken Committed by GitHub

Make only Flutter.framework files read-only (#8766)

Making the directories read-only causes problems with deletion, which
breaks the Mac chrome buildbot and DeviceLab.

Followup patch to cb2b89c3.
parent 9c6ffc82
......@@ -60,12 +60,11 @@ BuildApp() {
RunCommand mkdir -p -- "$derived_dir"
AssertExists "$derived_dir"
RunCommand chmod -R ug+w "${derived_dir}/Flutter.framework"
RunCommand rm -rf -- "${derived_dir}/Flutter.framework"
RunCommand rm -f -- "${derived_dir}/app.dylib"
RunCommand rm -f -- "${derived_dir}/app.flx"
RunCommand cp -r -- "${framework_path}/Flutter.framework" "${derived_dir}"
RunCommand chmod -R ug-w "${derived_dir}/Flutter.framework"
RunCommand find "${derived_dir}/Flutter.framework" -type f -exec chmod a-w "{}" \;
RunCommand pushd "${project_path}" > /dev/null
AssertExists "${target_path}"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment