[flutter]: update flowy_env script

This commit is contained in:
annie 2021-11-06 23:27:30 +08:00
parent a86ba8f448
commit 6130735bab
6 changed files with 25 additions and 15 deletions

View File

@ -1,9 +1,12 @@
.PHONY: flowy_dev install_cargo_make
flowy_dev: install_rust
flowy_dev: install_cargo_make
cargo make flowy_dev
install_cargo_make:
cargo install --force cargo-make
install_rust:
#https://rust-lang.github.io/rustup/installation/other.html
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

View File

@ -3,6 +3,7 @@ extend = [
{ path = "scripts/makefile/protobuf.toml" },
{ path = "scripts/makefile/tests.toml" },
{ path = "scripts/makefile/docker.toml" },
{ path = "scripts/makefile/env.toml" },
{ path = "scripts/makefile/flutter.toml" },
]

View File

@ -366,10 +366,12 @@ packages:
flutter_quill:
dependency: "direct main"
description:
path: "packages/flutter-quill"
relative: true
source: path
version: "2.0.11"
path: "."
ref: develop
resolved-ref: "8a4c23dcdbb8c38d49b7dea42575231877b1e56d"
url: "git@github.com:appflowy/flutter-quill.git"
source: git
version: "2.0.13"
flutter_svg:
dependency: "direct main"
description:

View File

@ -40,10 +40,10 @@ dependencies:
flowy_log:
path: packages/flowy_log
flutter_quill:
path: packages/flutter-quill
# git:
# url: git@github.com:appflowy/flutter-quill.git
# ref: develop
# path: packages/flutter-quill
git:
url: git@github.com:appflowy/flutter-quill.git
ref: develop
# third party packages
time: '>=2.0.0'

View File

@ -7,11 +7,11 @@ edition = "2018"
[lib]
name = "dart_ffi"
# this value will change depending on the target os
# for iOS it would be `rlib`
# for Macos it would be `rlib`
# for iOS it would be `cdylib`
# for Macos it would be `cdylib`
# for android it would be `c-dylib`
# default rlib
crate-type = ["rlib"]
# default cdylib
crate-type = ["cdylib"]
[dependencies]

View File

@ -18,11 +18,15 @@ rustup target add aarch64-apple-darwin
[tasks.install_protobuf]
script = """
brew install protobuf@3.13
# Custom dart:
#brew tap dart-lang/dart
#brew install dart
#pub global activate protoc_plugin
#https://pub.dev/packages/protoc_plugin
pub global activate protoc_plugin
dart pub global activate protoc_plugin
cargo install --version 2.20.0 protobuf-codegen
"""