Skip to content

Commit 7bbb518

Browse files
author
Timothy Johnson
committed
Rasterize icon
1 parent e5eb5e2 commit 7bbb518

File tree

4 files changed

+21
-19
lines changed

4 files changed

+21
-19
lines changed

dest/manifest.json

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,11 @@
44
"version": "0.1.1",
55
"description": "An extension that allows inspection of Svelte component hierarchy and state in the Firefox and Chrome developer tools.",
66
"icons": {
7-
"24": "svelte-logo.svg",
8-
"48": "svelte-logo.svg",
9-
"96": "svelte-logo.svg"
7+
"16": "icon-16.png",
8+
"24": "icon-24.png",
9+
"48": "icon-48.png",
10+
"96": "icon-96.png",
11+
"128": "icon-128.png"
1012
},
1113
"permissions": ["tabs", "webRequest", "webRequestBlocking", "<all_urls>"],
1214
"background": {

dest/svelte-logo.svg

Lines changed: 0 additions & 15 deletions
This file was deleted.

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
"repository": "github:RedHatter/svelte-devtools",
77
"scripts": {
88
"dev": "http-serve test/public -p 8940 & web-ext run --bc -s dest -u http://127.0.0.1:8940 -u about:debugging && kill $!",
9-
"build": "$npm_execpath run build:format && rollup -c",
9+
"build": "$npm_execpath run build:format && rollup -c && $npm_execpath run build:icon",
10+
"build:icon": "for size in 16 24 48 96 128; do if [ src/svelte-logo.svg -nt dest/icon-$size.png ]; then inkscape src/svelte-logo.svg -z -e dest/icon-$size.png -w $size; fi; done",
1011
"build:format": "node --experimental-modules ./scripts/format.mjs",
1112
"package": "$npm_execpath run build && web-ext build -s dest",
1213
"release": ". ./credentials && web-ext sign -s dest --api-key=$key --api-secret=$secret"

src/svelte-logo.svg

Lines changed: 14 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)