|
@@ -30,7 +30,7 @@ func main() {
|
|
|
// 复制文件到对应目录
|
|
|
switch appConf.Key {
|
|
|
case "queenter":
|
|
|
- dest = uploadConf.Queenter.Dest + "/"
|
|
|
+ dest = uploadConf.Queenter.Dest
|
|
|
copyFiles = uploadConf.Queenter.Files
|
|
|
modify = uploadConf.Queenter.Modify
|
|
|
default:
|
|
@@ -62,12 +62,13 @@ func main() {
|
|
|
zipFile := fmt.Sprintf("%s-v%s-%s-%s-test.zip", appConf.Key, version, runtime.GOARCH, runtime.GOOS)
|
|
|
zipPath := fmt.Sprintf("output/%s", zipFile)
|
|
|
fmt.Println("压缩文件中...")
|
|
|
- utils.Zip(zipPath, dest)
|
|
|
+ err = utils.Zip(zipPath, dest)
|
|
|
if err != nil {
|
|
|
fmt.Println("压缩文件出错")
|
|
|
return
|
|
|
}
|
|
|
|
|
|
+ fmt.Println("上传中...")
|
|
|
// 上传文件
|
|
|
huawei.InitConfig()
|
|
|
// http://spu3dv1.obs.cn-east-3.myhuaweicloud.com/pkg/lancher1.0.2.windows-amd64.zip
|
|
@@ -82,7 +83,6 @@ func main() {
|
|
|
fmt.Println("上传zipfile错误")
|
|
|
return
|
|
|
}
|
|
|
- fmt.Println("上传中...")
|
|
|
fmt.Println("succ uploaded=>", obs.Url)
|
|
|
|
|
|
// 获取最新版本
|