mirror of
https://github.com/CyberMind-FR/secubox-deb.git
synced 2026-07-01 06:24:59 +00:00
Compare commits
2 Commits
b2ee2a97ef
...
68e2723747
| Author | SHA1 | Date | |
|---|---|---|---|
| 68e2723747 | |||
|
|
b8da257b83 |
7
.github/workflows/build-webext.yml
vendored
7
.github/workflows/build-webext.yml
vendored
|
|
@ -50,11 +50,14 @@ jobs:
|
||||||
|
|
||||||
# On webext-v* tags, publish the .xpi as a release asset under the
|
# On webext-v* tags, publish the .xpi as a release asset under the
|
||||||
# stable name the toolbox fetch helper + /wg/toolbox.xpi expect.
|
# stable name the toolbox fetch helper + /wg/toolbox.xpi expect.
|
||||||
# `latest/download/secubox-toolbox-webext.xpi` resolves to the
|
# make_latest:false so this client release does NOT steal the
|
||||||
# newest release.
|
# "latest" pointer from the Android APK release (which the APK
|
||||||
|
# endpoint resolves via /releases/latest/download/…). The xpi
|
||||||
|
# endpoint/fetcher therefore use a tag-pinned download URL.
|
||||||
- name: Publish release
|
- name: Publish release
|
||||||
if: startsWith(github.ref, 'refs/tags/webext-v')
|
if: startsWith(github.ref, 'refs/tags/webext-v')
|
||||||
uses: softprops/action-gh-release@v2
|
uses: softprops/action-gh-release@v2
|
||||||
with:
|
with:
|
||||||
files: clients/webext-toolbox/web-ext-artifacts/secubox-toolbox-webext.xpi
|
files: clients/webext-toolbox/web-ext-artifacts/secubox-toolbox-webext.xpi
|
||||||
fail_on_unmatched_files: true
|
fail_on_unmatched_files: true
|
||||||
|
make_latest: false
|
||||||
|
|
|
||||||
|
|
@ -3,12 +3,14 @@ secubox-toolbox (2.6.14-1~bookworm1) bookworm; urgency=medium
|
||||||
* Serve the browser ToolBoX extension .xpi from the toolbox (#532).
|
* Serve the browser ToolBoX extension .xpi from the toolbox (#532).
|
||||||
- api.py GET /wg/toolbox.xpi : serves the local .xpi
|
- api.py GET /wg/toolbox.xpi : serves the local .xpi
|
||||||
(/var/lib/secubox/toolbox/webext/secubox-toolbox-webext.xpi) with
|
(/var/lib/secubox/toolbox/webext/secubox-toolbox-webext.xpi) with
|
||||||
content-type application/x-xpinstall ; if absent, 302 → the latest
|
content-type application/x-xpinstall ; if absent, 302 → the
|
||||||
public GitHub release asset (button never dead-ends).
|
tag-pinned GitHub release asset (button never dead-ends). The
|
||||||
|
webext release is published make_latest:false so it does not steal
|
||||||
|
"latest" from the Android APK release.
|
||||||
- /wg/onboard : new "🧩 Extension navigateur (cartographie)" button
|
- /wg/onboard : new "🧩 Extension navigateur (cartographie)" button
|
||||||
on both the inline + _install_panels variants.
|
on both the inline + _install_panels variants.
|
||||||
- sbin/secubox-toolbox-fetch-xpi : pulls the latest release asset
|
- sbin/secubox-toolbox-fetch-xpi : pulls the release asset into the
|
||||||
into the serve path (best-effort, ZIP-magic sanity check).
|
serve path (best-effort, ZIP-magic sanity check).
|
||||||
- postinst : create the webext serve dir + best-effort first fetch.
|
- postinst : create the webext serve dir + best-effort first fetch.
|
||||||
- New client clients/webext-toolbox/ (MV3 Firefox/Chromium): live
|
- New client clients/webext-toolbox/ (MV3 Firefox/Chromium): live
|
||||||
tracker badge + popup mini Round-Eye graph over /social/* ;
|
tracker badge + popup mini Round-Eye graph over /social/* ;
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,9 @@ readonly MODULE="secubox-toolbox-fetch-xpi"
|
||||||
|
|
||||||
DEST_DIR="/var/lib/secubox/toolbox/webext"
|
DEST_DIR="/var/lib/secubox/toolbox/webext"
|
||||||
DEST="${DEST_DIR}/secubox-toolbox-webext.xpi"
|
DEST="${DEST_DIR}/secubox-toolbox-webext.xpi"
|
||||||
RELEASE_URL="https://github.com/CyberMind-FR/secubox-deb/releases/latest/download/secubox-toolbox-webext.xpi"
|
# Tag-pinned (not /latest/): the webext release is make_latest:false so it
|
||||||
|
# doesn't steal "latest" from the Android APK release. Bump on new webext-v*.
|
||||||
|
RELEASE_URL="https://github.com/CyberMind-FR/secubox-deb/releases/download/webext-v0.1.0/secubox-toolbox-webext.xpi"
|
||||||
|
|
||||||
log() { logger -t "$MODULE" -- "$*" 2>/dev/null || echo "[$MODULE] $*" >&2; }
|
log() { logger -t "$MODULE" -- "$*" 2>/dev/null || echo "[$MODULE] $*" >&2; }
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1368,10 +1368,13 @@ async def wg_toolbox_apk() -> Response:
|
||||||
|
|
||||||
|
|
||||||
# Browser extension (Firefox .xpi), same serve pattern as the APK (#532).
|
# Browser extension (Firefox .xpi), same serve pattern as the APK (#532).
|
||||||
|
# Tag-pinned URL (not /latest/): the webext release is published with
|
||||||
|
# make_latest:false so it does not steal "latest" from the Android APK
|
||||||
|
# release. Bump the tag here when a new webext-v* release is cut.
|
||||||
_WEBEXT_XPI = Path("/var/lib/secubox/toolbox/webext/secubox-toolbox-webext.xpi")
|
_WEBEXT_XPI = Path("/var/lib/secubox/toolbox/webext/secubox-toolbox-webext.xpi")
|
||||||
_WEBEXT_XPI_RELEASE = (
|
_WEBEXT_XPI_RELEASE = (
|
||||||
"https://github.com/CyberMind-FR/secubox-deb/releases/latest/download/"
|
"https://github.com/CyberMind-FR/secubox-deb/releases/download/"
|
||||||
"secubox-toolbox-webext.xpi"
|
"webext-v0.1.0/secubox-toolbox-webext.xpi"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user