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

Former-commit-id: 689395356dc1860d0f0f5786986cbbc4238a1fe0 [formerly 0c528dae26624fad221c4fa6b273a02dc030e81c] [formerly f353338b249c2ed818611ac6a91939bc87356de9 [formerly a2e293292ec9f946d14a47d16f6741f2b28d0c8c]] Former-commit-id: 647dac9f8eed2df57191a75e4b199aebb18375fc [formerly 000079405f67a4bff2098c2cddc082a4374e0bd5] Former-commit-id: 89c911c807783e2176994fc6949bf8221ca5e5a3
25 lines
359 B
Bash
25 lines
359 B
Bash
#!/bin/sh
|
|
|
|
set -e
|
|
|
|
cd $(dirname $0)
|
|
|
|
# Clean the dist folder and build the assets
|
|
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
|