From 7a278a162abf24c03d0613b19860457180f18151 Mon Sep 17 00:00:00 2001 From: mirivlad Date: Sun, 12 Jul 2026 22:28:37 +0800 Subject: [PATCH] feat: host Firefox updates on GitHub Releases --- firefox/manifest.json | 4 ++-- scripts/release-firefox-xpi.sh | 17 ++--------------- scripts/test-firefox-github-release.js | 7 +++++++ 3 files changed, 11 insertions(+), 17 deletions(-) diff --git a/firefox/manifest.json b/firefox/manifest.json index cd47e23..ddd0122 100644 --- a/firefox/manifest.json +++ b/firefox/manifest.json @@ -4,12 +4,12 @@ "version": "2.0.2", "description": "Send pages, selections, links, and files to the local Verstak browser inbox.", "author": "Verstak", - "homepage_url": "https://git.mirv.top/verstak/verstak-browser-extension", + "homepage_url": "https://github.com/mirivlad/verstak-browser-extension", "browser_specific_settings": { "gecko": { "id": "verstak-bridge@verstak.app", "strict_min_version": "115.0", - "update_url": "https://mirv.top/verstak/firefox/updates.json", + "update_url": "https://github.com/mirivlad/verstak-browser-extension/releases/latest/download/updates.json", "data_collection_permissions": { "required": ["none"] } diff --git a/scripts/release-firefox-xpi.sh b/scripts/release-firefox-xpi.sh index 7dff942..bd29a63 100755 --- a/scripts/release-firefox-xpi.sh +++ b/scripts/release-firefox-xpi.sh @@ -32,7 +32,6 @@ load_env_file "$ENV_FILE" SOURCE_DIR="${VERSTAK_FIREFOX_SOURCE_DIR:-dist/firefox}" ARTIFACTS_DIR="${WEB_EXT_ARTIFACTS_DIR:-web-ext-artifacts}" RELEASE_DIR="${VERSTAK_FIREFOX_RELEASE_DIR:-release/firefox}" -UPDATE_BASE_URL="${VERSTAK_FIREFOX_UPDATE_BASE_URL:-https://mirv.top/verstak/firefox}" ./scripts/sign-firefox-xpi.sh @@ -54,20 +53,8 @@ mkdir -p "$RELEASE_DIR" RELEASE_XPI="verstak-firefox-${VERSION}.xpi" cp "$SIGNED_XPI" "$RELEASE_DIR/$RELEASE_XPI" -cat > "$RELEASE_DIR/updates.json" <