makefile, gitignore

This commit is contained in:
yash 2026-07-21 14:17:32 +03:00
parent be1c2eb98a
commit 95a6d04e23
3 changed files with 31 additions and 7 deletions

17
Makefile Normal file
View file

@ -0,0 +1,17 @@
NAME := yandex-music-upgrade
VERSION := $(shell python3 -c "import json; print(json.load(open('manifest.json'))['version'])")
XPI := $(NAME)-$(VERSION).xpi
SOURCES := manifest.json background.js content.js
ICONS := $(wildcard *.png)
.PHONY: all clean
all: $(XPI)
$(XPI): $(SOURCES) $(ICONS)
zip -r $@ $(SOURCES) $(ICONS)
@echo "Готово: $@"
clean:
rm -f $(NAME)-*.xpi