From cc1b7aba4934c86fec9367c3a702f7a365c7a771 Mon Sep 17 00:00:00 2001 From: Roy Olav Purser Date: Sat, 12 Jun 2021 19:55:22 +0200 Subject: [PATCH] add icon to chrome extension --- .gitignore | 1 + chrome-icons.sh | 9 +++++++++ chrome/manifest.json | 9 ++++++++- 3 files changed, 18 insertions(+), 1 deletion(-) create mode 100755 chrome-icons.sh diff --git a/.gitignore b/.gitignore index defe7d3..d633be4 100644 --- a/.gitignore +++ b/.gitignore @@ -9,4 +9,5 @@ app/app/release/* app/.idea/* app/.gradle/* app/gradle/* +chrome/*.png sources.json diff --git a/chrome-icons.sh b/chrome-icons.sh new file mode 100755 index 0000000..f1e5084 --- /dev/null +++ b/chrome-icons.sh @@ -0,0 +1,9 @@ +#!/usr/bin/env bash +dir=$(dirname $(realpath $0)) + +inkscape --export-area-page --export-width=16 --export-height=16 "${dir}/frontend/favicon.svg" --export-filename="${dir}/chrome/icon-16.png" +inkscape --export-area-page --export-width=19 --export-height=19 "${dir}/frontend/favicon.svg" --export-filename="${dir}/chrome/icon-19.png" +inkscape --export-area-page --export-width=38 --export-height=38 "${dir}/frontend/favicon.svg" --export-filename="${dir}/chrome/icon-38.png" +inkscape --export-area-page --export-width=48 --export-height=48 "${dir}/frontend/favicon.svg" --export-filename="${dir}/chrome/icon-48.png" +inkscape --export-area-page --export-width=128 --export-height=128 "${dir}/frontend/favicon.svg" --export-filename="${dir}/chrome/icon-128.png" + diff --git a/chrome/manifest.json b/chrome/manifest.json index c623ad1..1c8ea0c 100644 --- a/chrome/manifest.json +++ b/chrome/manifest.json @@ -1,6 +1,13 @@ { "name": "Proxy Stream", - "version": "113.0", + "icons": { + "16": "icon-16.png", + "19": "icon-19.png", + "38": "icon-38.png", + "48": "icon-48.png", + "128": "icon-128.png" + }, + "version": "116.0", "manifest_version": 3, "permissions": ["tabs"], "action": {