AppFlowy/scripts/makefile/env.toml

76 lines
1.7 KiB
TOML
Raw Normal View History

2021-11-06 12:35:04 +00:00
[tasks.flowy_dev]
2021-11-09 09:50:32 +00:00
run_task = { name = ["install_targets","install_diesel", "install_protobuf"] }
2021-11-06 12:35:04 +00:00
[tasks.install_diesel]
2021-09-05 05:50:23 +00:00
script = """
brew install sqlite3
cargo install diesel_cli --no-default-features --features sqlite
"""
2021-11-06 12:35:04 +00:00
[tasks.install_targets]
2021-09-05 05:50:23 +00:00
script = """
2021-11-06 12:35:04 +00: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 05:50:23 +00:00
"""
2021-11-06 12:35:04 +00:00
[tasks.install_protobuf]
2021-09-05 05:50:23 +00:00
script = """
2021-11-06 12:35:04 +00:00
brew install protobuf@3.13
2021-11-06 15:27:30 +00:00
# Custom dart:
2021-11-06 12:35:04 +00:00
#brew tap dart-lang/dart
#brew install dart
2021-11-06 15:27:30 +00:00
#pub global activate protoc_plugin
2021-11-06 12:35:04 +00:00
#https://pub.dev/packages/protoc_plugin
2021-11-06 15:27:30 +00:00
dart pub global activate protoc_plugin
2021-11-06 12:35:04 +00:00
cargo install --version 2.20.0 protobuf-codegen
2021-09-05 05:50:23 +00: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 12:35:04 +00:00
"""
2021-09-05 05:50:23 +00:00
2021-11-07 02:34:28 +00:00
[tasks.install_cocoapods]
script = """
# execute "xcode-select --install" before if "extconf.rb failed" error occurs
sudo gem install cocoapods
"""
[tasks.install_rbenv]
script = """
brew install rbenv
rbenv init
rbenv install 2.7.1
rbenv global 2.7.1
# https://github.com/rbenv/rbenv
curl -fsSL https://github.com/rbenv/rbenv-installer/raw/main/bin/rbenv-doctor | bash
"""
[tasks.install_fish]
script = """
brew install fish
# https://stackoverflow.com/questions/26208231/modifying-path-with-fish-shell
# Export the PATH using the command:
# set -Ua fish_user_paths the_path_you_want_to_export
"""
2021-11-06 12:35:04 +00: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 05:50:23 +00:00
"""
2021-11-06 12:35:04 +00:00