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: install_cargo_make:
cargo install --force cargo-make cargo install --force cargo-make
brew bundle
install_rust: install_rust:
sudo xcode-select -s /Applications/Xcode.app/Contents/Developer brew bundle
curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain nightly -y rustup-init -y
echo 'export PATH="$$HOME/.cargo/bin:$$PATH"' >> ~/.bash_profile
source ~/.bash_profile

View File

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