Files
raucao 5ff4d5d0f0 Add a nightly .Devel build profile and icon
A `-Dprofile=development` build is a separate application identity: the app
id carries a `.Devel` suffix, and the desktop file, AppStream id, icon,
GSettings schema id/path, GResource bundle name, D-Bus name and data
directories all follow, with a `regent-devel` binary so it installs beside
the stable one instead of replacing it. The Rust side switches `APP_ID` on
a cargo `devel` feature (a feature, not an env var, so the shared cargo
target dir cannot return a binary built for the other profile); the
metadata files become `.in` templates configured from `app_id`.

The nightly uses the banded nightly app icon and libadwaita's striped
`devel` header bar. The dev deploy selects it with
`REGENT_PROFILE=development`; the release `--pkg` build stays stable, and a
nightly install leaves the `nostrconnect://` scheme handler to the stable
build.

Two Meson details this depends on: the GResource prefix is fixed by
`resources.gresource.xml` (not the resource id) and is shared by both
profiles, and `gnome.compile_schemas()` scans the source directory, so the
generated schema is compiled by a `glib-compile-schemas` target instead.
2026-11-28 13:44:44 +04:00

24 lines
789 B
Meson

icon_dir = get_option('datadir') / 'icons' / 'hicolor'
# The full-colour icon is the nightly variant in a development build. Either way
# it is installed under the *selected* app id, which is how the shell resolves an
# app icon from the window's application id.
app_icon = 'hicolor/scalable/apps/org.kosmos.raucao.Regent.svg'
if devel
app_icon = 'hicolor/scalable/apps/org.kosmos.raucao.Regent.Devel.svg'
endif
install_data(
app_icon,
install_dir: icon_dir / 'scalable' / 'apps',
rename: app_id + '.svg',
)
# The symbolic icon is shared: a striped symbolic is optional, but the Devel id
# must still resolve one.
install_data(
'hicolor/symbolic/apps/org.kosmos.raucao.Regent-symbolic.svg',
install_dir: icon_dir / 'symbolic' / 'apps',
rename: app_id + '-symbolic.svg',
)