summaryrefslogtreecommitdiff
path: root/dev/data
diff options
context:
space:
mode:
Diffstat (limited to 'dev/data')
-rw-r--r--dev/data/manifest-variants.json74
1 files changed, 56 insertions, 18 deletions
diff --git a/dev/data/manifest-variants.json b/dev/data/manifest-variants.json
index 587a41f8..36e24bad 100644
--- a/dev/data/manifest-variants.json
+++ b/dev/data/manifest-variants.json
@@ -62,7 +62,6 @@
}
],
"minimum_chrome_version": "57.0.0.0",
- "options_page": "bg/settings.html",
"options_ui": {
"page": "bg/settings.html",
"open_in_tab": true
@@ -103,28 +102,67 @@
"fg/float.html",
"bg/template-renderer.html"
],
- "content_security_policy": "script-src 'self' 'unsafe-eval'; object-src 'self'",
- "applications": {
- "gecko": {
- "id": "alex@foosoft.net",
- "strict_min_version": "55.0"
- }
- }
+ "content_security_policy": "script-src 'self'; object-src 'self'"
},
"variants": [
{
- "name": "default",
- "fileName": "yomichan.zip",
- "fileCopies": [
- "yomichan.xpi"
+ "name": "chrome",
+ "fileName": "yomichan-chrome.zip"
+ },
+ {
+ "name": "chrome-dev",
+ "fileName": "yomichan-chrome-dev.zip",
+ "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"
+ }
+ ]
+ },
+ {
+ "name": "firefox",
+ "fileName": "yomichan-firefox.xpi",
+ "modifications": [
+ {
+ "action": "remove",
+ "path": ["web_accessible_resources"],
+ "item": "bg/template-renderer.html"
+ },
+ {
+ "action": "delete",
+ "path": ["sandbox"]
+ },
+ {
+ "action": "set",
+ "path": ["content_security_policy"],
+ "value": "script-src 'self' 'unsafe-eval'; object-src 'self'"
+ },
+ {
+ "action": "set",
+ "path": ["browser_specific_settings"],
+ "value": {
+ "gecko": {
+ "id": "alex@foosoft.net",
+ "strict_min_version": "57.0"
+ }
+ }
+ }
]
},
{
- "name": "dev",
- "fileName": "yomichan-dev.zip",
- "fileCopies": [
- "yomichan-dev.xpi"
- ],
+ "name": "firefox-dev",
+ "inherit": "firefox",
+ "fileName": "yomichan-firefox-dev.xpi",
"modifications": [
{
"action": "replace",
@@ -142,7 +180,7 @@
},
{
"action": "set",
- "path": ["applications", "gecko", "id"],
+ "path": ["browser_specific_settings", "gecko", "id"],
"value": "alex.testing@foosoft.net"
}
]