makefile, gitignore
This commit is contained in:
parent
be1c2eb98a
commit
95a6d04e23
3 changed files with 31 additions and 7 deletions
2
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
*.xpi
|
||||
*.zip
|
||||
17
Makefile
Normal file
17
Makefile
Normal 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
|
||||
|
|
@ -1,8 +1,17 @@
|
|||
{
|
||||
"manifest_version": 2,
|
||||
"name": "Yandex Music Custom Animation",
|
||||
"name": "Yandex Music Upgrade",
|
||||
"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": [
|
||||
"activeTab",
|
||||
"webRequest",
|
||||
|
|
@ -19,9 +28,5 @@
|
|||
"js": ["content.js"],
|
||||
"run_at": "document_idle"
|
||||
}
|
||||
],
|
||||
"icons": {
|
||||
"48": "icon.png",
|
||||
"96": "icon.png"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue