From cc62cc99d212ff9097bcad44f9980a6bfa3dc00c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BE=AE=E5=87=89?= <927625802@qq.com> Date: Fri, 18 Feb 2022 19:01:30 +0800 Subject: [PATCH] :bug: fix plist ipa name --- server/controllers/other.go | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/server/controllers/other.go b/server/controllers/other.go index dd73854751e..6a4968f3997 100644 --- a/server/controllers/other.go +++ b/server/controllers/other.go @@ -25,7 +25,10 @@ func Plist(c *gin.Context) { } u := string(bytes) name := utils.Base(u) - name = strings.TrimRight(name, ".ipa") + ipaIndex := strings.Index(name, ".ipa") + if ipaIndex != -1 { + name = name[:ipaIndex] + } plist := fmt.Sprintf(` @@ -46,7 +49,7 @@ func Plist(c *gin.Context) { bundle-identifier ci.nn.%s bundle-version - 4.0 + 4.4 kind software title