hex/android/scripts
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Ryan Vogel a03b60d650
Android: preview-release.sh --dry-run (#2535)
* preview-release.sh: --dry-run, and publish the APK the dry run checked

--dry-run does everything before publishing: the tag and channel checks, the
build on the builder, the APK's certificate, app id and version, and the
latest.json, README.md and release.md it would publish, written to
android/build/preview/<build> for review. It then stops; nothing is created on
GitHub. It records the commit, channel address and APK SHA-256 in checked.txt,
and a later run without --dry-run for the same commit publishes that same APK
without building again (latest.json and README.md are written again with the
publish date).

Verified: bash -n; a dry run of f1d965ae (build 2305) for anomalyco/hex's
android-preview channel, which created no tag, release or branch.

* preview-release.sh: take the badging line on the builder

head -1 on this side closed the pipe while ferry was still sending aapt2's
output, so ferry failed with Broken pipe, the retry repeated it five times and
the script stopped before its checks. The builder now sends one line.

Verified: dry run of f1d965ae (build 2305) for anomalyco/hex, below.

* preview-release.sh: write README.md before the dry run stops

The --dry-run change moved the README heredoc's first line ahead of the
publish but left its body below, so a dry run stopped on an unbound $ch.
The README body is unchanged from dev's script (diffed).

Verified: dry run of f1d965ae (build 2305) for anomalyco/hex, below.
2026-11-23 11:48:53 -05:00
..
preview-release.sh Android: preview-release.sh --dry-run (#2535) 2026-11-23 11:48:53 -05:00