Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use brewfile #14

Merged
merged 6 commits into from
Nov 16, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions Brewfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
brew 'protobuf'
brew 'sqlite3'
brew 'rustup-init'
9 changes: 4 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,10 @@
flowy_dev: install_cargo_make
cargo make 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
3 changes: 0 additions & 3 deletions scripts/makefile/env.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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
"""

Expand All @@ -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
Expand Down