drAIML / webgpu /build.sh
Gregory-L's picture
Professor Codephreak
WebGPU helper: check page, browser extension and installers
7e173d8 verified
Raw History Blame Contribute Delete
467 Bytes
#!/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)"