使用新的解压targz压缩的方法

This commit is contained in:
2025-10-30 19:34:28 +08:00
parent 63f5bef038
commit d3f3687201
2 changed files with 65 additions and 5 deletions

View File

@@ -10,7 +10,6 @@ import (
"github.com/gogf/gf/v2/os/gcmd"
"github.com/gogf/gf/v2/os/gfile"
"github.com/gogf/gf/v2/os/gtime"
//步骤1加载驱动
_ "github.com/gogf/gf/contrib/nosql/redis/v2"
@@ -24,7 +23,7 @@ var (
func main() {
g.Log().Infof(ctx, "启动文件最后修改时间:%v", gtime.New(gfile.MTime(gcmd.GetArg(0).String())).String())
g.Dump("v1.0.0.2")
//g.Dump("v1.0.0.2")
if ok := gfile.Exists("runtime"); !ok {
gfile.Mkdir("runtime")