docs: branch and release model, a release for every version since 0.1.0
This commit is contained in:
1 parent
5a4470fc5e
commit
5b24df82c6
3 files changed
+37
-8
No files matched your search
@@ -25,6 +25,13 @@ cp app/build/outputs/apk/release/app-release.apk dist/Stitch-<version>.apk
|
||||
~/Android/Sdk/build-tools/35.0.0/aapt dump badging dist/Stitch-<version>.apk | head -1 # verify version
|
||||
```
|
||||
|
||||
- Work on `develop` (or a `feature/<name>` branch off it). For a release, branch `release/<version>` from
|
||||
`develop`, bump the version there, build, test, then merge into `main` and back into `develop`.
|
||||
- Tag it: `v<version>-alpha.N` (tests pass), `-beta.N` (phone checklist passed), plain `v<version>` (used
|
||||
on the phone without problems). Push branches and tags, then create the Gitea release (pre-release for
|
||||
alpha/beta) and attach the APK. Token: `~/.config/gitea/token`, passed per command with
|
||||
`-c http.extraHeader`, never stored in the repo config; send a normal User-Agent to the Gitea API
|
||||
(it rejects Python's default with a 403).
|
||||
- Bump `versionCode` **and** `versionName` in `app/build.gradle.kts` first.
|
||||
- Never copy the APK before confirming the build succeeded (a stale copy once shipped as a new version).
|
||||
- **Signing:** leave the default (debug key) so builds install over the owner's phone. `-PreleaseKey` switches to the real key at `~/.stitch-release-key/` and makes the APK refuse to install over the current app — only use it for the deliberate cutover in `docs/SIGNING.md`.
|
||||
|
||||
Reference in new issue
Block a user