build: dos2unix build.sh

This commit is contained in:
Equim 2018-01-22 06:40:11 +08:00
parent 72f0e3fd81
commit dc3cdb5b05

View File

@ -1,14 +1,14 @@
#!/bin/bash #!/bin/bash
set -e set -e
# Install rice tool if not present # Install rice tool if not present
if ! [ -x "$(command -v rice)" ]; then if ! [ -x "$(command -v rice)" ]; then
go get github.com/GeertJohan/go.rice/rice go get github.com/GeertJohan/go.rice/rice
fi fi
# Clean the dist folder and build the assets # Clean the dist folder and build the assets
rm -rf assets/dist rm -rf assets/dist
npm run build npm run build
# Embed the assets using rice # Embed the assets using rice
rice embed-go rice embed-go