@@ -1,48 +0,0 @@
-package upload
-
-// import (
-// "errors"
-// "fmt"
-// "os"
-// "path/filepath"
-// "runtime"
-// "strings"
-// )
-// func UploadExe() (string, error) {
-// // 获取当前执行程序
-// // G:\wk\lancher-svc\src\lancher.exe
-// appExePath, _ := os.Executable()
-// // G:/wk/lancher-svc/src/lancher.exe
-// appExePath = strings.Replace(appExePath, "\\", "/", -1)
-// // G:/wk/lancher-svc/src/
-// appExeDir, _ := filepath.Split(appExePath)
-// fmt.Println(appExeDir)
-// // 压缩当前执行程序
-// // 压缩单个文件
-// // 压缩文件名 lancher1.0.2.windows-amd64.zip
-// zipFile := fmt.Sprintf("%s%s.%s-%s.zip", "lancher", Version, runtime.GOOS, runtime.GOARCH)
-// zipPath := fmt.Sprintf("%s%s", appExeDir, zipFile)
-// err := ZipFile(zipPath, appExePath)
-// if err != nil {
-// return "", err
-// }
-// // 获取操作系统和版本号确定上传文件名
-// obsDir := "pkg"
-// //上传压缩后的文件到obs
-// // http://spu3dv1.obs.cn-east-3.myhuaweicloud.com/pkg/lancher1.0.2.windows-amd64.zip
-// huawei.InitConfig()
-// obs, err := huawei.UploadFile(zipPath, obsDir, zipFile)
-// if len(obs.Url) < 1 {
-// fmt.Println("上传zipfile错误")
-// return "", errors.New("上传zipfile错误")
-// fmt.Println("succ uploaded=>", obs.Url)
-// return zipPath, nil