fix: modify permissions of all files to read (#18214)

`react-native-reanimated` generates write protected files during build time which are problematic because we copy over `node_modules` from `nix` store and when replacing them with new node modules we are manually asked to confirm this overwrite.

This used to happen before with `.cxx` files but now it also happens with `.so` files. 

This commit fixes those permissions.

partially fixes #18211
This commit is contained in:
Siddarth Kumar 2023-12-18 14:38:34 +05:30 committed by GitHub
parent d9a242fcab
commit 8d0bb7ba9e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -46,7 +46,7 @@ copyNodeModules() {
# WARNING: We can't de-reference .bin symlinks # WARNING: We can't de-reference .bin symlinks
cp -Rf ${src}/node_modules/.bin/. "${tmp}/.bin/" cp -Rf ${src}/node_modules/.bin/. "${tmp}/.bin/"
# Cmake called by react-native-reanimated 3.3.0 during build creates read-only temporary files. # Cmake called by react-native-reanimated 3.3.0 during build creates read-only temporary files.
chmod -R u+w node_modules/react-native-reanimated/android/.cxx -f || true chmod -R u+w node_modules/react-native-reanimated/android/ -f || true
rm -r "${dst}" rm -r "${dst}"
mv -f "${tmp}" "${dst}" mv -f "${tmp}" "${dst}"
} }