From 61969f62b4180880bcf2eafa53931506363b443a Mon Sep 17 00:00:00 2001 From: Derek Date: Fri, 1 Dec 2023 11:30:10 -0500 Subject: [PATCH] working prebuild script --- scripts/eas-build-pre-install.sh | 22 +++++----------------- 1 file changed, 5 insertions(+), 17 deletions(-) diff --git a/scripts/eas-build-pre-install.sh b/scripts/eas-build-pre-install.sh index 087d24df859..254ff975a18 100755 --- a/scripts/eas-build-pre-install.sh +++ b/scripts/eas-build-pre-install.sh @@ -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 git@github.com: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