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

Basic API Implementation #136

Merged
merged 22 commits into from
Sep 11, 2024
Merged

Basic API Implementation #136

merged 22 commits into from
Sep 11, 2024

Conversation

Victor-IX
Copy link
Owner

Add a JSON file in the repo directly accessed by the Blender Launcher with GitHub API request to retrieve data like the list of Blender versions.

The primary goal of this is to create an easily editable endpoint for evolving data, allowing new data to be added without having to create a new version of the Blender Launcher each time.
This could be expended in the future if we want to cache the download, like to reduce request to the blender website.

@zeptofine
Copy link
Collaborator

With the index-selecting method we use to store the minimum stable build, The selected build will move as we add more builds

See 3.3 here:

image

Turns into 3.4 as I add a new build:

image

I suggest we don't save the minimum build as an index, but rather as the actual version, or a float

@Victor-IX
Copy link
Owner Author

I've started implementing a new API file for the stable build; I took the cache file with all the versions.
I think the best way to handle this will be to check if some builds present in the API file are missing in the user cache file and add them.

Because this will be done before the build gathering step, we save a lot of requests if the user doesn't have all the builds present in the API file.

I did a test, and gathering all the stable builds from 3.4 and after generated 50 requests, so this could be very useful for optimizing requests for first time user

@Victor-IX Victor-IX merged commit 4b24e57 into main Sep 11, 2024
@Victor-IX Victor-IX deleted the bl_api branch September 12, 2024 03:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants