zip_dist.sh 201 B

123456
  1. #!/bin/bash
  2. PACKAGE_VERSION=$(sed -nE 's/^\s*"version": "(.*?)",$/\1/p' package.json)
  3. echo "Halo admin version $PACKAGE_VERSION"
  4. zip -r dist/halo-admin-$PACKAGE_VERSION.zip dist
  5. export PACKAGE_VERSION