feat: иконки для Chrome и Firefox расширений

- extension/icons/ + extension-firefox/icons/
  - icon16.png (16x16), icon48.png (48x48), icon128.png (128x128)
  - взяты из frontend/public/assets/app-icons/
  - 48x48 сгенерирован из 64x64 через ImageMagick
- Манифесты: default_icon + icons секции для обоих браузеров
- build.sh: иконки включаются в zip/xpi архивы
This commit is contained in:
mirivlad 2026-06-06 19:21:28 +08:00
parent f6c61c32e3
commit b676ac675a
9 changed files with 28 additions and 5 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 765 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.4 KiB

View File

@ -31,6 +31,17 @@
"action": {
"default_popup": "popup/popup.html",
"default_title": "Verstak Bridge"
"default_title": "Verstak Bridge",
"default_icon": {
"16": "icons/icon16.png",
"48": "icons/icon48.png",
"128": "icons/icon128.png"
}
},
"icons": {
"16": "icons/icon16.png",
"48": "icons/icon48.png",
"128": "icons/icon128.png"
}
}

BIN
extension/icons/icon128.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

BIN
extension/icons/icon16.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 765 B

BIN
extension/icons/icon48.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.4 KiB

View File

@ -24,6 +24,17 @@
"action": {
"default_popup": "popup/popup.html",
"default_title": "Verstak Bridge"
"default_title": "Verstak Bridge",
"default_icon": {
"16": "icons/icon16.png",
"48": "icons/icon48.png",
"128": "icons/icon128.png"
}
},
"icons": {
"16": "icons/icon16.png",
"48": "icons/icon48.png",
"128": "icons/icon128.png"
}
}

View File

@ -49,13 +49,13 @@ build_chrome_extension() {
return 1
fi
# Create a clean zip: manifest.json, background.js, popup/*
# Exclude any hidden files, icons (not needed for dev install), and OS junk
# Create a clean zip: manifest.json, background.js, popup/*, icons/*
cd "$ext_dir"
zip -r "../$out_file" \
manifest.json \
background.js \
popup/ \
icons/ \
-x "*/.DS_Store" "*/Thumbs.db" "*/__MACOSX/*" "*/.git/*"
cd ..
@ -76,12 +76,13 @@ build_firefox_extension() {
fi
# Firefox xpi is a zip with .xpi extension
# Must include manifest.json at root
# Must include manifest.json at root + icons
cd "$ext_dir"
zip -r "../$out_file" \
manifest.json \
background.js \
popup/ \
icons/ \
-x "*/.DS_Store" "*/Thumbs.db" "*/__MACOSX/*" "*/.git/*"
cd ..