支持了 html 类型工具

This commit is contained in:
2024-10-12 15:44:16 +08:00
parent e42744d681
commit 7a6f815597
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -67,7 +67,7 @@ func CreateExecFile(w fyne.Window) fyne.CanvasObject {
dialog.ShowInformation("测试失败", "未填写执行命令", w)
return
}
ex := exec.Command(info.Cmd)
ex := exec.Command("cmd", "/c", "start", info.Cmd)
ex.Dir = filepath.Join(chooseDir, info.Pwd)
if err := ex.Start(); err != nil {
dialog.ShowInformation("测试失败", err.Error(), w)
+1 -1
View File
@@ -34,7 +34,7 @@ func runExecFile(data *models.BaseCard, w fyne.Window) {
dialog.ShowInformation("测试失败", err.Error(), w)
return
}
ex := exec.Command(info.Cmd)
ex := exec.Command("cmd", "/c", "start", info.Cmd)
ex.Dir = filepath.Join(cfg.T.CardDir, data.UUID, info.Pwd)
if err := ex.Start(); err != nil {
dialog.ShowInformation("测试失败", err.Error(), w)