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:
parent
f6c61c32e3
commit
b676ac675a
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 |
|
|
@ -31,6 +31,17 @@
|
||||||
|
|
||||||
"action": {
|
"action": {
|
||||||
"default_popup": "popup/popup.html",
|
"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"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
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 |
|
|
@ -24,6 +24,17 @@
|
||||||
|
|
||||||
"action": {
|
"action": {
|
||||||
"default_popup": "popup/popup.html",
|
"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"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -49,13 +49,13 @@ build_chrome_extension() {
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Create a clean zip: manifest.json, background.js, popup/*
|
# Create a clean zip: manifest.json, background.js, popup/*, icons/*
|
||||||
# Exclude any hidden files, icons (not needed for dev install), and OS junk
|
|
||||||
cd "$ext_dir"
|
cd "$ext_dir"
|
||||||
zip -r "../$out_file" \
|
zip -r "../$out_file" \
|
||||||
manifest.json \
|
manifest.json \
|
||||||
background.js \
|
background.js \
|
||||||
popup/ \
|
popup/ \
|
||||||
|
icons/ \
|
||||||
-x "*/.DS_Store" "*/Thumbs.db" "*/__MACOSX/*" "*/.git/*"
|
-x "*/.DS_Store" "*/Thumbs.db" "*/__MACOSX/*" "*/.git/*"
|
||||||
cd ..
|
cd ..
|
||||||
|
|
||||||
|
|
@ -76,12 +76,13 @@ build_firefox_extension() {
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Firefox xpi is a zip with .xpi extension
|
# Firefox xpi is a zip with .xpi extension
|
||||||
# Must include manifest.json at root
|
# Must include manifest.json at root + icons
|
||||||
cd "$ext_dir"
|
cd "$ext_dir"
|
||||||
zip -r "../$out_file" \
|
zip -r "../$out_file" \
|
||||||
manifest.json \
|
manifest.json \
|
||||||
background.js \
|
background.js \
|
||||||
popup/ \
|
popup/ \
|
||||||
|
icons/ \
|
||||||
-x "*/.DS_Store" "*/Thumbs.db" "*/__MACOSX/*" "*/.git/*"
|
-x "*/.DS_Store" "*/Thumbs.db" "*/__MACOSX/*" "*/.git/*"
|
||||||
cd ..
|
cd ..
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue