Set derived dir Flutter.framework directory readonly (#8748)

Provides a strong hint to developers that editing Flutter framework
headers isn't supported.
This commit is contained in:
Chris Bracken 2017-03-13 15:26:35 -07:00 committed by GitHub
parent 0edc4d2a76
commit cb2b89c389

View File

@ -60,10 +60,12 @@ 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 pushd "${project_path}" > /dev/null
AssertExists "${target_path}"