浏览代码

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

Tensor-Programming 5 年之前
父节点
当前提交
95808a5d53
共有 1 个文件被更改,包括 5 次插入0 次删除
  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]