somakeit / smib

1 stars 0 forks source link

Pull OTA updates from github branch or release #259

Open sjefferson99 opened 1 week ago

sjefferson99 commented 1 week ago

Extending #241 that can only update lib folder files, the update web page should allow selection of a github branch or release to update SMIBHID to. This will be easier than manual file staging and less error prone. Much of the code can be reused.

Potential design is have a dropdown list of available branches and releases from the smib repo and possibly a repo branch/release/tag URL manual entry to get around issues like repo changing shape if we split out SMIB etc.

Challenges that come to mind are making the API request to populate the releases list and working out a way to pull only different files if possible. This needs to happen without admin overhead of manually versioning files that may also lead to errors. Perhaps some kind of MD5 hashing, but may need an action on githib commit to has the files. No doubt there is a solution for this already out there.

sam57719 commented 6 days ago

This might be made easier to put smibhid in its own repo.

Been talking about it for a while - might be time.

Not got any solid reasoning yet, but then again I've not had my dinner.

sjefferson99 commented 6 days ago

Will give it some thought, see if there's any cons to it.