From 003cf791b1575d2e6e1e6f4bb5cd3d7f77601d7e Mon Sep 17 00:00:00 2001 From: toasted-nutbread Date: Mon, 31 May 2021 13:24:40 -0400 Subject: 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. --- dev/data/manifest-variants.json | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'dev/data/manifest-variants.json') 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": [ { -- cgit v1.2.3