implement ota updates
lint / ruff (push) Successful in 14s
tests / desktop (push) Successful in 22s
docker / image (push) Successful in 43s
tests / web (push) Successful in 39s
tests / android-core (push) Successful in 1m1s
tests / backend (push) Successful in 2m12s
android / apk (push) Successful in 6m50s

This commit is contained in:
timka123 committed 2026-10-22 21:11:04 +03:00
1 parent 61529be465
commit 1bdd65cc76
25 files changed
+2353 -4

No files matched your search

+24
View File
@@ -55,6 +55,30 @@ class EnvSettings(BaseSettings):
default=True,
description="Run the Telegram command bot when a token is configured.",
)
# ---- Android OTA updates -----------------------------------------------
# The Gitea repository is private, so these cannot be read anonymously.
# The token is a read-only personal access token; it never leaves the
# backend, and the Android client only sees /api/updates/android.
gitea_url: str = Field(
default="https://git.timka.su",
description="Base URL of the Gitea instance that runs the Android workflow.",
)
gitea_repo: str = Field(
default="timka123/kadence",
description="owner/repository whose Actions artifacts carry the APK.",
)
gitea_token: str = Field(
default="",
description=(
"Read-only Gitea token used to read Actions artifacts. Empty disables "
"the Android update endpoint."
),
)
gitea_update_branch: str = Field(
default="master",
description="Only successful builds from this branch are offered as updates.",
)
api_token: str = Field(
default="",
description=(