summaryrefslogtreecommitdiff
path: root/dev/data/manifest-variants.json
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2020-08-09 13:09:06 -0400
committerGitHub <noreply@github.com>2020-08-09 13:09:06 -0400
commit04d47bf8a92a71ae49c320d8d7eccd50c254348e (patch)
tree44de3c7e126efd4fac37cc6a19df05c7662b2f95 /dev/data/manifest-variants.json
parent14efd8a8248b4bb8cb0d76f6a9cd4bd51efd30f8 (diff)
Build system changes (#721)
* Refactor manifest.json * Change end-of-line convention for built plain-text files * Ignore builds directory * Mark the "dev" directory as using the node environment * Create build script * Register build scripts * Remove old build script * Fix 64x64 icon * Add test to ensure manifest data is updated properly
Diffstat (limited to 'dev/data/manifest-variants.json')
-rw-r--r--dev/data/manifest-variants.json144
1 files changed, 144 insertions, 0 deletions
diff --git a/dev/data/manifest-variants.json b/dev/data/manifest-variants.json
new file mode 100644
index 00000000..bac781da
--- /dev/null
+++ b/dev/data/manifest-variants.json
@@ -0,0 +1,144 @@
+{
+ "manifest": {
+ "manifest_version": 2,
+ "name": "Yomichan",
+ "version": "20.8.3.0",
+ "description": "Japanese dictionary with Anki integration",
+ "author": "Alex Yatskov",
+ "icons": {
+ "16": "mixed/img/icon16.png",
+ "19": "mixed/img/icon19.png",
+ "32": "mixed/img/icon32.png",
+ "38": "mixed/img/icon38.png",
+ "48": "mixed/img/icon48.png",
+ "64": "mixed/img/icon64.png",
+ "128": "mixed/img/icon128.png"
+ },
+ "browser_action": {
+ "default_icon": {
+ "16": "mixed/img/icon16.png",
+ "19": "mixed/img/icon19.png",
+ "32": "mixed/img/icon32.png",
+ "38": "mixed/img/icon38.png",
+ "48": "mixed/img/icon48.png",
+ "64": "mixed/img/icon64.png",
+ "128": "mixed/img/icon128.png"
+ },
+ "default_title": "Yomichan",
+ "default_popup": "bg/context.html"
+ },
+ "background": {
+ "page": "bg/background.html",
+ "persistent": true
+ },
+ "content_scripts": [
+ {
+ "matches": [
+ "http://*/*",
+ "https://*/*",
+ "file://*/*"
+ ],
+ "js": [
+ "mixed/js/core.js",
+ "mixed/js/yomichan.js",
+ "mixed/js/comm.js",
+ "mixed/js/dom.js",
+ "mixed/js/api.js",
+ "mixed/js/dynamic-loader.js",
+ "mixed/js/frame-client.js",
+ "mixed/js/text-scanner.js",
+ "fg/js/document.js",
+ "fg/js/dom-text-scanner.js",
+ "fg/js/popup.js",
+ "fg/js/source.js",
+ "fg/js/popup-factory.js",
+ "fg/js/frame-offset-forwarder.js",
+ "fg/js/popup-proxy.js",
+ "fg/js/frontend.js",
+ "fg/js/content-script-main.js"
+ ],
+ "match_about_blank": true,
+ "all_frames": true
+ }
+ ],
+ "minimum_chrome_version": "57.0.0.0",
+ "options_page": "bg/settings.html",
+ "options_ui": {
+ "page": "bg/settings.html",
+ "open_in_tab": true
+ },
+ "permissions": [
+ "<all_urls>",
+ "storage",
+ "clipboardWrite",
+ "unlimitedStorage",
+ "nativeMessaging",
+ "webRequest",
+ "webRequestBlocking"
+ ],
+ "optional_permissions": [
+ "clipboardRead"
+ ],
+ "commands": {
+ "toggle": {
+ "suggested_key": {
+ "default": "Alt+Delete"
+ },
+ "description": "Toggle text scanning"
+ },
+ "search": {
+ "suggested_key": {
+ "default": "Alt+Insert"
+ },
+ "description": "Open search window"
+ }
+ },
+ "web_accessible_resources": [
+ "fg/float.html"
+ ],
+ "content_security_policy": "script-src 'self' 'unsafe-eval'; object-src 'self'",
+ "applications": {
+ "gecko": {
+ "id": "alex@foosoft.net",
+ "strict_min_version": "55.0"
+ }
+ }
+ },
+ "variants": [
+ {
+ "name": "default",
+ "fileName": "yomichan.zip",
+ "fileCopies": [
+ "yomichan.xpi"
+ ]
+ },
+ {
+ "name": "dev",
+ "fileName": "yomichan-dev.zip",
+ "fileCopies": [
+ "yomichan-dev.xpi"
+ ],
+ "modifications": [
+ {
+ "action": "replace",
+ "path": ["name"],
+ "pattern": "^.*$",
+ "patternFlags": "",
+ "replacement": "$& (development build)"
+ },
+ {
+ "action": "replace",
+ "path": ["description"],
+ "pattern": "^(.*)(?:\\.\\s*)?$",
+ "patternFlags": "",
+ "replacement": "$1. This is a development build; get the stable version here: https://tinyurl.com/yaatdjmp"
+ },
+ {
+ "action": "set",
+ "path": ["applications", "gecko", "id"],
+ "value": "alex.testing@foosoft.net"
+ }
+ ]
+ }
+ ]
+} \ No newline at end of file