#!/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)"