File size: 467 Bytes
7e173d8 | 1 2 3 4 5 6 7 8 9 | #!/usr/bin/env bash
# Build the extension zip from extension/ (same package for Chromium browsers and Firefox).
set -euo pipefail
cd "$(dirname "$0")"
v=$(python3 -c 'import json;print(json.load(open("extension/manifest.json"))["version"])')
rm -f draiml-webgpu-helper-*.zip
(cd extension && zip -qrX "../draiml-webgpu-helper-$v.zip" manifest.json *.js popup.html LICENSE icons)
echo "draiml-webgpu-helper-$v.zip: $(unzip -l "draiml-webgpu-helper-$v.zip" | tail -1)"
|