-
Notifications
You must be signed in to change notification settings - Fork 635
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1fcde97
commit 61969f6
Showing
1 changed file
with
5 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
||
|