fix flowy_tool issues

This commit is contained in:
appflowy
2021-11-29 20:07:38 +08:00
parent 180b0cd568
commit f9bfe94a6b
9 changed files with 91 additions and 66 deletions

View File

@ -19,8 +19,7 @@ script_runner = "@duckscript"
script = [
"""
flowy_tool=${CARGO_MAKE_WORKSPACE_WORKING_DIRECTORY}/scripts/flowy-tool/Cargo.toml
rust_source=${CARGO_MAKE_WORKSPACE_WORKING_DIRECTORY}/rust-lib/
# rust_lib=${CARGO_MAKE_WORKSPACE_WORKING_DIRECTORY}/rust-lib
rust_lib=${CARGO_MAKE_WORKSPACE_WORKING_DIRECTORY}/rust-lib/
shared_lib=${CARGO_MAKE_WORKSPACE_WORKING_DIRECTORY}/../shared-lib
flutter_lib=${CARGO_MAKE_WORKSPACE_WORKING_DIRECTORY}/app_flowy/packages
@ -29,7 +28,7 @@ script = [
cargo run \
--manifest-path ${flowy_tool} pb-gen \
--rust_source=${rust_source} \
--rust_sources ${rust_lib},${shared_lib} \
--derive_meta=${derive_meta} \
--flutter_package_lib=${flutter_package_lib}
""",
@ -37,6 +36,7 @@ script = [
script_runner = "@shell"
[tasks.gen_pb_file.windows]
script = [
"""
@ -70,7 +70,7 @@ script = [
cargo run \
--manifest-path ${flowy_tool} dart-event \
--rust_source=${rust_source} \
--rust_sources=${rust_source} \
--output=${output}
""",
]