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 cb2b89c38.
This commit is contained in:
Chris Bracken 2017-03-14 09:31:31 -07:00 committed by GitHub
parent 9c6ffc8281
commit e22d0e603c

View File

@ -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}"