Skip to content
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

May be useful to do something that can merge all the manifests together into a single .json file then just download that, including removing duplicate info from each entry to for example display descriptions per translation like apt-cache, then it can be minified I guess, with an un-minified version if necessary. #158

Open
DrewNaylor opened this issue Jan 5, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@DrewNaylor
Copy link
Owner

DrewNaylor commented Jan 5, 2023

Running apt-cache show lightning gave me this idea as well as what I've read about https://winget.run's API (that being, REST which is similar to json I think, but I thought a while ago it was directly json which is what I internalized), as apparently there's a "Description-en` field for packages. There's also so much extra duplicated stuff in the manifests that aren't necessarily needed, like how the package IDs are stored, as they're in each of the manifests for each package version. For some reason though, the copyright for the Chinese and English versions of 7-Zip 21.07 have different years, so perhaps copyright should also be stored per translation?

Not sure how to serve this though, as GitHub may not like it if a bunch of traffic is being taken up by me, and Linode may cost more money if too many users are downloading the cache updates. A potential easy solution would be to have a file that specifies the last update time, and to not download it unless the user says to do so or if the file isn't on the system already.

Generating the file can be done with a small computer (like something from Pine64, because Raspberry Pi recently hired a former cop and it was handled really poorly, and I don't support cops, both for personal reasons and for social/public reasons) at my house every 5 hours or so, giving it enough time to process and upload without having to tax a Linode server. Or if it wouldn't be too much, I could have a Linode server process the files so it wouldn't rely on my house having Internet and power/my small computer being online.

The only difference between my idea sorta based on what I've heard about https://winget.run's API when it was more directly json I think and the way apt-cache works is that it's human-readable instead of being a binary format.

@DrewNaylor DrewNaylor added the enhancement New feature or request label Jan 5, 2023
@DrewNaylor
Copy link
Owner Author

Did some more research and found out about DreamCompute from DreamHost which provides VMs that you can just do stuff on, and they currently provide unlimited bandwidth usage for a really low price. Sounds nice, I don't know why they seem to be the only reasonably-priced place that has unlimited data usage for hosted servers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant