From 395ce2fb622abf9a1a14121f0c73df99abe5a551 Mon Sep 17 00:00:00 2001 From: Bauke Date: Sat, 1 Jul 2023 11:29:19 +0200 Subject: [PATCH] Add explicit target handling for web-ext run. --- Makefile.toml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Makefile.toml b/Makefile.toml index dceab2c..ff8a7ab 100644 --- a/Makefile.toml +++ b/Makefile.toml @@ -53,7 +53,10 @@ args = ["web-ext", "build", "--config=build/web-ext-${BROWSER}.json"] [tasks.run] clear = true command = "pnpm" -args = ["web-ext", "run", "--config=build/web-ext-${BROWSER}.json"] +# Set --target explicitly, since web-ext for some reason doesn't use the target +# set in the configuration file. https://github.com/mozilla/web-ext/issues/1862 +env = { TARGET = { source = "${BROWSER}", default_value = "${BROWSER}", mapping = { "firefox" = "firefox-desktop" } } } +args = ["web-ext", "run", "--target=${TARGET}", "--config=build/web-ext-${BROWSER}.json"] # Alias for `WATCH=true makers build`. [tasks.watch]