From 0d0728fac0efa567af4da26aa4954829a6ea21a1 Mon Sep 17 00:00:00 2001 From: toasted-nutbread Date: Fri, 18 Dec 2020 16:46:00 -0500 Subject: Build exclude files (#1125) * Add support for excluding files from the build process * Delete existing file before creating .zip * Exclude sw.js from non-MV3 builds --- dev/data/manifest-variants.json | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'dev/data') diff --git a/dev/data/manifest-variants.json b/dev/data/manifest-variants.json index 0532ab9b..43d06032 100644 --- a/dev/data/manifest-variants.json +++ b/dev/data/manifest-variants.json @@ -108,7 +108,10 @@ "variants": [ { "name": "chrome", - "fileName": "yomichan-chrome.zip" + "fileName": "yomichan-chrome.zip", + "excludeFiles": [ + "sw.js" + ] }, { "name": "chrome-dev", @@ -128,6 +131,9 @@ "patternFlags": "", "replacement": "$1. This is a development build; get the stable version here: https://tinyurl.com/yaatdjmp" } + ], + "excludeFiles": [ + "sw.js" ] }, { @@ -179,6 +185,9 @@ } } } + ], + "excludeFiles": [ + "sw.js" ] }, { @@ -205,6 +214,9 @@ "path": ["browser_specific_settings", "gecko", "id"], "value": "alex.testing@foosoft.net" } + ], + "excludeFiles": [ + "sw.js" ] } ] -- cgit v1.2.3