build.rs 488 B

1234567891011121314151617
  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()
  7. .capability_json(include_str!("./capabilities/allow-commands.json")),
  8. )
  9. .expect("failed to run tauri-build");
  10. let mut codegen = tauri_build::CodegenContext::new();
  11. if !cfg!(feature = "custom-protocol") {
  12. codegen = codegen.dev();
  13. }
  14. codegen.build();
  15. }