fix(gnome-extensions): Fly-Pie extension not working pt.2

Forgot that this one also doesn't include `gschemas.compiled` in ZIP, unlike some extensions, so just compile the schema always to the UUID extension directory.
This commit is contained in:
fiftydinar 2024-06-02 00:58:46 +02:00
parent dce31464c1
commit 4c028bb1d8

View file

@ -89,7 +89,7 @@ if [[ ${#INSTALL[@]} -gt 0 ]]; then
if [[ "${INSTALL_EXT}" == "Fly-Pie" ]]; then
install -d -m 0755 "/usr/share/gnome-shell/extensions/${EXT_UUID}/schemas/"
install -D -p -m 0644 "${TMP_DIR}/schemas/"*.gschema.xml "/usr/share/gnome-shell/extensions/${EXT_UUID}/schemas/"
install -D -p -m 0644 "${TMP_DIR}/schemas/gschemas.compiled" "/usr/share/gnome-shell/extensions/${EXT_UUID}/schemas/"
glib-compile-schemas "/usr/share/gnome-shell/extensions/${EXT_UUID}/schemas/" &>/dev/null
else
# Regular schema installation
install -d -m 0755 "/usr/share/glib-2.0/schemas/"
@ -164,7 +164,7 @@ if [[ ${#INSTALL[@]} -gt 0 ]] && ! "${LEGACY}"; then
if [[ "${INSTALL_EXT}" == "Fly-Pie" ]]; then
install -d -m 0755 "/usr/share/gnome-shell/extensions/${EXT_UUID}/schemas/"
install -D -p -m 0644 "${TMP_DIR}/schemas/"*.gschema.xml "/usr/share/gnome-shell/extensions/${EXT_UUID}/schemas/"
install -D -p -m 0644 "${TMP_DIR}/schemas/gschemas.compiled" "/usr/share/gnome-shell/extensions/${EXT_UUID}/schemas/"
glib-compile-schemas "/usr/share/gnome-shell/extensions/${EXT_UUID}/schemas/" &>/dev/null
else
# Regular schema installation
install -d -m 0755 "/usr/share/glib-2.0/schemas/"