Skip to content

Commit

Permalink
公版解除闭源更新
Browse files Browse the repository at this point in the history
  • Loading branch information
764763903a committed Nov 12, 2021
1 parent 0cebdea commit ff12fe9
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions models/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,12 @@ func Update(sender *Sender) error {
} else {
sender.Reply("小滴滴拉取代码成功")
}
//sender.Reply("小滴滴正在编译程序")
//rtn, err = exec.Command("sh", "-c", "cd "+ExecPath+" && go build -o "+pname).Output()
//if err != nil {
// return errors.New("小滴滴编译失败:" + err.Error())
//} else {
// sender.Reply("小滴滴编译成功")
//}
sender.Reply("小滴滴正在编译程序")
rtn, err = exec.Command("sh", "-c", "cd "+ExecPath+" && go build -o "+pname).Output()
if err != nil {
return errors.New("小滴滴编译失败:" + err.Error())
} else {
sender.Reply("小滴滴编译成功")
}
return nil
}

0 comments on commit ff12fe9

Please sign in to comment.