|
@@ -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)
|
|
|
}
|