#!/bin/sh # Package extension/ as public/goostr-extension.zip (the download offered on # the site). Run after changing anything in extension/ or public/vendor/. set -e ROOT=$(cd "$(dirname "$0")/.." && pwd) cp "$ROOT/public/vendor/nostr-tools.js" "$ROOT/extension/vendor/nostr-tools.js" rm -f "$ROOT/public/goostr-extension.zip" cd "$ROOT" zip -qr public/goostr-extension.zip extension -x '*.DS_Store' echo "Built public/goostr-extension.zip"