Use standalone API for updates & themes
scientificworld opened this issue · 7 comments
Due to special network situation in China Mainland, users are hard to get GitHub contents, so it'll be slow(or even impossible) to check for updates and download third-party themes.
I suggest using a standalone API (e.g. bbg-api.nekomoe.xyz) for that. BTW, Do we need a new domain for BBG (and BBG Hosting)?
A substitute for that: detect system proxy automatically and use it. But idk how to implement.
See this: Net Module|Electron Docs
Just use it to replace request or axios.
See this: Net Module|Electron Docs
Just use it to replace request or axios.
This seems not bad. I'll open a PR recently to remove the dependencies on them, it will also eliminate the impact caused by CVE-2023-28155.
See this: Net Module|Electron Docs
Just use it to replace request or axios.
Maybe also need to replace fetch in App/check_update.js
.
A mainland-reachable github API mirror is usable?
A mainland-reachable github API mirror is usable?
Maybe we can self-build one. Rely on other's service is unstable.
A substitute for that: detect system proxy automatically and use it. But idk how to implement.
finished in 50fa63a