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:
@@ -60,10 +60,12 @@ BuildApp() {
|
|||||||
RunCommand mkdir -p -- "$derived_dir"
|
RunCommand mkdir -p -- "$derived_dir"
|
||||||
AssertExists "$derived_dir"
|
AssertExists "$derived_dir"
|
||||||
|
|
||||||
|
RunCommand chmod -R ug+w "${derived_dir}/Flutter.framework"
|
||||||
RunCommand rm -rf -- "${derived_dir}/Flutter.framework"
|
RunCommand rm -rf -- "${derived_dir}/Flutter.framework"
|
||||||
RunCommand rm -f -- "${derived_dir}/app.dylib"
|
RunCommand rm -f -- "${derived_dir}/app.dylib"
|
||||||
RunCommand rm -f -- "${derived_dir}/app.flx"
|
RunCommand rm -f -- "${derived_dir}/app.flx"
|
||||||
RunCommand cp -r -- "${framework_path}/Flutter.framework" "${derived_dir}"
|
RunCommand cp -r -- "${framework_path}/Flutter.framework" "${derived_dir}"
|
||||||
|
RunCommand chmod -R ug-w "${derived_dir}/Flutter.framework"
|
||||||
RunCommand pushd "${project_path}" > /dev/null
|
RunCommand pushd "${project_path}" > /dev/null
|
||||||
|
|
||||||
AssertExists "${target_path}"
|
AssertExists "${target_path}"
|
||||||
|
|||||||
Reference in New Issue
Block a user