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