Skip to content

Instantly share code, notes, and snippets.

@garvankeeley
Created August 20, 2020 21:24
Show Gist options
  • Save garvankeeley/fbf988788d603412bf300c488112609e to your computer and use it in GitHub Desktop.
Save garvankeeley/fbf988788d603412bf300c488112609e to your computer and use it in GitHub Desktop.
RUSTUP_PLATFORM=x86_64-apple-darwin
RUSTUP_VERSION=1.18.3
RUSTUP_SHA256=16734a9a2d87a3054bd4eea962642687e50a34b6e73e17df6f3361c2c534dc30
curl -sfSL --retry 5 --retry-delay 10 -O "https://static.rust-lang.org/rustup/archive/${RUSTUP_VERSION}/${RUSTUP_PLATFORM}/rustup-init"
echo "${RUSTUP_SHA256} *rustup-init" | shasum -a 256 -c -
chmod +x rustup-init
./rustup-init -y --no-modify-path
rm rustup-init
echo 'export PATH="$HOME/.cargo/bin:$PATH"' >> $BASH_ENV
echo 'export PATH="$HOME/.cargo/bin:$PATH"' >> ~/.zshenv
rustup target add aarch64-apple-ios x86_64-apple-ios
brew install swift-protobuf
brew install ninja
pushd .
cd /tmp
git clone https://chromium.googlesource.com/external/gyp.git
cd gyp
easy_install-3.8 --user .
popd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment