Document public Gitea update mirror
All checks were successful
Gitea Smoke / smoke (push) Successful in 0s
Gitea Android APK / build (push) Successful in 11m44s

This commit is contained in:
Codex 2026-07-06 08:16:13 +00:00
parent b64ef21831
commit 73cc8c8181
2 changed files with 14 additions and 8 deletions

View File

@ -82,10 +82,10 @@ https://github.com/neatstudio/tmux-browser-android/releases/latest/download/tmux
https://github.com/neatstudio/tmux-browser-android/releases/latest/download/latest.json https://github.com/neatstudio/tmux-browser-android/releases/latest/download/latest.json
``` ```
Those GitHub links are the stable public install/update channel. Gitea releases Those GitHub links are the primary public install/update channel. Gitea releases
are mirrored for internal tracking, but the current Gitea org/repo visibility are mirrored as a second public source. This Gitea instance does not support the
keeps anonymous release downloads behind login, so phones should use GitHub for GitHub-style `/releases/latest/download/...` URL, so the app uses the Gitea
no-login install and in-app updates. Release API as the stable Gitea update entrypoint.
Plain branch builds only create Actions artifacts; they are useful for CI Plain branch builds only create Actions artifacts; they are useful for CI
verification, but releases are the stable download/update channel. verification, but releases are the stable download/update channel.
@ -143,13 +143,19 @@ https://github.com/neatstudio/tmux-browser-android/releases/latest/download/tmux
``` ```
The app tries the selected update source first, then falls back to the GitHub The app tries the selected update source first, then falls back to the GitHub
manifest and the Gitea release API. GitHub is the reliable no-login source today. manifest and the Gitea release API. The Gitea API endpoint is:
The Gitea API endpoint is:
```text ```text
https://gitea.neatcn.com/api/v1/repos/tmux/tmux-browser-android/releases/latest https://gitea.neatcn.com/api/v1/repos/tmux/tmux-browser-android/releases/latest
``` ```
Gitea tag-specific assets are also public, for example:
```text
https://gitea.neatcn.com/tmux/tmux-browser-android/releases/download/v0.1.7/latest.json
https://gitea.neatcn.com/tmux/tmux-browser-android/releases/download/v0.1.7/tmux-android.apk
```
In the app: In the app:
- Tap `Update` on the main screen to check `latest.json`, download the APK, - Tap `Update` on the main screen to check `latest.json`, download the APK,

View File

@ -962,8 +962,8 @@ public final class MainActivity extends Activity {
text.append("Selected manifest:\n") text.append("Selected manifest:\n")
.append(prefs.getString("update_url", BuildConfig.DEFAULT_UPDATE_URL)) .append(prefs.getString("update_url", BuildConfig.DEFAULT_UPDATE_URL))
.append('\n'); .append('\n');
text.append("GitHub manifest:\n").append(BuildConfig.DEFAULT_UPDATE_URL).append('\n'); text.append("GitHub primary manifest:\n").append(BuildConfig.DEFAULT_UPDATE_URL).append('\n');
text.append("Gitea release API:\n").append(BuildConfig.DEFAULT_GITEA_UPDATE_URL).append('\n'); text.append("Gitea public mirror API:\n").append(BuildConfig.DEFAULT_GITEA_UPDATE_URL).append('\n');
text.append('\n'); text.append('\n');
text.append("Network: manifest permission, no runtime grant required\n"); text.append("Network: manifest permission, no runtime grant required\n");
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) { if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {