mirror of
https://github.com/filebrowser/filebrowser.git
synced 2025-05-08 11:22:10 +00:00

Former-commit-id: 691201333f6c76d5fe8d7134a1d68c4cc50404a7 [formerly a9973160b528bfe6b26bac2a6e1236e6e9192f0c] [formerly 84f8fdb79bd0929ef84a969a688ef1381e6ac691 [formerly d11aa8de6b2a248cb44a4624b2761c01ddde836d]] Former-commit-id: 5d10ebcf1f43a9854aa8b66b1227220e81e34473 [formerly a6e486b7c3a40fa821c2250bcd9edc1841775887] Former-commit-id: 7367476016ce2499441cdb2d050fb2f961eed4d0
29 lines
455 B
Bash
29 lines
455 B
Bash
#!/bin/sh
|
|
|
|
set -e
|
|
|
|
cd $(dirname $0)
|
|
|
|
# Clean the dist folder and build the assets
|
|
if [ ! -d "frontend" ]; then
|
|
git clone -b master https://github.com/filebrowser/frontend
|
|
fi;
|
|
cd frontend
|
|
if [ -d "dist" ]; then
|
|
rm -rf dist/*
|
|
fi;
|
|
yarn install
|
|
yarn build
|
|
|
|
cd ..
|
|
|
|
dep ensure -vendor-only
|
|
|
|
# Install rice tool if not present
|
|
if ! [ -x "$(command -v rice)" ]; then
|
|
go get github.com/GeertJohan/go.rice/rice
|
|
fi
|
|
|
|
# Embed the assets using rice
|
|
rice embed-go
|