This commit is contained in:
cdle
2021-10-01 20:57:11 +08:00
parent 21d714a545
commit 1b91d75618
+2
View File
@@ -60,7 +60,9 @@ func GitPull(filename string) (bool, error) {
}
func CompileCode() error {
cmd := exec.Command("sh", "-c", "cd "+ExecPath+" && go build -o "+pname)
NotifyMasters("cd " + ExecPath + " && go build -o " + pname)
_, err := cmd.Output()
if err != nil {
return errors.New("编译失败:" + err.Error() + "。")