Migrate updater LAN and devkit features from old repo

This commit is contained in:
lenn
2026-04-27 16:37:40 +08:00
parent b33c952eb6
commit 26533f6916
29 changed files with 5207 additions and 55 deletions

View File

@@ -1,3 +1,11 @@
fn main() {
if std::env::var("CARGO_FEATURE_DEVKIT").is_ok() {
let protoc = protoc_bin_vendored::protoc_bin_path()
.unwrap_or_else(|error| panic!("Failed to resolve bundled protoc: {error}"));
std::env::set_var("PROTOC", protoc);
tonic_build::compile_protos("proto/sensor_stream.proto")
.unwrap_or_else(|error| panic!("Failed to compile devkit proto: {error}"));
}
tauri_build::build()
}