Skip to content

Commit

Permalink
remove -n
Browse files Browse the repository at this point in the history
  • Loading branch information
NigelBreslaw committed Feb 10, 2024
1 parent 3c6e6e1 commit cc8ebca
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 50 deletions.
2 changes: 1 addition & 1 deletion native_gg/ios/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1695,4 +1695,4 @@ SPEC CHECKSUMS:

PODFILE CHECKSUM: df844b7036fc0e3e827120adde6ebcdf91e3fb07

COCOAPODS: 1.14.3
COCOAPODS: 1.15.2
89 changes: 40 additions & 49 deletions native_gg/ios/ci_scripts/ci_post_clone.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,45 +9,38 @@ set -x
arch
node_version=20.11.0

# if [ "$ARCHITECTURE" == "arm64" ]; then
# # For arm64 architecture (Apple Silicon)
# arch=arm64
# else
# # For x86 architecture
# arch=x64
# fi

# # Echo for debugging logs purposes
# echo $HOME
# echo "============> Installing Node <============"

# # Download and install node
# curl "https://nodejs.org/dist/v$node_version/node-v$node_version-darwin-$arch.tar.gz" -o $HOME/Downloads/node.tar.gz
# cd /Volumes/workspace/
# tar -xf "$HOME/Downloads/node.tar.gz"
# NODE_PATH="$PWD/node-v$node_version-darwin-$arch/bin"
# echo $NODE_PATH
# PATH+=":$NODE_PATH"
# export PATH

# # Check node and npm version
# node -v
# npm -v

# # Install cocoapods.
# echo "============> Installing cocoapods <============"
# # Temp hack to work around brew only installing the latest cocoapods version that is broken.
# export HOMEBREW_NO_INSTALL_CLEANUP=TRUE
# export HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK=TRUE


# curl https://raw.githubusercontent.com/Homebrew/homebrew-core/1364b74ebeedb2eab300d62c99e12f2a6f344277/Formula/c/cocoapods.rb > cocoapods.rb
# brew install cocoapods.rb

# # Install yarn
# npm install -g [email protected]
# pnpm -v

if [ "$ARCHITECTURE" == "arm64" ]; then
# For arm64 architecture (Apple Silicon)
arch=arm64
else
# For x86 architecture
arch=x64
fi

# Echo for debugging logs purposes
echo $HOME
echo "============> Installing Node <============"

# Download and install node
curl "https://nodejs.org/dist/v$node_version/node-v$node_version-darwin-$arch.tar.gz" -o $HOME/Downloads/node.tar.gz
cd /Volumes/workspace/
tar -xf "$HOME/Downloads/node.tar.gz"
NODE_PATH="$PWD/node-v$node_version-darwin-$arch/bin"
echo $NODE_PATH
PATH+=":$NODE_PATH"
export PATH

# Check node and npm version
node -v
npm -v

# Install cocoapods.
echo "============> Installing cocoapods <============"
brew install cocoapods

# Install yarn
npm install -g [email protected]
pnpm -v


# move to the react native project.
Expand All @@ -58,16 +51,14 @@ pwd

# Add the .env file
echo "Adding .env file"
echo -n $CLIENT_SECRETS > .env
ls -a
cat .env
echo $CLIENT_SECRETS > .env

# # Install npm dependencies.
# echo "=> Install npm dependencies"
# # Workaround for Xcode Cloud issue https://forums.developer.apple.com/forums/thread/738136
# pnpm install --frozen-lockfile
# Install npm dependencies.
echo "=> Install npm dependencies"
# Workaround for Xcode Cloud issue https://forums.developer.apple.com/forums/thread/738136
pnpm install --frozen-lockfile


# # Install all pod dependencies.
# echo "=> Install pods"
# cd ios && pwd && pod install
# Install all pod dependencies.
echo "=> Install pods"
cd ios && pwd && pod install

0 comments on commit cc8ebca

Please sign in to comment.