mirror of
https://github.com/zed-industries/zed.git
synced 2024-11-08 07:35:01 +03:00
7d5425e142
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
20 lines
465 B
Bash
Executable File
20 lines
465 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
export RUST_ANALYZER_URL="https://github.com/rust-analyzer/rust-analyzer/releases/download/2021-10-18/"
|
|
|
|
function download {
|
|
local filename="rust-analyzer-$1"
|
|
curl -L $RUST_ANALYZER_URL/$filename.gz | gunzip > vendor/bin/$filename
|
|
chmod +x vendor/bin/$filename
|
|
}
|
|
|
|
mkdir -p vendor/bin
|
|
download "x86_64-apple-darwin"
|
|
download "aarch64-apple-darwin"
|
|
|
|
cd vendor/bin
|
|
lipo -create rust-analyzer-* -output rust-analyzer
|
|
rm rust-analyzer-*
|