-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Download various asset files on startup if necessary. #16088
Download various asset files on startup if necessary. #16088
Conversation
4db6700
to
53dd0f4
Compare
I think we need to look for the defines that state whether the online updater/downloader is even available. For instance, for Steam builds we avoid downloading anything from our CDN as per Steam/Valve rules, everything has to come from their CDN instead. |
53dd0f4
to
87d27da
Compare
Thanks for the prompt, I thought I had covered all the bases, but did miss |
Assets and core info files are fine and will help to reduce some new user troubles. (Although a streamlined asset package would be nice, currently it is 90 MB and most of it is XMB which is neither the default nor is available everywhere, but that is beside this PR.) |
87d27da
to
4d1c990
Compare
Yeah, before I submitted this PR, I had originally put |
A few questions I have around this...
Overall, I would much prefer fixing the distributions rather than relying on an internet connection being there and auto-updating. |
Yeah, I've become increasingly unhappy with this particular PR as it's sat, but it's a reasonable straw man to use to try to figure out what it should look like. To answer your first question first, there some problems that are specific either to tvOS or both iOS/tvOS that interact:
I agree that in general we should be bundling assets and not relying on auto-updating, but iOS/tvOS present unique challenges. I wouldn't propose this as a general solution for macOS, for example. I'm happy to make this iOS/tvOS specific. That said, it might be nice if there are other edge/outlier cases that this could cover (like incorrect packaging, or the user changing the location of certain directories and then not realizing the directory needs to be repopulated somehow). Addressing your other questions...
I'm going to sit on this a while longer and think more about exactly where to go from here. |
This could also fix the issue with the current builds for F-Droid, which currently has almost all assets missing due to the F-Droid reproducibility requirements, see: #16126 |
@warmenhoven told me this can be closed and the issues were resolved (either partially or fully) some other way for tvOS |
tvOS has two problems that interact with each other:
So this PR on startup will look to see if the assets are where they are supposed to be, and use the online updater to download them if not.