|
@@ -162,7 +162,7 @@ func main() {
|
|
|
|
|
|
// 是否发布
|
|
|
inputReader := bufio.NewReader(os.Stdin)
|
|
|
- fmt.Printf("是否发布【%s】,version【%s】?\n发布:【yes】,不发布【no】:", appConf.Key, version)
|
|
|
+ fmt.Printf("是否发布【%s】,version【%s】?\n发布:【yes】,不发布【no】: ", appConf.Key, version)
|
|
|
input, err := inputReader.ReadString('\n')
|
|
|
if err != nil {
|
|
|
fmt.Println(err)
|
|
@@ -182,7 +182,6 @@ func main() {
|
|
|
|
|
|
// 获取对应应用配置
|
|
|
// "platform": "windows-amd64",
|
|
|
- // platform := fmt.Sprintf("%s-%s", runtime.GOOS, runtime.GOARCH)
|
|
|
platform := fmt.Sprintf("%s-%s", runtime.GOOS, runtime.GOARCH)
|
|
|
query := fmt.Sprintf("?name=%s&platform=%s", appConf.Key, platform)
|
|
|
appVersion, err := utils.GetAppVersion(query)
|