💚 fix build web
This commit is contained in:
parent
9d279b104b
commit
724fc7f37e
5
build.sh
5
build.sh
@ -4,9 +4,10 @@
|
|||||||
BUILD_WEB() {
|
BUILD_WEB() {
|
||||||
git clone https://github.com/alist-org/alist-web.git
|
git clone https://github.com/alist-org/alist-web.git
|
||||||
cd alist-web
|
cd alist-web
|
||||||
sed -i -e "s/\/CDN_URL\//\//g" index.html
|
|
||||||
yarn
|
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 ..
|
mv dist ..
|
||||||
cd ..
|
cd ..
|
||||||
rm -rf alist-web
|
rm -rf alist-web
|
||||||
|
Loading…
x
Reference in New Issue
Block a user