Files
filebrowser/build.sh
T

14 lines
258 B
Bash
Raw Normal View History

2017-07-10 15:19:53 +01:00
#!/bin/bash
2017-07-28 11:21:55 +01: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 15:19:53 +01:00
rm -rf assets/dist
npm run build
2017-07-28 11:21:55 +01:00
# Embed the assets using rice
2017-07-10 15:19:53 +01:00
rice embed-go