46 lines
1.1 KiB
TOML
Raw Normal View History

2021-11-06 20:35:04 +08:00
[tasks.flowy_dev]
run_task = { name = ["install_targets","install_diesel", "install_protobuf", "install_tools", "install_flutter"] }
[tasks.install_diesel]
2021-09-05 13:50:23 +08:00
script = """
brew install sqlite3
cargo install diesel_cli --no-default-features --features sqlite
"""
2021-11-06 20:35:04 +08:00
[tasks.install_targets]
2021-09-05 13:50:23 +08:00
script = """
2021-11-06 20:35:04 +08:00
rustup target add x86_64-apple-ios
rustup target add x86_64-apple-darwin
rustup target add aarch64-apple-ios
rustup target add aarch64-apple-darwin
2021-09-05 13:50:23 +08:00
"""
2021-11-06 20:35:04 +08:00
[tasks.install_protobuf]
2021-09-05 13:50:23 +08:00
script = """
2021-11-06 20:35:04 +08:00
brew install protobuf@3.13
#brew tap dart-lang/dart
#brew install dart
#https://pub.dev/packages/protoc_plugin
pub global activate protoc_plugin
cargo install --version 2.20.0 protobuf-codegen
2021-09-05 13:50:23 +08:00
"""
[tasks.install_tools]
script = """
rustup component add rustfmt
cargo install cargo-expand
cargo install cargo-watch
cargo install cargo-cache
cargo install bunyan
2021-11-06 20:35:04 +08:00
"""
2021-09-05 13:50:23 +08:00
2021-11-06 20:35:04 +08:00
[tasks.install_flutter]
script = """
echo "[❤️] Follow the https://flutter.dev/docs/get-started/install instructions to install the flutter, skip if you already installed."
echo "Switch to dev channel with command: flutter channel dev"
2021-09-05 13:50:23 +08:00
"""
2021-11-06 20:35:04 +08:00