feat: adding fixed version of this for using typescript

This commit is contained in:
Lucas Oskorep
2024-11-08 03:39:09 -05:00
parent a2c9319d9e
commit 02b98d4a54
7 changed files with 50 additions and 65 deletions
+6 -4
View File
@@ -14,17 +14,19 @@ dist/extension.js dist/prefs.js: node_modules
schemas/gschemas.compiled: schemas/org.gnome.shell.extensions.$(NAME).gschema.xml
glib-compile-schemas schemas
#
$(NAME).zip: dist/extension.js dist/prefs.js schemas/gschemas.compiled
@cp -r schemas dist/
#@cp -r schemas dist/
@cp metadata.json dist/
@cp stylesheet.css dist/
@(cd dist && zip ../$(NAME).zip -9r .)
pack: $(NAME).zip
install: $(NAME).zip
@touch ~/.local/share/gnome-shell/extensions/$(NAME)@$(DOMAIN)
@rm -rf ~/.local/share/gnome-shell/extensions/$(NAME)@$(DOMAIN)
@mv dist ~/.local/share/gnome-shell/extensions/$(NAME)@$(DOMAIN)
@mkdir -p ~/.local/share/gnome-shell/extensions/$(NAME)@$(DOMAIN)
@rm -rf /.local/share/gnome-shell/extensions/$(NAME)@$(DOMAIN)/*
@cp dist/* ~/.local/share/gnome-shell/extensions/$(NAME)@$(DOMAIN)/
clean:
@rm -rf dist node_modules $(NAME).zip