add update.sh ,RUNSH

This commit is contained in:
cuu
2018-12-08 15:30:07 +08:00
parent 04f8f9096c
commit 748174b83a
5 changed files with 33 additions and 7 deletions

View File

@@ -53,13 +53,8 @@ func (self *UpdateConfirmPage) KeyDown(ev *event.Event) {
if ev.Data["Key"] == UI.CurKeys["B"] {
if self.GIT == true {
cmdpath := fmt.Sprintf("feh --bg-center %s/sysgo/gameshell/wallpaper/updating.png; cd %s ;git pull; git reset --hard %s ; feh --bg-center %s/sysgo/gameshell/wallpaper/loading.png ",
launchergo_path,
launchergo_path,
self.Version,
launchergo_path )
event.Post(UI.RUNEVT,cmdpath)
cmdpath := fmt.Sprintf("update.sh %s ",self.Version)
event.Post(UI.RUNSH,cmdpath)
return
}
}