build: build stable and beta channels with MV3
Manifest Version 2 will be deprecated in June 2024 in Chrome. This CL
switches the build system to release the beta and stable Chrome builds
with a MV3 build instead of a MV2 one.
It also removes the |web-ext lint| check in the lint job because
Chrome's MV3 builds are quite different from Firefox's MV3 builds (which
the extension doesn't provide) and this makes the |web-ext lint| check
fail. The lint job now only checks that the extension can be built.
Fixed: translateselectedtext:4
Change-Id: I2e0645aa1eac73b9e8bc7e7a551a625497127722
diff --git a/Makefile b/Makefile
index 3ae08af..e0c4470 100644
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,4 @@
-.PHONY: node_deps clean_dist deps clean_deps serve_chromium serve_chromium_mv3 serve_edge serve_edge_mv3 release release_chromium_stable release_chromium_beta release_chromium_canary release_edge build_test_extension clean_releases clean
+.PHONY: node_deps clean_dist deps clean_deps serve_chromium_mv3 serve_edge serve_edge_mv3 release release_chromium_stable release_chromium_beta release_chromium_canary release_edge build_test_extension clean_releases clean
.DEFAULT_GOAL := release
WEBPACK := ./node_modules/webpack-cli/bin/cli.js
@@ -17,9 +17,6 @@
rm -rf node_modules
-serve_chromium: deps
- $(WEBPACK) --mode development --env browser_target=chromium --watch
-
serve_chromium_mv3: deps
$(WEBPACK) --mode development --env browser_target=chromium_mv3 --watch
@@ -32,14 +29,14 @@
release: release_chromium_stable release_chromium_beta release_edge
release_chromium_stable: deps
- $(WEBPACK) --mode production --env browser_target=chromium
- $(RELEASE_SCRIPT) -c stable -b chromium -f
- rm -rf dist/chromium
+ $(WEBPACK) --mode production --env browser_target=chromium_mv3
+ $(RELEASE_SCRIPT) -c stable -b chromium_mv3 -f
+ rm -rf dist/chromium_mv3
release_chromium_beta: deps
- $(WEBPACK) --mode production --env browser_target=chromium
- $(RELEASE_SCRIPT) -c beta -b chromium -f
- rm -rf dist/chromium
+ $(WEBPACK) --mode production --env browser_target=chromium_mv3
+ $(RELEASE_SCRIPT) -c beta -b chromium_mv3 -f
+ rm -rf dist/chromium_mv3
release_chromium_canary: deps
$(WEBPACK) --mode production --env browser_target=chromium_mv3 --env canary
@@ -53,8 +50,8 @@
# Target to build the extension for webext lint in the Zuul Check Pipeline.
build_test_extension: deps
- $(WEBPACK) --mode production --env browser_target=chromium
- $(RELEASE_SCRIPT) -c stable -b chromium -f
+ $(WEBPACK) --mode production --env browser_target=chromium_mv3
+ $(RELEASE_SCRIPT) -c stable -b chromium_mv3 -f
clean_releases:
rm -rf out