multibuild publish script
This commit is contained in:
parent
64ecbf5be0
commit
53a5701a3b
14
publish
14
publish
|
@ -9,8 +9,14 @@ if [[ ! -n $VERSION ]]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
OUT="grasp-$VERSION.zip"
|
function rebuild {
|
||||||
|
local res="$1"
|
||||||
|
npm run build
|
||||||
|
zip -r -j "$res" build/*
|
||||||
|
unzip -l "$res"
|
||||||
|
}
|
||||||
|
|
||||||
npm run build
|
for browser in "chrome" "firefox"; do
|
||||||
zip -r -j "$OUT" build/*
|
TARGET="$browser" rebuild "grasp-$VERSION-$browser.zip"
|
||||||
unzip -l "$OUT"
|
TARGET="$browser" ANY_HOST='yes' rebuild "grasp-$VERSION-anyhost-$browser.zip"
|
||||||
|
done
|
||||||
|
|
Loading…
Reference in a new issue