Skip to content

Commit

Permalink
working prebuild script
Browse files Browse the repository at this point in the history
  • Loading branch information
dereknelson committed Dec 1, 2023
1 parent 1fcde97 commit 61969f6
Showing 1 changed file with 5 additions and 17 deletions.
22 changes: 5 additions & 17 deletions scripts/eas-build-pre-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,28 +2,16 @@

echo "PRE INSTALLING"

mkdir -p ~/.ssh

# Real origin URL is lost during the packaging process, so if your
# submodules are defined using relative urls in .gitmodules then
# you need to restore it with:
#
# git remote set-url origin [email protected]:example/repo.git

# restore private key from env variable and generate public key
echo "$SSH_KEY_BASE64" | base64 -d > ~/.ssh/eas_internals
chmod 600 ~/.ssh/eas_internals
ssh-keygen -y -f ~/.ssh/eas_internals > ~/.ssh/eas_internals.pub

# add your git provider to the list of known hosts
ssh-keyscan github.com >> ~/.ssh/known_hosts

if [ -n "$RAINBOW_SCRIPTS_INTERNALS" ]; then
git clone $RAINBOW_SCRIPTS_INTERNALS
git clone https://$RAINBOW_SCRIPTS_TOKEN$RAINBOW_SCRIPTS_INTERNALS
cd rainbow-scripts
git checkout prebuild
cd ..
fi

if [ "$EAS_BUILD_PLATFORM" = "ios" ]; then
eval $RAINBOW_SCRIPTS_APP_IOS_PREBUILD_HOOK > /dev/null 2>&1;
eval $RAINBOW_SCRIPTS_APP_IOS_PREBUILD_HOOK
echo "✅ executed ios prebuild hook"
fi

Expand Down

0 comments on commit 61969f6

Please sign in to comment.