Migrate updater LAN and devkit features from old repo
This commit is contained in:
@@ -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()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user