env.toml 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. [tasks.flowy_dev]
  2. run_task = { name = ["install_targets","install_diesel", "install_protobuf", "install_tools", "install_flutter"] }
  3. [tasks.install_diesel]
  4. script = """
  5. brew install sqlite3
  6. cargo install diesel_cli --no-default-features --features sqlite
  7. """
  8. [tasks.install_targets]
  9. script = """
  10. rustup target add x86_64-apple-ios
  11. rustup target add x86_64-apple-darwin
  12. rustup target add aarch64-apple-ios
  13. rustup target add aarch64-apple-darwin
  14. """
  15. [tasks.install_protobuf]
  16. script = """
  17. brew install [email protected]
  18. #brew tap dart-lang/dart
  19. #brew install dart
  20. #https://pub.dev/packages/protoc_plugin
  21. pub global activate protoc_plugin
  22. cargo install --version 2.20.0 protobuf-codegen
  23. """
  24. [tasks.install_tools]
  25. script = """
  26. rustup component add rustfmt
  27. cargo install cargo-expand
  28. cargo install cargo-watch
  29. cargo install cargo-cache
  30. cargo install bunyan
  31. """
  32. [tasks.install_flutter]
  33. script = """
  34. echo "[❤️] Follow the https://flutter.dev/docs/get-started/install instructions to install the flutter, skip if you already installed."
  35. echo "Switch to dev channel with command: flutter channel dev"
  36. """