修改更新文件
This commit is contained in:
@@ -2,15 +2,16 @@ package cmd
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
|
"os"
|
||||||
|
"path"
|
||||||
|
"time"
|
||||||
|
|
||||||
"github.com/ayflying/utility_go/pkg"
|
"github.com/ayflying/utility_go/pkg"
|
||||||
"github.com/gogf/gf/v2/frame/g"
|
"github.com/gogf/gf/v2/frame/g"
|
||||||
"github.com/gogf/gf/v2/net/ghttp"
|
"github.com/gogf/gf/v2/net/ghttp"
|
||||||
"github.com/gogf/gf/v2/os/gcfg"
|
"github.com/gogf/gf/v2/os/gcfg"
|
||||||
"github.com/gogf/gf/v2/os/gcmd"
|
"github.com/gogf/gf/v2/os/gcmd"
|
||||||
"github.com/gogf/gf/v2/os/gctx"
|
"github.com/gogf/gf/v2/os/gctx"
|
||||||
"os"
|
|
||||||
"path"
|
|
||||||
"time"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
type serverCfg struct {
|
type serverCfg struct {
|
||||||
@@ -41,22 +42,6 @@ var (
|
|||||||
getFileName, err := g.Cfg("hack").Get(ctx, "gfcli.build.name")
|
getFileName, err := g.Cfg("hack").Get(ctx, "gfcli.build.name")
|
||||||
Filename := getFileName.String()
|
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")
|
getVersion, err := g.Cfg("hack").Get(ctx, "gfcli.build.version")
|
||||||
Version := getVersion.String()
|
Version := getVersion.String()
|
||||||
|
|||||||
Reference in New Issue
Block a user