Skip to content

OTA updates via git#46

Open
facingtomorrow wants to merge 3 commits into
Hack-a-Day:mainfrom
facingtomorrow:main
Open

OTA updates via git#46
facingtomorrow wants to merge 3 commits into
Hack-a-Day:mainfrom
facingtomorrow:main

Conversation

@facingtomorrow

@facingtomorrow facingtomorrow commented Nov 2, 2025

Copy link
Copy Markdown
Contributor

uGit - OTA updates directly from the repo!
automatically connects to the Supercon wifi and pulls updates

Comment thread user_apps/ugit/ugit.py
curr_manifest = set(intended_local_files)
leftovers = prev_manifest - curr_manifest

if leftovers:

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I intentionally left the data/ directory to be unmanaged by the update script so apps on the badge can write to it and persist state across reboots and software updates. I think we would want the same here and not have this tool delete files in that directory even though they don't exist in the repo.

@bwasserm

Copy link
Copy Markdown
Collaborator

This is a very cool feature. Due to first seeing it towards the end of supercon and the length of the file, I was a bit intimidated to look at it at the time. Sorry about that! Now that I'm prepping the firmware for Europe, this would be cool to include. It may need to be updated to the Europe wifi, if the credentials aren't the same.
I think the above comment on not nuking the data directory is the only big concern here. Otherwise, this would be awesome to merge in. Thanks for making it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants