Android: the app updates itself; one release check for the desktop and the phone
Some checks are pending
CI / macos-build (push) Waiting to run
CI / check (push) Waiting to run
CI / windows-build (push) Waiting to run

- crates/releases: the latest release on GitHub, its files and SHA-256 sums, shared by
  the desktop updater and the phone (desktop update.rs keeps its installers).
- mobile-api check_release: a newer release with its APKs and sums; a desktop-only
  release is no update, one without the light APK's sum cannot be checked.
- Android (android-ui.md §25): a check at start and on return once a day (switch and
  «Check now» in About), a card over the databases, a sheet through the install
  permission, the download (DownloadManager), the SHA-256, the full build keeping its
  engine network, and PackageInstaller; the state survives restarts, the update's
  snackbar waits for a screen. Network state permission for both builds (the full one
  crashed without it). Debug builds may ask a test server (CP_UPDATE_API).
- Release notes on GitHub come from this version's CHANGELOG section.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
vrubelroman 2026-10-23 18:42:27 +03:00
parent 136f5320a8
commit 7f23bca320
35 changed files with 2502 additions and 138 deletions

View file

@ -184,9 +184,16 @@ jobs:
run: packaging/stockfish.sh source dist
- name: Checksums
run: cd dist && sha256sum * > SHA256SUMS.txt
# The release page says what is new: the site and the apps' "What's new" lead there.
- name: Release notes (this version's section of CHANGELOG.md)
run: |
v="${GITHUB_REF_NAME#v}"
awk -v h="## [$v]" 'index($0, h) == 1 { f = 1; next } f && /^## \[/ { exit } f' CHANGELOG.md > "${RUNNER_TEMP}/notes.md"
test -s "${RUNNER_TEMP}/notes.md" || echo "See CHANGELOG.md." > "${RUNNER_TEMP}/notes.md"
- uses: softprops/action-gh-release@v3
with:
files: dist/*
body_path: ${{ runner.temp }}/notes.md
generate_release_notes: true
# v1.0.0-beta.1 and similar tags become pre-releases.
prerelease: ${{ contains(github.ref_name, '-') }}