env.toml 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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. # Custom dart:
  19. #brew tap dart-lang/dart
  20. #brew install dart
  21. #pub global activate protoc_plugin
  22. #https://pub.dev/packages/protoc_plugin
  23. dart pub global activate protoc_plugin
  24. cargo install --version 2.20.0 protobuf-codegen
  25. """
  26. [tasks.install_tools]
  27. script = """
  28. rustup component add rustfmt
  29. cargo install cargo-expand
  30. cargo install cargo-watch
  31. cargo install cargo-cache
  32. cargo install bunyan
  33. """
  34. [tasks.install_flutter]
  35. script = """
  36. echo "[❤️] Follow the https://flutter.dev/docs/get-started/install instructions to install the flutter, skip if you already installed."
  37. echo "Switch to dev channel with command: flutter channel dev"
  38. """