filebrowser/build.sh
Henrique Dias 75e4afc1cb Update build
Former-commit-id: 8ffbf3c07714f5fc59dc83d96271d67d8ca338e1 [formerly 1e674babe8fed63770242209f28afbd29d484d6e] [formerly d694c1b656ce0969f5e1a8cf891dcb321afafbf5 [formerly 22bfa7094a]]
Former-commit-id: 8bea921628838cc7d73a99f07070e0e0cf103d43 [formerly 11e677d99558349148f374a65f15f7ef12b0f295]
Former-commit-id: f20db50513e25a6e13aa13c2dba7a21105ad3a2d
2017-07-29 11:33:01 +01:00

16 lines
285 B
Bash

#!/bin/bash
# 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
rm -rf assets/dist
npm run build
# Embed the assets using rice
rice embed-go
cd ./plugins
rice embed-go