improve build and package

This commit is contained in:
reya
2023-11-27 12:26:13 +07:00
parent 0bb9976497
commit a1d3958fb5
8 changed files with 143 additions and 40 deletions

View File

@@ -0,0 +1,36 @@
{
"name": "Nostr Connect",
"description": "Nostr Signer Extension",
"version": "0.1.1",
"homepage_url": "https://github.com/reyamir/nostr-connect",
"manifest_version": 3,
"icons": {
"16": "icons/icon16.png",
"32": "icons/icon32.png",
"48": "icons/icon48.png",
"128": "icons/icon128.png"
},
"options_page": "options.html",
"background": {
"service_worker": "/build/background.build.js"
},
"action": {
"default_title": "Nostr Connect",
"default_popup": "popup.html"
},
"content_scripts": [
{
"matches": ["<all_urls>"],
"js": ["/build/content-script.build.js"],
"all_frames": true
}
],
"permissions": ["storage"],
"optional_permissions": ["notifications"],
"web_accessible_resources": [
{
"resources": ["nostr-provider.js"],
"matches": ["https://*/*", "http://localhost:*/*"]
}
]
}