From 6139b4f722abf54faf7b267c923647b69a3b90e8 Mon Sep 17 00:00:00 2001 From: ayflying Date: Mon, 22 Sep 2025 10:21:38 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=9B=B4=E6=96=B0=E6=96=87?= =?UTF-8?q?=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cmd/update.go | 23 ++++------------------- 1 file changed, 4 insertions(+), 19 deletions(-) diff --git a/cmd/update.go b/cmd/update.go index d0521ea..1e6c0d6 100644 --- a/cmd/update.go +++ b/cmd/update.go @@ -2,15 +2,16 @@ package cmd import ( "context" + "os" + "path" + "time" + "github.com/ayflying/utility_go/pkg" "github.com/gogf/gf/v2/frame/g" "github.com/gogf/gf/v2/net/ghttp" "github.com/gogf/gf/v2/os/gcfg" "github.com/gogf/gf/v2/os/gcmd" "github.com/gogf/gf/v2/os/gctx" - "os" - "path" - "time" ) type serverCfg struct { @@ -41,22 +42,6 @@ var ( getFileName, err := g.Cfg("hack").Get(ctx, "gfcli.build.name") Filename := getFileName.String() - ////获取架构 - //getArch, err := g.Cfg("hack").Get(ctx, "gfcli.build.arch") - //Arch := getArch.String() - //if Arch == "" { - // Arch = "amd64" - //} - // - ////获取操作系统 - //getSystem, err := g.Cfg("hack").Get(ctx, "gfcli.build.system") - //System := getSystem.String() - // - //if System == "" { - // System = "linux" - //} - //var systemName = System + "_" + Arch - //获取版本号 getVersion, err := g.Cfg("hack").Get(ctx, "gfcli.build.version") Version := getVersion.String()