mirror of
https://github.com/rustdesk/rustdesk.git
synced 2025-05-11 10:26:19 +02:00
Get flutter deps when build
This commit is contained in:
parent
bc7611ae0d
commit
a4ee1bcc38
1 changed files with 11 additions and 0 deletions
11
build.rs
11
build.rs
|
@ -77,6 +77,17 @@ fn install_oboe() {
|
||||||
}
|
}
|
||||||
|
|
||||||
fn gen_flutter_rust_bridge() {
|
fn gen_flutter_rust_bridge() {
|
||||||
|
// Get dependent of flutter
|
||||||
|
println!("cargo:rerun-if-changed=flutter/pubspec.lock");
|
||||||
|
println!("cargo:rerun-if-changed=flutter/pubspec.yaml");
|
||||||
|
if !std::path::Path::new("./flutter/.packages").exists(){
|
||||||
|
std::process::Command::new("flutter")
|
||||||
|
.args(["pub", "get"])
|
||||||
|
.current_dir("./flutter")
|
||||||
|
.output()
|
||||||
|
.expect("failed to execute flutter pub get");
|
||||||
|
};
|
||||||
|
|
||||||
let llvm_path = match std::env::var("LLVM_HOME") {
|
let llvm_path = match std::env::var("LLVM_HOME") {
|
||||||
Ok(path) => Some(vec![path]),
|
Ok(path) => Some(vec![path]),
|
||||||
Err(_) => None,
|
Err(_) => None,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue