Document the Blueprint and build traps found during M0
This commit is contained in:
1 file changed
+14
@@ -60,6 +60,20 @@ UI lives in `data/resources/ui/*.blp` (Blueprint) and is compiled to `.ui` by
|
||||
6. Requests arrive NIP‑44 encrypted; fall back to NIP‑04 for legacy clients.
|
||||
Respond NIP‑44.
|
||||
|
||||
## Blueprint / Meson traps
|
||||
|
||||
1. In Blueprint, **property assignments end with `;`, child objects do not**. A
|
||||
widget inside a slot (e.g. `[bottom] Adw.Banner { … }`) must *not* have a
|
||||
trailing semicolon, or you get `error: Unexpected tokens`.
|
||||
2. `blueprint-compiler batch-compile OUTPUT SOURCEDIR FILES…` preserves paths
|
||||
relative to `SOURCEDIR`, so the custom_target must use `output: '.'`. A named
|
||||
output dir silently produces `ui/ui/window.ui` and then
|
||||
`glib-compile-resources` fails with "Failed to locate … in any source
|
||||
directory".
|
||||
3. The app aborts at startup with `Settings schema … is not installed` unless dev
|
||||
runs set `GSETTINGS_SCHEMA_DIR=_build/data` (see the run recipes in
|
||||
`README.md`).
|
||||
|
||||
## Testing
|
||||
|
||||
- Loopback with no public relays and no display:
|
||||
|
||||
Reference in new issue
Block a user