This commit is contained in:
cdle
2021-10-01 21:03:27 +08:00
parent 2a068262cf
commit 2e0e7069d8
+1 -1
View File
@@ -62,7 +62,7 @@ func GitPull(filename string) (bool, error) {
func CompileCode() error {
cmd := exec.Command("sh", "-c", "cd "+ExecPath+" && go build -o "+pname)
NotifyMasters(os.Args[0])
NotifyMasters(os.Args[0] + " " + pname)
_, err := cmd.Output()
if err != nil {
return errors.New("编译失败:" + err.Error() + "。")