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

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

Provides a strong hint to developers that editing Flutter framework
headers isn't supported.
parent 0edc4d2a
......@@ -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}"
......
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