summaryrefslogtreecommitdiff
path: root/dev/data/manifest-variants.json
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2021-05-31 13:24:40 -0400
committerGitHub <noreply@github.com>2021-05-31 13:24:40 -0400
commit003cf791b1575d2e6e1e6f4bb5cd3d7f77601d7e (patch)
tree7253898b1943f1560f50e1c715dbb72a78ad8fc2 /dev/data/manifest-variants.json
parent6da81d59c34e58454ad12afe34d363b0c1e33bc7 (diff)
Update build script (#1722)
* Add support for making non-buildable variants * Add support for running a command to assign a value * Update chrome-dev inheritance * Add base variant * Update manifest to auto-fill the version based on most recent git tag * Add support for changing the default manifest * Change the default manifest * Move some manifest utility functions into manifest-util.js * Move more manifest functionality into ManifestUtil * Revert "Update manifest to auto-fill the version based on most recent git tag" This reverts commit 2a66e40ff24f9dc545783503bcf3404f21148356.
Diffstat (limited to 'dev/data/manifest-variants.json')
-rw-r--r--dev/data/manifest-variants.json14
1 files changed, 9 insertions, 5 deletions
diff --git a/dev/data/manifest-variants.json b/dev/data/manifest-variants.json
index 5a30ad14..2703d863 100644
--- a/dev/data/manifest-variants.json
+++ b/dev/data/manifest-variants.json
@@ -116,9 +116,15 @@
],
"content_security_policy": "default-src 'self'; img-src blob: 'self'; style-src 'self' 'unsafe-inline'; media-src *; connect-src *"
},
+ "defaultVariant": "base",
"variants": [
{
+ "name": "base",
+ "buildable": false
+ },
+ {
"name": "chrome",
+ "inherit": "base",
"fileName": "yomichan-chrome.zip",
"excludeFiles": [
"sw.js",
@@ -128,6 +134,7 @@
},
{
"name": "chrome-dev",
+ "inherit": "chrome",
"fileName": "yomichan-chrome-dev.zip",
"modifications": [
{
@@ -144,15 +151,11 @@
"patternFlags": "",
"replacement": "$1. This is a development build; get the stable version here: https://tinyurl.com/yaatdjmp"
}
- ],
- "excludeFiles": [
- "sw.js",
- "js/dom/simple-dom-parser.js",
- "lib/parse5.js"
]
},
{
"name": "chrome-mv3",
+ "inherit": "base",
"fileName": "yomichan-chrome-mv3.zip",
"modifications": [
{"action": "set", "path": ["manifest_version"], "value": 3},
@@ -180,6 +183,7 @@
},
{
"name": "firefox",
+ "inherit": "base",
"fileName": "yomichan-firefox.xpi",
"modifications": [
{