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:
parent
d9a242fcab
commit
8d0bb7ba9e
|
@ -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}"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue