mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
chore: update the prompt of protoc-gen-dart installation
This commit is contained in:
parent
5c74e1d667
commit
33ff6b2f23
@ -133,10 +133,15 @@ fn check_pb_compiler() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fn check_pb_dart_plugin() {
|
fn check_pb_dart_plugin() {
|
||||||
assert!(
|
if cfg!(target_os = "windows") {
|
||||||
run_command("command -v protoc-gen-dart"),
|
if !run_command("command -v protoc-gen-dart") {
|
||||||
"protoc-gen-dart was not installed correctly"
|
panic!("{}", format!("\n❌ The protoc-gen-dart was not installed correctly."))
|
||||||
);
|
}
|
||||||
|
} else {
|
||||||
|
if !run_command("command -v protoc-gen-dart") {
|
||||||
|
panic!("{}", format!("\n❌ The protoc-gen-dart was not installed correctly. \n✅ You can fix that by adding \"{}\" to your shell's config file.(.bashrc, .bash, etc.)", "dart pub global activate protoc_plugin"))
|
||||||
|
}
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
fn run_command(cmd: &str) -> bool {
|
fn run_command(cmd: &str) -> bool {
|
||||||
|
Loading…
Reference in New Issue
Block a user