build.rs 476 B

12345678910111213141516
  1. // Copyright 2019-2023 Tauri Programme within The Commons Conservancy
  2. // SPDX-License-Identifier: Apache-2.0
  3. // SPDX-License-Identifier: MIT
  4. fn main() {
  5. tauri_build::try_build(
  6. tauri_build::Attributes::new().capability(include_str!("./capabilities/allow-commands.json")),
  7. )
  8. .expect("failed to run tauri-build");
  9. let mut codegen = tauri_build::CodegenContext::new();
  10. if !cfg!(feature = "custom-protocol") {
  11. codegen = codegen.dev();
  12. }
  13. codegen.build();
  14. }