-
Notifications
You must be signed in to change notification settings - Fork 493
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to bundle webui with companion and desktop? #843
Comments
@lidel I'd go preferably for B. Either B1 or B2 would work well, although B1 would be simpler to bundle. For B2, we'd need a way to know the latest revision and download it on build time. |
B1 is a little bit easier for consumers, but every update would require a new npm release. @olizilla mentioned today that Jenkins already builds it to update http://webui.ipfs.io Scroll down to:
To keep things simple, for now we could just curl it in our build scripts to download compressed ~7MB archive (uncompressed is ~24MB): curl -s "https://ipfs.io/api/v0/get?arg=/ipfs/Qmar7PEjn6YMw1VyYztdfGBELHCFqVz8yK2n5ycrXftP82&archive=true&compress=true" > webui.tar.gz |
@lidel don't forget that, for Desktop, we need a cross-platform script (that does work on Windows when building so using I can do a Node script to fetch data from:
Then, find the correct line and download it. Not as easy as it would be with a shell script, but doable |
And I wonder how much stable is the public API right now. I just tried to download it multiple times and it always failed: the speed started decreasing to 0 after downloading 1/2 MB.
|
I went with B2 for now and created some orchestration for fetching prebuilt webui from IPFS + fallback to HTTP: |
I think this is an ended discussion for now :) |
We want to ship Web UI with both Companion and Desktop.
Goal: speed and ensuring it works in offline environments.
Some options I see:
Related Work
The text was updated successfully, but these errors were encountered: