sunsheng 1 年之前
父節點
當前提交
735809494e
共有 1 個文件被更改,包括 15 次插入0 次删除
  1. 15 0
      main.go

+ 15 - 0
main.go

@@ -243,6 +243,21 @@ func main() {
 			fmt.Println("写入output/db.json错误:", err)
 			return
 		}
+		utils.WriteAppConfig(&utils.App{
+			Name:           appConf.Name,
+			Version:        appVersion.Version,
+			LastUpdateDate: time.Now().Format("2006-01-02"),
+			Icon:           appConf.Icon,
+			RevAssets:      appConf.RevAssets,
+			Size:           fmt.Sprintf("%fM", appVersion.SizeM),
+			Tags:           appConf.Tags,
+			Desc:           appVersion.Desc,
+			Entry:          appConf.Entry,
+			Type:           appVersion.AppType,
+			Key:            appVersion.Name,
+			InstCount:      appVersion.InstCount,
+		}, "./")
+
 		fmt.Println("输出文件目录=>: output")
 		time.Sleep(3 * time.Second)
 	}