- Managed (dev-client) workflow
- eas-cli/2.7.1 darwin-x64 node-v16.15.1
I’m trying to run the bash command for generating the sourcemap
to upload to a self hosted sentry (FYI I’m not using the expo-sentry
). As per Build Lifecycle Hook
- I added following in package.json> scripts
"eas-build-pre-install": "./pre-install",
"eas-build-post-install": "./post-install"
- Added pre-install and post-install file with following content same as in Documentation
#!/bin/bash
# This is a file called "pre-install" in the root of the project
if [[ "$EAS_BUILD_PLATFORM" == "android" ]]; then
echo "Run commands for Android builds here"
elif [[ "$EAS_BUILD_PLATFORM" == "ios" ]]; then
echo "Run commands for iOS builds here"
fi
- I run eas build and got following error
[stderr] /bin/sh: ./scripts/post-install: Permission denied
(getting same for both pre-install and post-install hook. Following screenshot was when I tried just with the post install hook.)