Skip to content

Commit 1361dc9

Browse files
committed
change the app name in fir and email
1 parent 456bf36 commit 1361dc9

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

ipa-publish-fir

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,6 @@ if [ $rtnValue != 0 ];then
104104
exit
105105
fi
106106

107-
108107
#build文件夹路径
109108
build_path=${project_path}/build
110109

@@ -181,21 +180,22 @@ exit 1
181180
fi
182181

183182
echo "Finishing uploading and filling in the app information..."
184-
response=`curl -L "$fir_finish_url?appid=$bundleIdentifier&short=$fir_publish_short_name&version=$bundleShortVersion($bundleVersion)&changelog=$git_log"`
183+
response=`curl -L "$fir_finish_url?appid=$bundleIdentifier&short=$fir_publish_short_name&version=$bundleShortVersion($bundleVersion)&name=${ipa_name}_v_${bundleShortVersion}&changelog=$git_log"`
185184
realShort=`ruby -e "require 'json'; iJson = JSON.parse '${response}'; puts iJson['short']"`
186185

187186
#拼接完整的下载url,并在浏览器中打开
188187
pulish_url=$fir_domain/$realShort
189188
open $pulish_url
190189

190+
build_time=`date`
191191

192192
#发送邮件
193193
#将之前html的换行方式改为\n
194194
git_log=`echo ${git_log//<br\/>/\\\n}`
195195
if [ $should_email = y ];then
196196
echo "Sending email..."
197-
email_title="${ipa_name}-iOS客户端更新"
198-
email_content="hi,\n\nThe app is updated recently. Use the safari browser on iOS device to download the app. Here is the URL: ${pulish_url} \n\nChange log:\n$git_log \n\n\nThis email is sent by the automantic shell which is created by ccf & jiecao.fm, so do not reply this email.\n\nThanks!"
197+
email_title="${ipa_name}V${bundleShortVersion}-iOS客户端更新"
198+
email_content="hi,\n\nThe app is updated recently. Use the safari browser on iOS device to download the app. Here is the URL: ${pulish_url} \n\nBuild time:${build_time}\nChange log:\n$git_log \n\n\nThis email is sent by the automantic shell which is created by ccf & jiecao.fm, so do not reply this email.\n\nThanks!"
199199
${shell_path}/sendEmail -f ${email_sender} -t ${email_reciver} -s ${email_smtphost} -u ${email_title} -xu ${email_username} -xp ${email_password} -m ${email_content}
200200
fi
201201

0 commit comments

Comments
 (0)