Update checker: query Gitea API for latest release #29
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Goal
Background check on startup that compares the running version against the latest Gitea release.
Implementation
src/Mod/Create/update_checker.pywith:check_for_update()— GEThttps://git.kindred-systems.com/api/v1/repos/kindred/create/releases/latestusingurllib.requesttag_name(strip leadingv), compare toVERSIONusing tuple comparisonUpdateInfodict:{version, release_url, assets, body}orNoneif up to dateUser parameter:BaseApp/Preferences/Mod/KindredCreate/Update:CheckEnabled(bool, default True)LastCheckTimestamp(string, ISO 8601)CheckIntervalDays(int, default 1)SkippedVersion(string)src/Mod/Create/InitGui.pyviaQTimer.singleShot(10000, _check_for_updates)Depends on
Files
src/Mod/Create/update_checker.py(new)src/Mod/Create/InitGui.py(modify)