mirror of
https://github.com/flutter/flutter.git
synced 2025-06-03 00:51:18 +00:00
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:
parent
0edc4d2a76
commit
cb2b89c389
@ -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}"
|
||||||
|
Loading…
Reference in New Issue
Block a user