version 0.2 ready for upload

This commit is contained in:
2026-08-10 15:23:17 -03:00
parent 9826dc1263
commit 17ad302a6c
15 changed files with 402 additions and 143 deletions

View File

@@ -45,7 +45,7 @@ EXT_ID := logsdu
VERSION := $(shell node -p "require('./package.json').version")
XPI := $(EXT_ID)-$(VERSION).xpi
.PHONY: all build test xpi clean check-deps
.PHONY: all build chrome test xpi clean check-deps
all: build
@@ -61,6 +61,13 @@ build: check-deps
node_modules/.bin/tsc -noEmit -skipLibCheck
node esbuild.config.mjs production
# The same sources with Chrome's background key. Untested against Chrome; it
# exists so the port is a build flag rather than a fork.
chrome: check-deps
node_modules/.bin/tsc -noEmit -skipLibCheck
TARGET=chrome node esbuild.config.mjs production
@echo "Chrome build in build/ -- load it via chrome://extensions (Developer mode)."
# An .xpi is just a zip of the extension directory, with the manifest at the
# top level rather than inside a wrapper folder. The same file installs
# directly on ESR and uploads to AMO for signing.
@@ -70,13 +77,16 @@ xpi: build
@echo
@echo "Built: $(CURDIR)/$(XPI)"
@echo
@echo "To install, in Firefox:"
@echo " 1. about:config -> set xpinstall.signatures.required = false"
@echo " (only ESR, Developer Edition and Nightly honour this)"
@echo " 2. about:addons -> gear icon -> Install Add-on From File"
@echo " 3. paste this path into the file picker:"
@echo "This file is UNSIGNED. Two ways to use it:"
@echo
@echo " $(CURDIR)/$(XPI)"
@echo " Publish -- upload it at addons.mozilla.org/developers/addon/submit/"
@echo " Mozilla signs it; the signed file installs on any Firefox."
@echo
@echo " Install locally -- only on ESR, Developer Edition or Nightly:"
@echo " 1. about:config -> xpinstall.signatures.required = false"
@echo " 2. about:addons -> gear icon -> Install Add-on From File"
@echo " 3. paste this path into the file picker:"
@echo " $(CURDIR)/$(XPI)"
@echo
clean: