فهرست منبع

update main.rs

tensor-programming 5 سال پیش
والد
کامیت
627e351165

+ 5 - 0
examples/react/create-react-app/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]

+ 5 - 0
examples/react/gatsby-themed-site/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]

+ 5 - 0
examples/react/next.js/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]

+ 5 - 0
examples/svelte/svelte-app/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]

+ 5 - 0
examples/vanillajs/monolith/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]