💚 fix build web

pull/661/head
Xhofe 2022-02-20 16:46:47 +08:00
parent 9d279b104b
commit 724fc7f37e
1 changed files with 3 additions and 2 deletions

View File

@ -4,9 +4,10 @@
BUILD_WEB() {
git clone https://github.com/alist-org/alist-web.git
cd alist-web
sed -i -e "s/\/CDN_URL\//\//g" index.html
yarn
yarn build --base="/"
yarn build --base="CDN_URL"
sed -i -e "s/\/CDN_URL\//\//g" dist/index.html
rm -f dist/index.html-e
mv dist ..
cd ..
rm -rf alist-web