Merge pull request #14 from stephengroat/patch-1

Use brewfile
This commit is contained in:
AppFlowy.IO 2021-11-16 16:44:09 +08:00 committed by GitHub
commit 796a0a9f41
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 8 deletions

3
Brewfile Normal file
View File

@ -0,0 +1,3 @@
brew 'protobuf'
brew 'sqlite3'
brew 'rustup-init'

View File

@ -5,9 +5,8 @@ flowy_dev: install_cargo_make
install_cargo_make:
cargo install --force cargo-make
brew bundle
install_rust:
sudo xcode-select -s /Applications/Xcode.app/Contents/Developer
curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain nightly -y
echo 'export PATH="$$HOME/.cargo/bin:$$PATH"' >> ~/.bash_profile
source ~/.bash_profile
brew bundle
rustup-init -y

View File

@ -3,7 +3,6 @@ run_task = { name = ["install_targets","install_diesel", "install_protobuf"] }
[tasks.install_diesel]
script = """
brew install sqlite3
cargo install diesel_cli --no-default-features --features sqlite
"""
@ -17,8 +16,6 @@ rustup target add aarch64-apple-darwin
[tasks.install_protobuf]
script = """
brew install protobuf@3.13
# Custom dart:
#brew tap dart-lang/dart
#brew install dart