💚 fix web replace

This commit is contained in:
Xhofe
2022-02-21 20:31:01 +08:00
parent 52ee2e0a8b
commit 641ca67671
3 changed files with 4 additions and 2 deletions

View File

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