Skip to content

Link the Android APK through a stable URL and bump it on release - #28143

Merged
Jinwoo-H merged 3 commits into
mainfrom
android-release-bumps-apk-links
Oct 13, 2026
Merged

Jinwoo-H merged 3 commits into
mainfrom
android-release-bumps-apk-links

Conversation

@Jinwoo-H

@Jinwoo-H Jinwoo-H commented Oct 13, 2026 •

Copy link
Copy Markdown
Contributor
Files Added Deleted Net
Test 1 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​36 0 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​36
Prod 12 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​136 $\color{#cf222e}{\Huge{\mathbf{−}}}$​19 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​117

What this does

After an Android release, nobody has to edit APK links anymore.

  1. One stable link. The READMEs (English plus 6 translations), the docs site, and the desktop app's "Download APK" buttons now point to https://www.onorca.dev/download/android. The marketing site redirects that URL to the current APK (stablyai/orca-marketing-website#337). The link text no longer includes a version number, because the link always serves the newest APK. This also fixes the desktop app, which still links 0.0.52 and can't be updated after it ships.
  2. One automated bump. When mobile-android-release.yml publishes a GitHub Release, a new bump-apk-download job opens a PR on the marketing site that changes its single ANDROID_RELEASE_VERSION constant. Merging that PR updates the redirect, the download page, and the site docs together.

Why this design

  • GitHub has no stable URL for the latest Android APK. releases/latest belongs to desktop, and Android releases are published as prereleases.
  • The marketing site already owns the Android version for its download page, so it's the natural single source of truth. Without the stable link, every release would need bump PRs in two repos and in shipped desktop builds.
  • I considered having the site look up the latest release from the GitHub API at request time. I rejected it because it adds a runtime dependency on the GitHub API and its rate limits to every download. A one-line PR is easier to review and deploys through the site's existing pipeline.

How the bump behaves

  • It reads the current version from the site's file. Nothing is hardcoded.
  • It never moves the version backwards. Rerunning an older release does nothing.
  • It's safe to rerun. The branch is bump/android-apk-<version>, and a rerun updates the existing open PR instead of opening a second one.
  • It doesn't fail the release. The job runs after the release is published and uses continue-on-error. If it fails, the run summary says so and explains how to fix it by hand.
  • Merging the bump PR is still manual. If a newer release ships while an older bump PR is still open, both PRs stay open. Merge the newer one and close the older one.
  • It uses the buf0-bot GitHub App, the same as homebrew-bump.yml, because GITHUB_TOKEN can't push to another repo and PRs it opens don't run checks. It pushes only one commit that changes a .ts file, so it can't hit the "workflows scope" push error.

Setup needed (Jinwoo)

  • Merge stablyai/orca-marketing-website#337 first. These links point at a URL that only exists once it deploys.
  • Confirm buf0-bot has access to stablyai/orca-marketing-website with Contents and Pull requests write permission. homebrew-bump.yml says the app is installed org-wide, but I can't see installations from here. If it's installed only on selected repos, add the marketing repo.
  • Make marketing-site merges deploy. Squash-merging a bump PR with the default message puts the PR's [skip ci] dummy commit message on main, so the site never deploys. That's why Support cmd + shift + x for striking through texts in the visual markdown editor #336 needed a manual deploy. The one-time fix is in the marketing repo settings: set the squash merge default message to "Pull request title and description". Until then, merge bump PRs with a merge commit, or run deploy.yaml by hand. Details are in stablyai/orca-marketing-website#337.
  • BUFO_BOT_PRIVATE_KEY is already a secret here (used by homebrew-bump.yml). Nothing new is needed unless it's scoped to an environment.

Testing

  • config/scripts/bump-android-apk-download-version.test.mjs covers: bump, numeric comparison (0.0.9 to 0.0.10), no-op for the same or a newer version, and a loud failure if the declaration moves.
  • Ran the job's bump step locally against a bare clone of the marketing repo with a stubbed gh. The first run created the branch and PR. A rerun force-updated the same branch and reused the PR. An older version was a no-op.
  • check-readme-local-links, the changed-code quality gate, and the renderer mobile/settings tests pass.

Not verified

The job hasn't run on GitHub. That needs a real Android release. The first live run will show whether the app token can reach the marketing repo.

READMEs, the docs site, and the desktop app now link
https://www.onorca.dev/download/android, which the marketing site
redirects to the current APK, so none of them need a per-release edit.
A published Android release opens a PR on the marketing site that bumps
its one ANDROID_RELEASE_VERSION constant; a failed bump is reported in
the job summary and does not fail the release.

Claude-Session: https://claude.ai/code/session_01JNnE9qzUZMMnqpZWCqM3nb
@Jinwoo-H
Jinwoo-H force-pushed the android-release-bumps-apk-links branch from 7f02260 to 2d8761d Compare October 13, 2026 02:16
@coderabbitai

coderabbitai Bot commented Oct 13, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: bc8236a5-07a9-4fca-9540-216ddcdfd520
📥 Commits

Reviewing files that changed from the base of the PR and between 2d8761d and 81a4d03.

📒 Files selected for processing (1)
  • .github/workflows/mobile-android-release.yml

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 6 remain after this review.

📝 Walkthrough

The Android release workflow now exposes the release status and resolved version. When publishing is enabled, a workflow job can update the marketing site's Android download version and create or reuse a pull request. A script validates and compares version values, and tests cover its update behavior. Application links, README links in several languages, and mobile documentation now point to the Android download page instead of fixed APK release URLs.

Priority: ➖ Normal

Merge Risk: 🟡 Moderate · up to 81a4d

Android download links in the app and documentation currently lead to a 404. Deploy the marketing-site route before merging so users can retrieve the APK.

Pre-merge checks · Passed 4 · Failed 1

Failed Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage Warning Docstring coverage is 33.33% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 3 functions across 4 files. (1 skipped: 1… Write docstrings for the functions missing them to satisfy the coverage threshold.
Passed Passed checks (4 passed)
Check name Status Explanation
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Title check Passed The title clearly summarizes the primary change: stable Android APK links with automated version updates after releases.
Description check Passed The description is detailed and explains the user-facing changes, implementation, rationale, setup requirements, testing, and verification limits. It does not include several template sections, includ…
Full details: Docstring Coverage

Explanation

Docstring coverage is 33.33% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 3 functions across 4 files. (1 skipped: 1 unsupported.)

  • Fix all pre-merge checks with AI
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Actionable comments posted: 2


ℹ️ Review info
⚙️ Run configuration
  • Configuration used: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 78cdc4c9-2157-406f-9a3b-fe34c7261d99
📥 Commits

Reviewing files that changed from the base of the PR and between 09ae6d2 and 2d8761d.

📒 Files selected for processing (13)
  • .github/workflows/mobile-android-release.yml
  • README.md
  • config/scripts/bump-android-apk-download-version.mjs
  • config/scripts/bump-android-apk-download-version.test.mjs
  • docs/readme/README.es.md
  • docs/readme/README.fr.md
  • docs/readme/README.ja.md
  • docs/readme/README.ko.md
  • docs/readme/README.pt.md
  • docs/readme/README.zh-CN.md
  • docs/site/content/docs/mobile.mdx
  • src/renderer/src/components/mobile/mobile-platform-copy.ts
  • src/renderer/src/components/settings/MobileSettingsPane.tsx

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 8 remain after this review.

if: failure()
run: |
echo "::warning::The release is published, but the site's Android APK download was not bumped to $VERSION."
printf '### Android APK download not bumped\n\nThe release is published, but /download/android still serves the previous APK. Rerun this job, or set `ANDROID_RELEASE_VERSION` in `src/lib/downloadTargets.ts` of %s to `%s` by hand.\n' "$SITE_REPO" "$VERSION" >> "$GITHUB_STEP_SUMMARY"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win

Suppress the false-positive ShellCheck diagnostic.

The Markdown backticks in this single-quoted printf format are intentional. ShellCheck reports SC2016 here, and actionlint reports that diagnostic as an error. Add a targeted # shellcheck disable=SC2016 before this command so actionlint validation passes. Do not switch to double quotes; the backticks would then have shell meaning. (github.com)

Source: Linters/SAST tools

const ANDROID_COPY: InstallCopy = {
ctaLabel: 'Download APK',
url: 'https://github.com/stablyai/orca/releases/download/mobile-android-v0.0.52/app-release.apk'
url: 'https://www.onorca.dev/download/android'

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🎯 Functional Correctness | 🟠 Major | ⚡ Quick win

✅ Runtime observed

🏁 Script executed:

#!/bin/bash
set -euo pipefail

curl --fail --silent --show-error --location --max-redirs 10 \
  --output /dev/null \
  --write-out 'HTTP %{http_code}\nFinal URL: %{url_effective}\n' \
  'https://www.onorca.dev/download/android'

Repository: stablyai/orca

Length of output: 262


Deploy the Android download route before merging this URL.

https://www.onorca.dev/download/android currently returns HTTP 404. Until the marketing-site route is deployed, the changed Android links lead to a missing page. Confirm that the route returns HTTP 200 and redirects to the current APK asset.

Validation command
curl --fail --silent --show-error --location --max-redirs 10 \
  --output /dev/null \
  --write-out 'HTTP %{http_code}\nFinal URL: %{url_effective}\n' \
  'https://www.onorca.dev/download/android'

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.

1 participant