|
@@ -1,43 +1,45 @@
|
|
|
-[tasks.env_setup]
|
|
|
+[tasks.flowy_dev]
|
|
|
+run_task = { name = ["install_targets","install_diesel", "install_protobuf", "install_tools", "install_flutter"] }
|
|
|
+
|
|
|
+[tasks.install_diesel]
|
|
|
script = """
|
|
|
brew install sqlite3
|
|
|
cargo install diesel_cli --no-default-features --features sqlite
|
|
|
"""
|
|
|
|
|
|
-[tasks.install_sqlite3]
|
|
|
+[tasks.install_targets]
|
|
|
script = """
|
|
|
-brew install sqlite3
|
|
|
-cargo install diesel_cli --no-default-features --features sqlite
|
|
|
+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
|
|
|
"""
|
|
|
|
|
|
-[tasks.install_rust]
|
|
|
+[tasks.install_protobuf]
|
|
|
script = """
|
|
|
-echo 'install rust'
|
|
|
-sudo xcode-select -s /Applications/Xcode.app/Contents/Developer
|
|
|
-curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain nightly -y
|
|
|
-echo 'export PATH="$$HOME/.cargo/bin:$$PATH"' >> ~/.bash_profile
|
|
|
-source ~/.bash_profile
|
|
|
+brew install [email protected]
|
|
|
+#brew tap dart-lang/dart
|
|
|
+#brew install dart
|
|
|
+
|
|
|
+#https://pub.dev/packages/protoc_plugin
|
|
|
+pub global activate protoc_plugin
|
|
|
+cargo install --version 2.20.0 protobuf-codegen
|
|
|
"""
|
|
|
|
|
|
[tasks.install_tools]
|
|
|
script = """
|
|
|
-#targets
|
|
|
-rustup target add x86_64-apple-darwin
|
|
|
-
|
|
|
-#tools
|
|
|
-echo 'install tools'
|
|
|
rustup component add rustfmt
|
|
|
cargo install cargo-expand
|
|
|
cargo install cargo-watch
|
|
|
cargo install cargo-cache
|
|
|
cargo install bunyan
|
|
|
+"""
|
|
|
|
|
|
-#protobuf code gen env
|
|
|
-brew install [email protected]
|
|
|
-brew tap dart-lang/dart
|
|
|
-brew install dart
|
|
|
-pub global activate protoc_plugin
|
|
|
-
|
|
|
-cargo install --version 2.20.0 protobuf-codegen
|
|
|
+[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"
|
|
|
"""
|
|
|
|
|
|
+
|
|
|
+
|