env.toml 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. [tasks.flowy_dev]
  2. run_task = { name = ["install_targets","install_diesel", "install_protobuf"] }
  3. [tasks.install_diesel]
  4. script = """
  5. cargo install diesel_cli --no-default-features --features sqlite
  6. """
  7. [tasks.install_targets]
  8. script = """
  9. rustup target add x86_64-apple-ios
  10. rustup target add x86_64-apple-darwin
  11. rustup target add aarch64-apple-ios
  12. rustup target add aarch64-apple-darwin
  13. """
  14. [tasks.install_protobuf]
  15. script = """
  16. # Custom dart:
  17. #brew tap dart-lang/dart
  18. #brew install dart
  19. #pub global activate protoc_plugin
  20. #https://pub.dev/packages/protoc_plugin
  21. dart 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_cocoapods]
  33. script = """
  34. # execute "xcode-select --install" before if "extconf.rb failed" error occurs
  35. sudo gem install cocoapods
  36. """
  37. [tasks.install_rbenv]
  38. script = """
  39. brew install rbenv
  40. rbenv init
  41. rbenv install 2.7.1
  42. rbenv global 2.7.1
  43. # https://github.com/rbenv/rbenv
  44. curl -fsSL https://github.com/rbenv/rbenv-installer/raw/main/bin/rbenv-doctor | bash
  45. """
  46. [tasks.install_fish]
  47. script = """
  48. brew install fish
  49. # https://stackoverflow.com/questions/26208231/modifying-path-with-fish-shell
  50. # Export the PATH using the command:
  51. # set -Ua fish_user_paths the_path_you_want_to_export
  52. """
  53. [tasks.install_flutter]
  54. script = """
  55. echo "[❤️] Follow the https://flutter.dev/docs/get-started/install instructions to install the flutter, skip if you already installed."
  56. echo "Switch to dev channel with command: flutter channel dev"
  57. """