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

2
.gitignore vendored Normal file
View file

@ -0,0 +1,2 @@
*.xpi
*.zip

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

View file

@ -1,8 +1,17 @@
{ {
"manifest_version": 2, "manifest_version": 2,
"name": "Yandex Music Custom Animation", "name": "Yandex Music Upgrade",
"version": "1.0.0", "version": "1.0.0",
"description": "Replaces Yandex Music animation with a custom video", "description": "Replaces boring Yandex Music animation",
"browser_specific_settings": {
"gecko": {
"id": "yandex-music-upgrade@nikita.ym",
"strict_min_version": "91.0",
"data_collection_permissions": {
"required": ["none"]
}
}
},
"permissions": [ "permissions": [
"activeTab", "activeTab",
"webRequest", "webRequest",
@ -19,9 +28,5 @@
"js": ["content.js"], "js": ["content.js"],
"run_at": "document_idle" "run_at": "document_idle"
} }
], ]
"icons": {
"48": "icon.png",
"96": "icon.png"
}
} }