Package the distributor icons and refresh the hicolor cache (D-112)

package.sh now writes archipelago.svg and archipelago-symbolic.svg from tokens
rendered by builder::lib, so every edition ships the identity used by Discover
and GNOME Software. Both desktop finalizers run gtk-update-icon-cache after the
icon is in place.
This commit is contained in:
Archipelago 2026-11-14 13:14:46 +03:00
parent beb96f4bd2
commit 666cb76403
4 changed files with 16 additions and 0 deletions

View file

@ -31,6 +31,8 @@ install -Dm644 /job/core/usr/share/archipelago/desktop/toolbox-registries.conf /
arch-chroot /job/core glib-compile-schemas /usr/share/glib-2.0/schemas
arch-chroot /job/core update-desktop-database /usr/share/applications
arch-chroot /job/core update-mime-database /usr/share/mime
# Publish the packaged distributor icon to the shared hicolor cache.
arch-chroot /job/core gtk-update-icon-cache -f -t /usr/share/icons/hicolor
# Until the Archipelago backend exists, a probe must never activate ALPM mutation.
mkdir -p /job/core/etc/systemd/system
# D-095: stock Software plus native OS/Flatpak plugins, no PackageKit packages.

View file

@ -61,6 +61,8 @@ install -Dm644 /job/core/usr/share/archipelago/desktop/toolbox-registries.conf /
arch-chroot /job/core glib-compile-schemas /usr/share/glib-2.0/schemas
arch-chroot /job/core update-desktop-database /usr/share/applications
arch-chroot /job/core update-mime-database /usr/share/mime
# Publish the packaged distributor icon to the shared hicolor cache.
arch-chroot /job/core gtk-update-icon-cache -f -t /usr/share/icons/hicolor
mkdir -p /job/core/etc/systemd/system
# D-095: stock Discover plus native OS/Flatpak backends, no PackageKit packages.
arch-chroot /job/core pacman --config /dev/null --dbpath /usr/lib/archipelago/package-db -Qq > /job/evidence/desktop-package-names.txt

View file

@ -28,6 +28,14 @@ POLKIT_RULES
mkdir -p "$pkg/runtime/usr/share/archipelago/keys"
install -m644 /job/update.json "$pkg/runtime/usr/lib/archipelago/update.json"
install -m644 /job/ostree.asc "$pkg/runtime/usr/share/archipelago/keys/ostree.asc"
# Distributor identity for the native software adapters (Discover, GNOME Software).
mkdir -p "$pkg/runtime/usr/share/icons/hicolor/scalable/apps"
cat > "$pkg/runtime/usr/share/icons/hicolor/scalable/apps/archipelago.svg" <<'ARCHIPELAGO_ICON'
@@ARCHIPELAGO_ICON@@
ARCHIPELAGO_ICON
cat > "$pkg/runtime/usr/share/icons/hicolor/scalable/apps/archipelago-symbolic.svg" <<'ARCHIPELAGO_SYMBOLIC_ICON'
@@ARCHIPELAGO_SYMBOLIC_ICON@@
ARCHIPELAGO_SYMBOLIC_ICON
export GNUPGHOME=/etc/pacman.d/gnupg
fingerprint=$(gpg --batch --with-colons --list-secret-keys | awk -F: '$1=="fpr" {print $10; exit}')
[[ $fingerprint =~ ^[A-F0-9]{40}$ ]]

View file

@ -28,6 +28,8 @@ fn render_iso(kde: bool) -> String {
.replace("@@SYSTEM_POLKIT_ACTIONS@@", include_str!("../../system/integrations/dbus/org.archipelago.system.policy"))
.replace("@@SYSTEM_POLKIT_RULES@@", include_str!("../../system/integrations/dbus/50-archipelago-system.rules"))
.replace("@@SYSTEM_BUS_XML@@", include_str!("../../contracts/dbus/org.archipelago.System1.xml"))
.replace("@@ARCHIPELAGO_ICON@@", include_str!("../../system/integrations/icons/archipelago.svg"))
.replace("@@ARCHIPELAGO_SYMBOLIC_ICON@@", include_str!("../../system/integrations/icons/archipelago-symbolic.svg"))
.replace("@@GNOME_PACKAGE@@", &gnome);
let layer = profile(include_str!("../adapters/gnome-layer.sh"))
.replace(if kde { "@@KDE_ASSETS@@" } else { "@@GNOME_ASSETS@@" }, &gnome);
@ -61,6 +63,8 @@ pub fn build_container_runner_script() -> Result<String, String> {
.replace("@@SYSTEM_POLKIT_ACTIONS@@", include_str!("../../system/integrations/dbus/org.archipelago.system.policy"))
.replace("@@SYSTEM_POLKIT_RULES@@", include_str!("../../system/integrations/dbus/50-archipelago-system.rules"))
.replace("@@SYSTEM_BUS_XML@@", include_str!("../../contracts/dbus/org.archipelago.System1.xml"))
.replace("@@ARCHIPELAGO_ICON@@", include_str!("../../system/integrations/icons/archipelago.svg"))
.replace("@@ARCHIPELAGO_SYMBOLIC_ICON@@", include_str!("../../system/integrations/icons/archipelago-symbolic.svg"))
.replace("@@GNOME_PACKAGE@@", "");
Ok(include_str!("../adapters/build-iso.sh")
.replace("@@PACKAGE_SCRIPT@@", &package)