2019-01-06 14:15:53 -08:00
|
|
|
#!/bin/bash
|
2019-01-06 15:57:15 -08:00
|
|
|
set -eux
|
2019-01-06 14:15:53 -08:00
|
|
|
|
|
|
|
|
|
|
|
VERSION="$(git tag --points-at)"
|
2019-01-16 13:48:45 -08:00
|
|
|
if [[ ! -n $VERSION ]]; then
|
|
|
|
>&2 echo "Dirty build!"
|
|
|
|
VERSION="$(git rev-parse --short HEAD)"
|
|
|
|
fi
|
|
|
|
|
2019-01-06 14:15:53 -08:00
|
|
|
|
2019-01-06 15:14:03 -08:00
|
|
|
OUT="grasp-$VERSION.zip"
|
|
|
|
|
2019-01-06 14:15:53 -08:00
|
|
|
npm run build
|
2019-01-06 15:14:03 -08:00
|
|
|
zip -r -j "$OUT" build/*
|
|
|
|
unzip -l "$OUT"
|