multibuild publish script
This commit is contained in:
parent
64ecbf5be0
commit
53a5701a3b
16
publish
16
publish
|
@ -7,10 +7,16 @@ if [[ ! -n $VERSION ]]; then
|
||||||
>&2 echo "Dirty build!"
|
>&2 echo "Dirty build!"
|
||||||
VERSION="$(git rev-parse --short HEAD)"
|
VERSION="$(git rev-parse --short HEAD)"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
OUT="grasp-$VERSION.zip"
|
|
||||||
|
|
||||||
npm run build
|
function rebuild {
|
||||||
zip -r -j "$OUT" build/*
|
local res="$1"
|
||||||
unzip -l "$OUT"
|
npm run build
|
||||||
|
zip -r -j "$res" build/*
|
||||||
|
unzip -l "$res"
|
||||||
|
}
|
||||||
|
|
||||||
|
for browser in "chrome" "firefox"; do
|
||||||
|
TARGET="$browser" rebuild "grasp-$VERSION-$browser.zip"
|
||||||
|
TARGET="$browser" ANY_HOST='yes' rebuild "grasp-$VERSION-anyhost-$browser.zip"
|
||||||
|
done
|
||||||
|
|
Loading…
Reference in a new issue