env.toml 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  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_cocoapods]
  35. script = """
  36. # execute "xcode-select --install" before if "extconf.rb failed" error occurs
  37. sudo gem install cocoapods
  38. """
  39. [tasks.install_rbenv]
  40. script = """
  41. brew install rbenv
  42. rbenv init
  43. rbenv install 2.7.1
  44. rbenv global 2.7.1
  45. # https://github.com/rbenv/rbenv
  46. curl -fsSL https://github.com/rbenv/rbenv-installer/raw/main/bin/rbenv-doctor | bash
  47. """
  48. [tasks.install_fish]
  49. script = """
  50. brew install fish
  51. # https://stackoverflow.com/questions/26208231/modifying-path-with-fish-shell
  52. # Export the PATH using the command:
  53. # set -Ua fish_user_paths the_path_you_want_to_export
  54. """
  55. [tasks.install_flutter]
  56. script = """
  57. echo "[❤️] Follow the https://flutter.dev/docs/get-started/install instructions to install the flutter, skip if you already installed."
  58. echo "Switch to dev channel with command: flutter channel dev"
  59. """