|
@@ -74,13 +74,16 @@ func main() {
|
|
|
fmt.Println(uploadConf[appConf.Key])
|
|
|
|
|
|
// 复制文件到目标目录中
|
|
|
- for _, file := range copyFiles {
|
|
|
- err := utils.Copy(file, fmt.Sprintf("%s/%s", dest, file))
|
|
|
- if err != nil {
|
|
|
- fmt.Println(err)
|
|
|
- return
|
|
|
+ if len(copyFiles) > 0 {
|
|
|
+ for _, file := range copyFiles {
|
|
|
+ err := utils.Copy(file, fmt.Sprintf("%s/%s", dest, file))
|
|
|
+ if err != nil {
|
|
|
+ fmt.Println(err)
|
|
|
+ return
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
// 获取版本信息
|
|
|
version, err := utils.GetVersion()
|
|
|
if err != nil {
|
|
@@ -231,6 +234,9 @@ func main() {
|
|
|
Url: obsUrl,
|
|
|
Platform: appVersion.Platform,
|
|
|
Thumbnail: appVersion.Thumbnail,
|
|
|
+ Desc: appVersion.Desc,
|
|
|
+ AppType: appVersion.AppType,
|
|
|
+ InstCount: appConf.InstCount,
|
|
|
}, outputDb)
|
|
|
if err != nil {
|
|
|
fmt.Println("写入output/db.json错误:", err)
|