halo-admin/scripts/zip_dist.sh

6 lines
201 B
Bash
Raw Normal View History

2019-05-21 04:14:51 +00:00
#!/bin/bash
PACKAGE_VERSION=$(sed -nE 's/^\s*"version": "(.*?)",$/\1/p' package.json)
echo "Halo admin version $PACKAGE_VERSION"
2019-05-21 08:19:45 +00:00
zip -r dist/halo-admin-$PACKAGE_VERSION.zip dist
export PACKAGE_VERSION