小编Evg*_*rov的帖子

cURL - 通知上传进度

我在Xcode中有脚本,它在Archive操作结束时自动运行.它正在签署并向TestFlight服务提交构建.问题是上传需要花费很多时间,我看不到任何进展.

作为通知程序,它使用苹果脚本通知程序:

notify () {
    /usr/bin/osascript -e "display notification \"$1\" with title \"Xcode\""
}
notify "Uploading to TestFlight"
Run Code Online (Sandbox Code Playgroud)

cURL上传在这里完成:

/usr/bin/curl "http://testflightapp.com/api/builds.json" \
-F file=@"/tmp/${PRODUCT_NAME}.ipa" \
-F dsym=@"/tmp/${PRODUCT_NAME}.dSYM.zip" \
-F api_token="${API_TOKEN}" \
-F team_token="${TEAM_TOKEN}" \
-F notes="Build uploaded automatically from Xcode."
Run Code Online (Sandbox Code Playgroud)

如果我能看到有关上传过程的10%,20等等的类似信息,我会很高兴.

这是完整的脚本:https://gist.github.com/ealeksandrov/5808692

bash automation curl file-upload

9
推荐指数
1
解决办法
3940
查看次数

标签 统计

automation ×1

bash ×1

curl ×1

file-upload ×1