mirror of
https://github.com/UNITRONIX/BetterDesk.git
synced 2026-09-10 01:27:11 +00:00
26038176eb
Introduce the independent Rust + Flutter desktop client with CDAP/RustDesk session support, packaging via build.py, and tag-triggered Windows/Linux release artifacts. Align server CDAP desktop interop (view_only, desktop_end, capabilities), protocol docs, pre-release checklist, version bump rules, and WAN allowlist for /api/health and /api/server/pubkey. Thanks: INSOLVE (Honorary); Marco Jakobs (@jacotec); MyNameisStitch (@MyNameisStitch); Redspin (@playerumpknow)
16 lines
611 B
Rust
16 lines
611 B
Rust
use std::{env, path::PathBuf};
|
|
|
|
fn main() {
|
|
let manifest_dir = PathBuf::from(env::var("CARGO_MANIFEST_DIR").expect("manifest directory"));
|
|
let proto_dir = manifest_dir.join("../betterdesk-server/protos");
|
|
let message = proto_dir.join("message.proto");
|
|
let rendezvous = proto_dir.join("rendezvous.proto");
|
|
|
|
println!("cargo:rerun-if-changed={}", message.display());
|
|
println!("cargo:rerun-if-changed={}", rendezvous.display());
|
|
|
|
prost_build::Config::new()
|
|
.compile_protos(&[message, rendezvous], &[proto_dir])
|
|
.expect("compile BetterDesk interoperability protobufs");
|
|
}
|