Building
scripts/build.sh builds the CLI and the app into dist/, with a SHA256SUMS file:
scripts/build.sh # CLI and dev APK
scripts/build.sh cli # CLI only
scripts/build.sh apk # dev APK only
scripts/build.sh apk --release # release APK, unsigned (signed releases come from CI)
scripts/build.sh --help # all options: --version-code, --version-name, --target
It needs Rust for the CLI, and a JDK (17 or newer) and the Android SDK for the app. The SDK is found through ANDROID_HOME, ANDROID_SDK_ROOT, android/local.properties or ~/Android/Sdk. The book needs mdbook 0.5: mdbook serve docs shows it while you edit.
Dev and release builds
| Dev build | Release build | |
|---|---|---|
| Package ID | dev.t342.quitlock.dev | dev.t342.quitlock |
| Signing | The local debug key | The release key, held only in CI’s secrets |
testOnly | true | false |
| Instant removal and developer tools | Present (src/debug/) | Absent |
| adb while armed | Left on | Off except while USB debugging is allowed on the phone (5 minutes) |
| Arming without Chrome or an enrolled key | Allowed | Refused |
The release certificate’s SHA-256 is compiled into the release CLI (QUITLOCK_RELEASE_CERT_SHA256 at build time). A CLI built without it provisions dev builds only, and says so. Builds aim to be reproducible, so anyone can check a release against the source (Releasing).