소스 검색

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]