Skip to content

Commit

Permalink
feat(extension): Add an icon
Browse files Browse the repository at this point in the history
  • Loading branch information
augustindlt committed Jul 13, 2020
1 parent 637947b commit aa008ac
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 1 deletion.
Binary file added icon/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added icon/icon128.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added icon/icon16.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added icon/icon48.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@
"browser_action": {
"default_popup": "index.html"
},
"icons": {
"16": "icon/icon16.png",
"48": "icon/icon48.png",
"128": "icon/icon128.png"
},
"permissions": ["tabs", "storage"],
"content_security_policy": "script-src 'self' 'sha256-qqXt4wGKlb1RDeopUxHXMqZcgAktVqQnqUYlvHbHFLQ='; object-src 'self'",
"content_scripts": [
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
"scripts": {
"build:popup": "rm -rf build && cd popup && yarn build && mv build ../build",
"build:content": "cd content && yarn build",
"build:manifest": "cp manifest.json build/manifest.json",
"build:manifest": "cp manifest.json build/manifest.json && cp -R icon build/icon",
"build:icon": "sh scripts/resize_icon.sh",
"build": "npm-run-all build:popup build:content build:manifest"
},
"author": "Augustin de Latrollière",
Expand Down
4 changes: 4 additions & 0 deletions scripts/resize_icon.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Need ImageMagick installed
convert -resize 16x16 "icon/icon.png" "icon/icon16.png"
convert -resize 48x48 "icon/icon.png" "icon/icon48.png"
convert -resize 128x128 "icon/icon.png" "icon/icon128.png"

0 comments on commit aa008ac

Please sign in to comment.