mirror of
https://github.com/filebrowser/filebrowser.git
synced 2024-06-07 23:00:43 +00:00
update build.sh
This commit is contained in:
parent
05a6ebe805
commit
81b1e8d430
9
build.sh
9
build.sh
@ -1,6 +1,15 @@
|
||||
#!/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 ./caddy/hugo
|
||||
rice embed-go
|
||||
|
Loading…
Reference in New Issue
Block a user