filebrowser/build.sh

14 lines
258 B
Bash
Raw Normal View History

2017-07-10 14:19:53 +00:00
#!/bin/bash
2017-07-28 10:21:55 +00:00
# Install rice tool if not present
if ! [ -x "$(command -v rice)" ]; then
go get github.com/GeertJohan/go.rice/rice
fi
# Clean the dist folder and build the assets
2017-07-10 14:19:53 +00:00
rm -rf assets/dist
npm run build
2017-07-28 10:21:55 +00:00
# Embed the assets using rice
2017-07-10 14:19:53 +00:00
rice embed-go