From 6efa3aa1e4ab08ef327ff283e2b862ece5aca693 Mon Sep 17 00:00:00 2001 From: Cedric Archambeau Date: Tue, 16 Jun 2020 15:55:42 +0200 Subject: [PATCH] Use mysite to generate a new domain id in order to allow upload on mozilla addons repository --- Makefile | 2 ++ README.md | 1 + 2 files changed, 3 insertions(+) diff --git a/Makefile b/Makefile index cb09f1d..dfb84aa 100644 --- a/Makefile +++ b/Makefile @@ -63,6 +63,8 @@ $(XPI_ARCHIVE): $(FILENAMES) @rm -f $(XPI_ARCHIVE) @$(ZIP) -9r $(XPI_ARCHIVE) $(FILENAMES) > /dev/null @if test "x$$build" != "x"; then \ + cp -f manifest.json custom/$$build/manifest.json; \ + sed -i 's/@inverse.ca/@${build}/g' custom/$$build/manifest.json; \ cd custom/$$build; \ $(ZIP) -9r ../../$(XPI_ARCHIVE) * > /dev/null; \ fi diff --git a/README.md b/README.md index 9e9c330..b7d9c59 100644 --- a/README.md +++ b/README.md @@ -22,6 +22,7 @@ To build the extension, do: % make distclean % make build=mysite ``` +In order to allow upload on mozilla addons repository, a new manifest.json is generated in custom/mysite and xpi (see id value). # Logging