Commit graph

32 commits

Author SHA1 Message Date
fiftydinar
4c028bb1d8 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.
2024-06-02 00:58:46 +02:00
fiftydinar
f50b02db2b fix(gnome-extensions): Fly-Pie extension not working
It requires hard-coded compiled schema to be in extension UUID folder, else it fails.

Rest of the explanation can be seen in code comments.
2024-06-02 00:27:33 +02:00
fiftydinar
fd5e46fbe4 fix(gnome-extensions): Fix all jq commands 2024-05-27 22:04:59 +02:00
fiftydinar
b9e10da0f8 chore(gnome-extensions): Remove -I=0 flag, since it might be incompatible with jq 2024-05-27 21:11:47 +02:00
fiftydinar
a0dab808f6
chore(gnome-extensions): Remove unneded ending log print
Co-authored-by: xyny <60004820+xynydev@users.noreply.github.com>
2024-05-27 21:07:21 +02:00
fiftydinar
8f4857c8a6
chore(gnome-extensions): Remove unneded to-do comment
Co-authored-by: xyny <60004820+xynydev@users.noreply.github.com>
2024-05-27 21:05:50 +02:00
fiftydinar
8fa97b5892 chore(gnome-extensions): Use jq instead of yq for parsing JSON 2024-05-27 21:03:25 +02:00
fiftydinar
64570aed40 fix(gnome-extensions): There is no need to use echo when bash substitution exists
Thanks to ShellCheck
2024-05-27 10:41:42 +02:00
fiftydinar
5ca57235bf fix(gnome-extensions): Use echo only, ditch sed for whitespace replace
Why use `sed` when `echo` can be utilized.

Thanks to ShellCheck.
2024-05-27 10:33:59 +02:00
fiftydinar
6c7ca18921 fix(gnome-extensions): Syntax errors reported by ShellCheck 2024-05-27 10:23:16 +02:00
fiftydinar
22f18acd65 chore(gnome-extensions): Add safe-check for main extension directory on uninstallation 2024-05-27 10:19:38 +02:00
fiftydinar
629ab53d52 refactor(gnome-extensions): Support for automatic install of latest Gnome extensions
Also adds support for uninstalling extensions.

Legacy config is still compatible, but it is advised to migrate to latest config. Users are warned about this in logs.

I find this pretty much ready, except I think about something down below.

Latest Gnome extension version, that is compatible with Gnome version of the image, is installed by default.
Legacy config format can be used to have this support, but I want to depreciate legacy config format in the future.
So Idk If I should add this feature as an option in new config format.
It can be useful in case of some extension regressions.
2024-05-27 10:04:08 +02:00
fiftydinar
774c9a8d55 chore(gnome-extensions): Add check if Gnome DE is used 2024-05-05 22:39:20 +02:00
fiftydinar
47b371c3b7 fix(gnome-extensions): Stupid missing quote 2024-04-11 21:31:26 +02:00
fiftydinar
00204a1114 fix(gnome-extensions): Extensions can't see gschema.xml, even when it's present
Gschema needs to be compiled also.

It worked for me initially, because I use `gschema-overrides` module after `gnome-extensions`, which does the same thing.

So I missed this crucial step.
2024-04-11 21:22:37 +02:00
fiftydinar
a1297a2ebd fix(gnome-extensions): Fix wget directory prefix 2024-04-11 19:39:48 +02:00
fiftydinar
305342eb3d fix(gnome-extensions): Make folder if it doesn't exist for archive 2024-04-11 19:30:58 +02:00
fiftydinar
d964693898 fix(gnome-extensions): Use wget instead of curl
`wget` might be more reliable for downloading things, which is performed in this module.

Some user faced the error with extension that didn't download fully, causing the `unzip` command to fail.
I tested the same extension & it installed successfully for me.

This was maybe a server error, maybe `curl`'s, but I will still do this change, as I have more trust in `wget` for strictly downloading things.
2024-04-11 19:22:07 +02:00
fiftydinar
b4af81b28e fix(gnome-extensions): Don't require extensions gschema file
Some extensions simply don't have preferences.
2024-04-10 21:27:20 +02:00
fiftydinar
5cc81a489b docs: Fix grammar in logs for non-specified module input 2024-04-10 19:13:19 +02:00
fiftydinar
bb56fb94a8 style: Make "DONE" in logs symmetric & get rid of gettext-domain term 2024-04-10 18:50:27 +02:00
fiftydinar
10f53b27e6 fix: Revert icons installation
It's more reliable to have them in main extension folder instead

They appear to work.
2024-04-09 14:21:06 +02:00
fiftydinar
5b4b47e6e0 style: Make icons log more readable 2024-04-09 14:07:49 +02:00
fiftydinar
6f8cef496c feat: Copy icons if they exist & add better checks for gschema 2024-04-09 13:58:53 +02:00
fiftydinar
1ed844fd85 fix: Get rid of gettext-domain key, install key is already sufficient 2024-04-09 09:09:43 +02:00
fiftydinar
c2ffe9c20e style: Add more info about which extension is installed in logs 2024-04-09 09:05:42 +02:00
fiftydinar
5ab351bfda fix: Get rid of SCHEMA_ID dependency!
gschema.xml can be copied without knowing the original name.
2024-04-08 22:16:46 +02:00
fiftydinar
a71bd6cc55 feat: Add full extension name for most error logs 2024-04-08 21:32:00 +02:00
fiftydinar
95724f2fc5 fix: Don't repeat "Gnome version" log multiple times 2024-04-08 20:53:32 +02:00
fiftydinar
c8634b9787 feat: Fail the module if some crucial metadata.json info is missing 2024-04-08 20:40:07 +02:00
fiftydinar
c501e6d8cd feat: Implement compatibility check between extension & Gnome
If non-compatible version is detected from metadata.json, build will fail.
2024-04-08 19:59:42 +02:00
fiftydinar
04d94eacb2 feat: gnome-extensions module
If you wished to install some Gnome extension, but couldn't find it in RPM, this extension will help you in that.

Basically all extensions are supported, with some rare extensions like Pano just additionally needing some system dependencies.

See README for more details.
2024-04-08 19:21:36 +02:00