Skip to content

Instantly share code, notes, and snippets.

@hurshagrawal
Created March 20, 2018 21:27
Show Gist options
  • Save hurshagrawal/6b7fb1cf231eb37626912ad170f186c9 to your computer and use it in GitHub Desktop.
Save hurshagrawal/6b7fb1cf231eb37626912ad170f186c9 to your computer and use it in GitHub Desktop.
# First set the path to sentry.properties
export SENTRY_PROPERTIES=sentry.properties
# Setup nvm and set node
[ -z "$NVM_DIR" ] && export NVM_DIR="$HOME/.nvm"
if [[ -s "$HOME/.nvm/nvm.sh" ]]; then
. "$HOME/.nvm/nvm.sh"
elif [[ -x "$(command -v brew)" && -s "$(brew --prefix nvm)/nvm.sh" ]]; then
. "$(brew --prefix nvm)/nvm.sh"
fi
# Set up the nodenv node version manager if present
if [[ -x "$HOME/.nodenv/bin/nodenv" ]]; then
eval "$("$HOME/.nodenv/bin/nodenv" init -)"
fi
[ -z "$NODE_BINARY" ] && export NODE_BINARY="node"
$NODE_BINARY ../node_modules/@sentry/cli/bin/sentry-cli react-native xcode \
../node_modules/react-native/scripts/react-native-xcode.sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment