diff --git a/Brewfile b/Brewfile new file mode 100644 index 000000000000..4120e423f496 --- /dev/null +++ b/Brewfile @@ -0,0 +1,3 @@ +brew 'protobuf' +brew 'sqlite3' +brew 'rustup-init' diff --git a/Makefile b/Makefile index 378df2ad25c4..84ea9d3bb61d 100644 --- a/Makefile +++ b/Makefile @@ -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 \ No newline at end of file + brew bundle + rustup-init -y diff --git a/scripts/makefile/env.toml b/scripts/makefile/env.toml index 8cdd7bb43039..b9e33a6b898c 100644 --- a/scripts/makefile/env.toml +++ b/scripts/makefile/env.toml @@ -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