支持了 html 类型工具
This commit is contained in:
@@ -67,7 +67,7 @@ func CreateExecFile(w fyne.Window) fyne.CanvasObject {
|
|||||||
dialog.ShowInformation("测试失败", "未填写执行命令", w)
|
dialog.ShowInformation("测试失败", "未填写执行命令", w)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
ex := exec.Command(info.Cmd)
|
ex := exec.Command("cmd", "/c", "start", info.Cmd)
|
||||||
ex.Dir = filepath.Join(chooseDir, info.Pwd)
|
ex.Dir = filepath.Join(chooseDir, info.Pwd)
|
||||||
if err := ex.Start(); err != nil {
|
if err := ex.Start(); err != nil {
|
||||||
dialog.ShowInformation("测试失败", err.Error(), w)
|
dialog.ShowInformation("测试失败", err.Error(), w)
|
||||||
|
|||||||
@@ -34,7 +34,7 @@ func runExecFile(data *models.BaseCard, w fyne.Window) {
|
|||||||
dialog.ShowInformation("测试失败", err.Error(), w)
|
dialog.ShowInformation("测试失败", err.Error(), w)
|
||||||
return
|
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)
|
ex.Dir = filepath.Join(cfg.T.CardDir, data.UUID, info.Pwd)
|
||||||
if err := ex.Start(); err != nil {
|
if err := ex.Start(); err != nil {
|
||||||
dialog.ShowInformation("测试失败", err.Error(), w)
|
dialog.ShowInformation("测试失败", err.Error(), w)
|
||||||
|
|||||||
Reference in New Issue
Block a user