-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
33 lines (25 loc) · 879 Bytes
/
Makefile
File metadata and controls
33 lines (25 loc) · 879 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
UUID = matrix-status@nurefexc.com
DEST = $(HOME)/.local/share/gnome-shell/extensions/$(UUID)
.PHONY: all install compile clean restart lint
all: compile install
compile:
@echo "Compiling schemas..."
glib-compile-schemas schemas/
lint:
@echo "Running linter..."
npx eslint .
# Local installation (use with caution)
install: compile
@echo "Installing extension to $(DEST)..."
mkdir -p $(DEST)
cp -r schemas icons extension.js prefs.js metadata.json stylesheet.css LICENSE README.md $(DEST)
@echo "Installation complete."
# Create a zip for extensions.gnome.org
zip: compile
@echo "Creating extension zip..."
zip -r $(UUID).shell-extension.zip schemas icons extension.js prefs.js metadata.json stylesheet.css LICENSE README.md -x "schemas/gschemas.compiled"
restart:
gnome-extensions disable $(UUID) || true
gnome-extensions enable $(UUID)
clean:
rm -rf $(DEST)