Skip to content

Commit d76e106

Browse files
refactor: moved complied schemas from repository responsibility to makefile responsibility
1 parent 5993760 commit d76e106

3 files changed

Lines changed: 19 additions & 6 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,4 @@ CURSOR.md
88
GEMINI.md
99
.agents
1010
coverage/
11+
schemas/gschemas.compiled

Makefile

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ UUID = workflow-tiling@konstantin.dev
22
EXT_DIR = ~/.local/share/gnome-shell/extensions/$(UUID)
33
FILES = extension.js metadata.json lib/ schemas/ prefs.js
44

5-
.PHONY: all sync install test pack enable disable clean reminder do_sync do_enable
5+
.PHONY: all sync install uninstall test pack enable disable clean reminder do_sync do_enable compile-schemas
66

77
all: sync
88

@@ -13,19 +13,26 @@ reminder:
1313
@echo "========================================================="
1414
@echo ""
1515

16-
sync: do_sync reminder
16+
compile-schemas:
17+
glib-compile-schemas schemas/
18+
19+
sync: compile-schemas do_sync reminder
1720

1821
do_sync:
1922
mkdir -p $(EXT_DIR)
2023
cp -r $(FILES) $(EXT_DIR)/
2124

22-
install: do_sync do_enable reminder
25+
install: compile-schemas do_sync
26+
@echo ""
27+
@echo "========================================================="
28+
@echo " Log out and back in, then run: make enable"
29+
@echo "========================================================="
30+
@echo ""
2331

2432
test:
2533
npm test
2634

27-
pack:
28-
glib-compile-schemas schemas/ 2>/dev/null || true
35+
pack: compile-schemas
2936
zip -r extension.zip $(FILES)
3037

3138
enable: do_enable reminder
@@ -36,5 +43,10 @@ do_enable:
3643
disable:
3744
gnome-extensions disable $(UUID)
3845

46+
uninstall:
47+
gnome-extensions disable $(UUID) 2>/dev/null || true
48+
rm -rf $(EXT_DIR)
49+
@echo "Extension uninstalled. Log out and back in to complete."
50+
3951
clean:
40-
rm -f extension.zip
52+
rm -f extension.zip schemas/gschemas.compiled

schemas/gschemas.compiled

-2.77 KB
Binary file not shown.

0 commit comments

Comments
 (0)