Replies: 1 comment
-
@cnderrick Thanks. PR for it. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
下载地址目前是固定不变的,这里不需要解决。可以参考实际地址写死。
主要说一下如何获取版本号的方式。
下图为请求安装包时的请求返回细节:
重点是拿到http response的content-disposition(response header里拿)里面的字符串。
以上内容的含义是告诉浏览器此为附件,需要浏览器以保存文件的形式将文件存储在操作系统中。
文件名以utf-8编码格式,文件的名称叫:Airy-v1.1.1-mac-arm64.dmg
只需要将此字符串切割以下就可以获得版本号v1.1.1
@ivaquero
Beta Was this translation helpful? Give feedback.
All reactions