docs: Gitea releases, per-version branches, Bitwarden key backup steps

This commit is contained in:
thekhalidsha committed 2026-09-28 11:36:54 +05:30
1 parent 48dce2853d
commit 5a4470fc5e
2 files changed
+35 -1

No files matched your search

+33
View File
@@ -48,6 +48,39 @@ tar czf stitch-release-key-backup.tar.gz -C ~ .stitch-release-key
If you lose it, every future Stitch update requires an uninstall. The key cannot be regenerated —
a new key with identical details is still a different key to Android.
### Keeping it in Bitwarden (free plan works)
Free Bitwarden accounts can't attach files, so the key file goes in as text inside a **Secure Note**.
It is 4,360 bytes, about 5,800 characters as text, well under a note's 10,000-character limit.
In a terminal on this machine (your own terminal, so the password doesn't end up in a chat log):
```sh
cat ~/.stitch-release-key/keystore.properties # the passwords and alias
base64 -w0 ~/.stitch-release-key/stitch-release.jks # the key file, as one long line of text
```
In Bitwarden: **New → Secure note**, name it `Stitch release signing key`, and add:
| Field (type) | Value |
|---|---|
| `storePassword` (hidden) | from `keystore.properties` |
| `keyPassword` (hidden) | from `keystore.properties` |
| `keyAlias` (text) | `stitch` |
| `jks-base64` (hidden) | the whole base64 line |
| `sha256` (text) | `91ce998bf62f677b43de1890b4953f0576ed1ebc328eefde301517c58d5164cd` |
**To restore** on a new machine: paste the base64 line into a file, then
```sh
mkdir -p ~/.stitch-release-key && chmod 700 ~/.stitch-release-key
base64 -d pasted.txt > ~/.stitch-release-key/stitch-release.jks
sha256sum ~/.stitch-release-key/stitch-release.jks # must equal the sha256 field above
```
and recreate `keystore.properties` from the two passwords and the alias (same four lines as today:
`storeFile`, `storePassword`, `keyAlias`, `keyPassword`; `storeFile` is the full path to the `.jks`).
## How the build uses it
It does not, yet. In `app/build.gradle.kts`: