From 1a8f08a07d8b74bfde0fa94ad863f74118b7be35 Mon Sep 17 00:00:00 2001
From: zanbin168 <zanbin168@qq.com>
Date: 星期三, 17 五月 2023 10:02:45 +0800
Subject: [PATCH] update
---
_example/latest/latest.go | 15 +++++++--------
1 files changed, 7 insertions(+), 8 deletions(-)
diff --git a/_example/latest/latest.go b/_example/latest/latest.go
index 84c80f3..6b27584 100644
--- a/_example/latest/latest.go
+++ b/_example/latest/latest.go
@@ -5,7 +5,6 @@
"runtime"
"github.com/apex/log"
- "github.com/kierdavis/ansi"
update "github.com/zan8in/goupdate"
"github.com/zan8in/goupdate/progress"
@@ -17,16 +16,16 @@
}
func main() {
- ansi.HideCursor()
- defer ansi.ShowCursor()
+ // ansi.HideCursor()
+ // defer ansi.ShowCursor()
// update polls(1) from tj/gh-polls on github
m := &update.Manager{
- Command: "polls",
+ Command: "afrog.exe",
Store: &github.Store{
- Owner: "tj",
- Repo: "gh-polls",
- Version: "0.0.3",
+ Owner: "zan8in",
+ Repo: "afrog",
+ Version: "2.3.1",
},
}
@@ -46,7 +45,7 @@
latest := releases[0]
// find the tarball for this system
- a := latest.FindTarball(runtime.GOOS, runtime.GOARCH)
+ a := latest.FindZip(runtime.GOOS, runtime.GOARCH)
if a == nil {
log.Info("no binary for your system")
return
--
Gitblit v1.8.0