Browse Source

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

Tensor-Programming 5 năm trước cách đây
mục cha
commit
95808a5d53
1 tập tin đã thay đổi với 5 bổ sung0 xóa
  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]