fix the builder script
Signed-off-by: Uncle Fatso <uncle.fatso@ghostchain.io>
This commit is contained in:
parent
74f922fd3e
commit
d74d7affe4
@ -3,8 +3,11 @@
|
|||||||
NAME=$(grep "name" package.json | grep -oP '(?<=: ")[^"]+')
|
NAME=$(grep "name" package.json | grep -oP '(?<=: ")[^"]+')
|
||||||
VERSION=$(grep "version" package.json | grep -oP '(?<=: ")[^"]+')
|
VERSION=$(grep "version" package.json | grep -oP '(?<=: ")[^"]+')
|
||||||
BROWSERS=("chrome" "firefox")
|
BROWSERS=("chrome" "firefox")
|
||||||
|
SCRIPT_DIR=$(dirname "$(realpath "$0")")
|
||||||
|
|
||||||
for BROWSER in "${BROWSERS[@]}"; do
|
for BROWSER in "${BROWSERS[@]}"; do
|
||||||
|
FILENAME="$NAME-$BROWSER@v$VERSION.zip"
|
||||||
pnpm build:$BROWSER
|
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
|
done
|
||||||
|
Loading…
Reference in New Issue
Block a user