diff --git a/Makefile b/Makefile index 0740ac2..f2fc82a 100644 --- a/Makefile +++ b/Makefile @@ -15,15 +15,20 @@ XPI_UNSIGNED_DIR := XPI/unsigned XPI_SIGNED_DIR := XPI/signed XPI_OUTPUT := $(XPI_UNSIGNED_DIR)/$(XPI_FILE) EXTENSION_FILES := manifest.json logo.svg icon-16.png icon-32.png icon-48.png icon-96.png options.css options.html options.js popup.css popup.html popup.js +EXTENSION_SOURCES := $(addprefix webextension/,$(EXTENSION_FILES)) +XPI_VALIDATOR := scripts/release/validate_xpi.py .PHONY: all logos xpi check-tools clean-generated -all: logos +all: logos logos: check-tools $(GENERATED_LOGOS) -xpi: logos + +xpi: $(XPI_OUTPUT) + +$(XPI_OUTPUT): $(EXTENSION_SOURCES) $(GENERATED_LOGOS) $(XPI_VALIDATOR) @test -n "$(EXTENSION_VERSION)" || { echo "Error: extension version is missing from webextension/manifest.json" >&2; exit 1; } @mkdir -p $(XPI_UNSIGNED_DIR) $(XPI_SIGNED_DIR) @rm -f $(XPI_OUTPUT) diff --git a/VIBE/CHAT_LOG.md b/VIBE/CHAT_LOG.md index 39eea53..43691aa 100644 --- a/VIBE/CHAT_LOG.md +++ b/VIBE/CHAT_LOG.md @@ -659,6 +659,12 @@ Put the Mastodon button on the lower-right corner of the log entry. ### Assistant outcome Split the Mastodon control from the Edit/Delete action group and positioned it at the lower-right corner of user-specific link entries. Reserved bottom space in each entry to prevent overlap. +### User +Make sure that the Makefile also rebuilds the XPI if any of its source files are changed. + +### Assistant outcome +Changed the unsigned XPI into a dependency-aware Make target with explicit dependencies on all packaged extension sources and the XPI validator. Confirmed a forced build succeeds and the real archive target reports up to date when unchanged. + ### User Change the Mastodon button location to immediately below the Edit and Delete buttons. diff --git a/VIBE/PROMPTS.md b/VIBE/PROMPTS.md index 3bacaf4..8a00276 100644 --- a/VIBE/PROMPTS.md +++ b/VIBE/PROMPTS.md @@ -120,6 +120,7 @@ 114. In the frontend do not show edit buttons on the home page even when a user is logged in. On the // page show the edit button on the right of the entry. Also add a delete button. 115. Put the buttons on the right hand side of the link item, make the buttons smaller and same color scheme 116. Put the mastodon button on the lower right corner of the log entry +117. Make sure that the makefile also rebuilds XPI if any of its source files are changed 117. Change that location to be immediately below the edit and delete button 116. When the user is authorized and on its // page show a Mastodon post button with logo; after posting keep it functional but change its color. diff --git a/XPI/unsigned/LinkLog-0.1.0.xpi b/XPI/unsigned/LinkLog-0.1.0.xpi index e3a1bd7..59477fe 100644 Binary files a/XPI/unsigned/LinkLog-0.1.0.xpi and b/XPI/unsigned/LinkLog-0.1.0.xpi differ diff --git a/webextension/icon-16.png b/webextension/icon-16.png index 5d1a922..b18be89 100644 Binary files a/webextension/icon-16.png and b/webextension/icon-16.png differ diff --git a/webextension/icon-32.png b/webextension/icon-32.png index d2dcdff..b0b701c 100644 Binary files a/webextension/icon-32.png and b/webextension/icon-32.png differ diff --git a/webextension/icon-48.png b/webextension/icon-48.png index 47e248f..5fcbb68 100644 Binary files a/webextension/icon-48.png and b/webextension/icon-48.png differ diff --git a/webextension/icon-96.png b/webextension/icon-96.png index 26bff1e..74b6efa 100644 Binary files a/webextension/icon-96.png and b/webextension/icon-96.png differ diff --git a/webextension/options.html b/webextension/options.html index dba2d36..3f49457 100644 --- a/webextension/options.html +++ b/webextension/options.html @@ -32,7 +32,7 @@