浏览代码

fix: startup script blocking

MystiPanda 1 年之前
父节点
当前提交
9d741cdd63
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src-tauri/src/utils/init.rs

+ 1 - 1
src-tauri/src/utils/init.rs

@@ -304,7 +304,7 @@ pub fn startup_script() -> Result<()> {
             shell = "powershell";
         }
         if path.ends_with(".bat") {
-            shell = "cmd";
+            shell = "powershell";
         }
         if shell.is_empty() {
             return Err(anyhow::anyhow!("unsupported script: {path}"));