trazyn / weweChat

💬 Unofficial WeChat client built with React, MobX and Electron.
MIT License
5.75k stars 735 forks source link

对于自动更新这块有研究吗? #31

Closed xp6530 closed 7 years ago

trazyn commented 7 years ago

https://www.electron.build/auto-update 目前主要在改bug和优化,不准备加新功能

On Tue, Sep 12, 2017 at 3:27 PM, xp6530 notifications@github.com wrote:

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/trazyn/weweChat/issues/31, or mute the thread https://github.com/notifications/unsubscribe-auth/ABsVMkg77xoxWEcFA-PhvrBjm1aS8V3_ks5shjJsgaJpZM4PUN0w .

trazyn commented 7 years ago

1.1.2 已增加

gclsoft commented 6 years ago

@trazyn 您是怎么判断新版本的, 通过哪个url去检查, 代码里看不出来 https://github.com/trazyn/weweChat/commit/2d3f8060f8f6cbc3593ba32c07f3e41febeca312

trazyn commented 6 years ago

@gclsoft https://github.com/electron-userland/electron-builder/blob/86d64c24eb480d92131d5691798cdff9d7926c3c/packages/electron-updater/src/AppUpdater.ts#L302

gclsoft commented 6 years ago

@trazyn 这个是electron-builder项目的代码, weweChat这个项目是通过哪个url去判断是否该更新了?

trazyn commented 6 years ago

electron-builder拿到配置在package.json 中的 publish信息生成 app-update.yml ,provider 以 github 为例检查 release 找对应的 last-platform.yml,剩下的顺着上面回复代码看就好

gclsoft commented 6 years ago

@trazyn 谢谢,如果不用github做判断, 以自己的服务器做更新判断要怎么改呢? 更新文件也是保存在自己的服务器上的

trazyn commented 6 years ago

可以参考这里: https://www.electron.build/configuration/publish#genericserveroptions https://www.electron.build/file-patterns#file-macros

On Mon, Aug 13, 2018 at 11:17 AM uuyimei notifications@github.com wrote:

@trazyn https://github.com/trazyn 谢谢,如果不用github做判断, 以自己的服务器做更新判断要怎么改呢? 更新文件也是保存在自己的服务器上的

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/trazyn/weweChat/issues/31#issuecomment-412398527, or mute the thread https://github.com/notifications/unsubscribe-auth/ABsVMpo27HMy8ILvnChcT89wZ_o3uutRks5uQO-2gaJpZM4PUN0w .