update
This commit is contained in:
+1
-2
@@ -60,8 +60,7 @@ func GitPull(filename string) (bool, error) {
|
||||
}
|
||||
|
||||
func CompileCode() error {
|
||||
cmd := exec.Command("/usr/local/go/bin/go", "build")
|
||||
cmd.Path = ExecPath
|
||||
cmd := exec.Command("sh", "-c", "cd "+ExecPath+" && go build -o "+pname)
|
||||
_, err := cmd.Output()
|
||||
if err != nil {
|
||||
return errors.New("编译失败:" + err.Error() + "。")
|
||||
|
||||
Reference in New Issue
Block a user