build.rs 329 B

123456789101112
  1. // Copyright 2019-2022 Tauri Programme within The Commons Conservancy
  2. // SPDX-License-Identifier: Apache-2.0
  3. // SPDX-License-Identifier: MIT
  4. fn main() {
  5. let mut codegen = tauri_build::CodegenContext::new();
  6. if !cfg!(feature = "custom-protocol") {
  7. codegen = codegen.dev();
  8. }
  9. codegen.build();
  10. tauri_build::build()
  11. }