Periodic commit

This commit is contained in:
NeilClack
2026-08-13 13:28:13 -05:00
parent bea9a86358
commit c35f928c85
4 changed files with 54 additions and 9 deletions
+15
View File
@@ -153,6 +153,21 @@ Rotate the key by building with a new value and shipping the new binary. The
Nix package accepts the same value via `callPackage ./nix/package.nix {
apiKey = "…"; }`; the flake itself never embeds one.
#### Version + API key in one configure
`APP_VERSION` and `API_KEY` are independent CMake cache variables, so pass
both — plus the build type — in a single configure:
```sh
cmake -S . -B build -G Ninja -DCMAKE_BUILD_TYPE=Debug \
-DAPP_VERSION="1.2.3" \
-DAPI_KEY="${{ secrets.PORTAL_API_KEY }}"
cmake --build build
```
`-D` values always win over the `APP_VERSION` / `API_KEY` environment
variables, which `nix develop` seeds from the ambient environment.
### Building with Nix
The flake supports `x86_64-linux` and `aarch64-linux` (the deployment