diff --git a/README.md b/README.md index 21ca562..38448ef 100644 --- a/README.md +++ b/README.md @@ -50,6 +50,9 @@ - ***支持多平台,Windows、Linux、MacOS*** - ***完善的应用商店体系,简单学习一下[应用商店配置](./docs/Store.md)即可开发出复杂的应用*** +## 🚀 演示视频 +- [全程操作](https://www.bilibili.com/video/BV1NdvaeEEz3/?vd_source=739e0e59aeefdb2e9f760e5037d00245) + ## 🚧 开发进程 - 2024年8月1日,发布v1.0.0版本,发布后,项目进入第二阶段。 diff --git a/godo/store/port.go b/godo/store/port.go index 82925c0..7da9aae 100644 --- a/godo/store/port.go +++ b/godo/store/port.go @@ -40,6 +40,8 @@ func listAllProcesses() ([]ProcessSystemInfo, error) { cmd = exec.Command("lsof", "-i", "-n", "-P") case "windows": cmd = exec.Command("netstat", "-ano") + cmd = SetHideConsoleCursor(cmd) + default: return nil, fmt.Errorf("unsupported operating system") } @@ -122,6 +124,7 @@ func getProcessName(osType string, pid int) (string, error) { cmd = exec.Command("ps", "-p", strconv.Itoa(pid), "-o", "comm=") case "windows": cmd = exec.Command("tasklist", "/FI", fmt.Sprintf("PID eq %d", pid), "/NH") + cmd = SetHideConsoleCursor(cmd) default: return "", fmt.Errorf("unsupported operating system") } @@ -156,6 +159,7 @@ func killProcessByName(name string) error { cmd = exec.Command("pkill", name) case "windows": cmd = exec.Command("taskkill", "/IM", name, "/F") // /F 表示强制结束 + cmd = SetHideConsoleCursor(cmd) default: return fmt.Errorf("unsupported operating system") }