Explorar o código

add cfg_attr for windows cmd closed on prod (#210)

Tensor-Programming %!s(int64=5) %!d(string=hai) anos
pai
achega
95808a5d53
Modificáronse 1 ficheiros con 5 adicións e 0 borrados
  1. 5 0
      cli/tauri.js/templates/src-tauri/src/main.rs

+ 5 - 0
cli/tauri.js/templates/src-tauri/src/main.rs

@@ -1,3 +1,8 @@
+#![cfg_attr(
+  all(not(debug_assertions), target_os = "windows"),
+  windows_subsystem = "windows"
+)]
+
 mod cmd;
 
 #[macro_use]