forked from XimeX/usrspace-browser-addon
move manifest and _locales into src
This commit is contained in:
parent
b41bf2b183
commit
a1cf58d8d3
|
@ -11,7 +11,9 @@
|
|||
"scripts": {
|
||||
"copy-browser-polyfill": "cp node_modules/webextension-polyfill/dist/browser-polyfill.js src/browser-polyfill.js",
|
||||
"copy-version": "sed -i 's/^\t\"version\": \".*\",$/\t\"version\": \"'$(rg '^\t\"version\": \"(.+)\",$' -r '$1' < package.json)'\",/' manifest.json",
|
||||
"build": "web-ext build -o -n \"_usr_space-{version}.zip\" -i README.md package.json package-lock.json",
|
||||
"prebuild": "cp LICENSE.txt src/",
|
||||
"build": "web-ext build -o -s src/ -n \"_usr_space-{version}.zip\"",
|
||||
"postbuild": "rm src/LICENSE.txt",
|
||||
"test": "echo \"Error: no test specified\" && exit 0",
|
||||
"postinstall": "npm run copy-browser-polyfill",
|
||||
"preversion": "npm test",
|
||||
|
|
|
@ -51,7 +51,7 @@ async function fetchNewData() {
|
|||
type: 'basic',
|
||||
title: browser.i18n.getMessage('stateNotificationTitle'),
|
||||
message: browser.i18n.getMessage('stateNotificationMessage', state),
|
||||
iconUrl: browser.runtime.getURL('src/icons/favicon.svg')
|
||||
iconUrl: browser.runtime.getURL('icons/favicon.svg')
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
|
@ -4,18 +4,18 @@
|
|||
"description": "__MSG_extensionDescription__",
|
||||
"version": "0.8.0",
|
||||
"icons": {
|
||||
"48": "src/icons/favicon.svg",
|
||||
"96": "src/icons/favicon.svg"
|
||||
"48": "icons/favicon.svg",
|
||||
"96": "icons/favicon.svg"
|
||||
},
|
||||
"background": {
|
||||
"page": "src/background.html"
|
||||
"page": "background.html"
|
||||
},
|
||||
"browser_action": {
|
||||
"browser_style": true,
|
||||
"default_title": "__MSG_buttonTitle__",
|
||||
"default_icon": "src/icons/favicon.svg",
|
||||
"default_icon": "icons/favicon.svg",
|
||||
"default_area": "navbar",
|
||||
"default_popup": "src/popup.html"
|
||||
"default_popup": "popup.html"
|
||||
},
|
||||
"default_locale": "de",
|
||||
"permissions": [
|
Loading…
Reference in a new issue