fix: bundle dbus.js in the pack and share logError via util.js

extension.js imports ./dbus.js, but gnome-extensions pack never bundled it,
so the packed extension (the EGO zip) was missing the module and would fail
to load. Add dbus.js and the new util.js to the pack sources.

util.js holds the shared logError helper, replacing the per-file copies in
extension.js and panel.js and the raw console.error calls in clipboardItem.js.
This commit is contained in:
Eduard Tolosa 2026-06-25 20:29:02 -05:00
parent c9f3b6b1ad
commit 3d41f39ad9
5 changed files with 20 additions and 17 deletions

View file

@ -37,6 +37,8 @@ install: schemas
pack: schemas
gnome-extensions pack $(EXTENSION_UUID) \
--extra-source=ui \
--extra-source=dbus.js \
--extra-source=util.js \
--extra-source=light.css \
--force
@echo "Packed: $(EXTENSION_UUID).shell-extension.zip"