mirror of
https://github.com/CyberMind-FR/secubox-deb.git
synced 2026-07-29 12:34:38 +00:00
build(webext): add build.sh to produce the .xpi (ref #401)
This commit is contained in:
parent
632c7b1a73
commit
ea92aaee7a
1
packages/secubox-webext/.gitignore
vendored
Normal file
1
packages/secubox-webext/.gitignore
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
secubox-webext-*.xpi
|
||||
14
packages/secubox-webext/build.sh
Executable file
14
packages/secubox-webext/build.sh
Executable file
|
|
@ -0,0 +1,14 @@
|
|||
#!/usr/bin/env bash
|
||||
# SPDX-License-Identifier: LicenseRef-CMSD-1.0
|
||||
# SecuBox Companion — build the unsigned .xpi (a zip of the extension dir).
|
||||
# Usage: ./build.sh → produces ../secubox-webext-<version>.xpi
|
||||
set -euo pipefail
|
||||
cd "$(dirname "$0")"
|
||||
VER=$(grep -oE '"version"[^,]*' manifest.json | grep -oE '[0-9.]+' | head -1)
|
||||
OUT="../secubox-webext-${VER}.xpi"
|
||||
rm -f "$OUT"
|
||||
# -FS = sync (delete stale entries); exclude VCS + dotfiles + the build script.
|
||||
zip -r -FS "$OUT" . -x '*.git*' '*/.*' 'build.sh' >/dev/null
|
||||
echo "built $OUT"
|
||||
echo "Load in Firefox: about:debugging → This Firefox → Load Temporary Add-on → pick this .xpi (or manifest.json)."
|
||||
echo "Permanent install requires signing (web-ext sign / AMO) or Developer/ESR with xpinstall.signatures.required=false."
|
||||
Loading…
Reference in New Issue
Block a user