fix the builder script

Signed-off-by: Uncle Fatso <uncle.fatso@ghostchain.io>
This commit is contained in:
Uncle Fatso 2025-08-12 20:12:15 +03:00
parent 74f922fd3e
commit d74d7affe4
Signed by: f4ts0
GPG Key ID: 565F4F2860226EBB

View File

@ -3,8 +3,11 @@
NAME=$(grep "name" package.json | grep -oP '(?<=: ")[^"]+')
VERSION=$(grep "version" package.json | grep -oP '(?<=: ")[^"]+')
BROWSERS=("chrome" "firefox")
SCRIPT_DIR=$(dirname "$(realpath "$0")")
for BROWSER in "${BROWSERS[@]}"; do
FILENAME="$NAME-$BROWSER@v$VERSION.zip"
pnpm build:$BROWSER
python -m zipfile -c releases/$NAME-$BROWSER@v$VERSION /dist
python -m zipfile --create "$SCRIPT_DIR/releases/$FILENAME" "$SCRIPT_DIR/dist"
python -m zipfile --test "$SCRIPT_DIR/releases/$FILENAME"
done