Remove chmod to make Flutter framework headers unwritable (#45189)
This commit is contained in:
@@ -142,14 +142,10 @@ BuildApp() {
|
||||
mkdir "${derived_dir}/engine"
|
||||
RunCommand cp -r -- "${flutter_podspec}" "${derived_dir}/engine"
|
||||
RunCommand cp -r -- "${flutter_framework}" "${derived_dir}/engine"
|
||||
# Make headers, plists, and modulemap files read-only to discourage editing.
|
||||
RunCommand find "${derived_dir}/engine/Flutter.framework" -type f \( -name '*.h' -o -name '*.modulemap' -o -name '*.plist' \) -exec chmod a-w "{}" \;
|
||||
else
|
||||
RunCommand rm -rf -- "${derived_dir}/Flutter.framework"
|
||||
RunCommand cp -- "${flutter_podspec}" "${derived_dir}"
|
||||
RunCommand cp -r -- "${flutter_framework}" "${derived_dir}"
|
||||
# Make headers, plists, and modulemap files read-only to discourage editing.
|
||||
RunCommand find "${derived_dir}/Flutter.framework" -type f \( -name '*.h' -o -name '*.modulemap' -o -name '*.plist' \) -exec chmod a-w "{}" \;
|
||||
fi
|
||||
|
||||
RunCommand pushd "${project_path}" > /dev/null
|
||||
|
||||
Reference in New Issue
Block a user