Skip to content

Commit

Permalink
🐛 fix plist ipa name
Browse files Browse the repository at this point in the history
  • Loading branch information
xhofe committed Feb 18, 2022
1 parent 270349f commit cc62cc9
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions server/controllers/other.go
Original file line number Diff line number Diff line change
Expand Up @@ -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(`<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
Expand All @@ -46,7 +49,7 @@ func Plist(c *gin.Context) {
<key>bundle-identifier</key>
<string>ci.nn.%s</string>
<key>bundle-version</key>
<string>4.0</string>
<string>4.4</string>
<key>kind</key>
<string>software</string>
<key>title</key>

This comment has been minimized.

Copy link
@chosen1sam

chosen1sam Feb 19, 2022

location / {
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
proxy_redirect off;
proxy_pass http://127.0.0.1:5244;
# 上传的最大文件尺寸
client_max_body_size 20000m;
}

Expand Down

0 comments on commit cc62cc9

Please sign in to comment.