mirror of
https://github.com/filebrowser/filebrowser.git
synced 2024-06-07 23:00:43 +00:00
15 lines
264 B
Bash
15 lines
264 B
Bash
#!/bin/bash
|
|
set -e
|
|
|
|
# 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 node_modules
|
|
npm install
|
|
|
|
# Embed the assets using rice
|
|
rice embed-go
|