F-Droid
Categories:
In F-Droid, open Settings → Repositories, tap +, and scan the QR code or enter the repository address.
https://fdroid.alwaldend.com/alwaldend/repo/

Apps
Android launcher
Text-only Android launcher built with Kotlin and Jetpack Compose
ActivityWatch ingester Android
Accessibility-based Android collector that sends browser URLs to ActivityWatch
Repository signing
The publishing machine generates the F-Droid repository and builds the signed index JARs. Vault Transit holds the private key and signs the index digests. The download server serves the resulting files over HTTPS.
Provision the Transit signing identity
For the existing repository, an authorized Vault operator imports the original
RSA-4096 private key into transit/default/keys/src_infra_fdroid and retains
the original X.509 certificate. The certificate fingerprint must match the
repository setup link and the previously published index. The original
PKCS#12 keystore is in the existing repository_signing KV entry.
Use restricted, temporary storage on a trusted publishing machine for the one-time extraction. Export the original leaf certificate and convert the private key to unencrypted PKCS#8 DER, then base64-encode the DER for Vault’s wrapped import. From an authorized Vault session, pass the files by absolute path.
bazel run //:vault -- transit import transit/default/keys/src_infra_fdroid \
"@$key_base64_file" type=rsa-4096 exportable=false allow_plaintext_backup=false
bazel run //:vault -- kv put -mount=secrets -cas=0 \
alwaldend.com/vault1/approles/src_infra_fdroid/repository_signing_certificate \
"certificate=@$certificate_pem_file"
Apply the F-Droid AppRole policy through //infra/fdroid/approle:tf after
the key and public certificate are available. The release AppRole can sign
with the Transit key and read the public certificate. Access to the former
private-key entry is denied to that role. Remove the temporary import files
after verifying the imported identity and keep the repository certificate
stable across releases.
Collect signed APKs
For a production deployment, select the weekly releases/YYYY.W branch
using the repository release workflow.
Run al version show --format json to confirm the release channel and version
before building. For a follow-up update in the same week, use the next patch
on that release branch.
Build and sign Android Launcher and ActivityWatch Ingester through their
project-owned launcher
and ingester
targets. The apps attribute of the Bazel repository rule selects app metadata
targets. Their package names and the selected signed APKs supply the
packages entries in the generated index.
Sign a repository update
Pass a signed APK for each app being updated and a new output directory. Use a JDK and Android SDK Build Tools as required by the pinned F-Droid wrapper.
bazel run //infra/fdroid:sign -- \
--redeploy com.alwaldend.src.projects.android_launcher=out/release-apks/android_launcher.apk \
--output-directory out/fdroid-release
Repeat --redeploy to update more apps. The target fetches the deployed index
from repo_url in config.yml and verifies it with the repository’s
public certificate. It downloads and verifies the published APKs for apps
without a local replacement. A replacement must use the app’s existing
signing key and a higher version code, or be the exact APK published for
that code. Identical versions and metadata leave the output directory absent.
Use --previous-repo to override the URL, or pass --no-previous-repo to build
entirely from local artifacts. Supply a --redeploy for every app in local-only
mode.
Publish the public tree
The signing target publishes the v2 index format. It generates index-v2.json and its signed entry.jar
in out/fdroid-release/repo/. The repository configuration, selected app
targets, and app metadata are tracked in Git.
Each app owns its F-Droid metadata in the project’s fdroid/ directory.
Bazel renders the repository PNG from the
shared monogram SVG. The PNG is a
build output and is included in the signed repository under repo/icons/.
Publish the output directory to /srv/download/infra/fdroid/alwaldend/ on both
download hosts under the infrastructure publication root.
Before replacing a published tree, compare any previous index SHA-256 reported
by the target with the destination’s index under the publication lock. If the
digests differ, regenerate from the current published index.
Clients add https://fdroid.alwaldend.com/alwaldend/repo/.
To host another repository, publish its output in
/srv/download/infra/fdroid/<name>/ and configure its client URL as
https://fdroid.alwaldend.com/<name>/repo/. Keep the APKs, signed entry points,
and referenced files from the same signing run together.