mirror of https://github.com/Xhofe/alist
💚 fix mv web file
parent
3781043c78
commit
c5e274f52a
6
build.sh
6
build.sh
|
@ -37,14 +37,14 @@ yarn
|
||||||
if [ "$1" == "release" ]; then
|
if [ "$1" == "release" ]; then
|
||||||
yarn build --base="https://cdn.jsdelivr.net/gh/Xhofe/alist-web@cdn/v2/$webCommit"
|
yarn build --base="https://cdn.jsdelivr.net/gh/Xhofe/alist-web@cdn/v2/$webCommit"
|
||||||
mv dist/assets ..
|
mv dist/assets ..
|
||||||
mv dist/ ../alist/public
|
mv dist/index.html ../alist/public
|
||||||
# 构建local
|
# 构建local
|
||||||
yarn build
|
yarn build
|
||||||
mv dist/index.html dist/local.html
|
mv dist/index.html dist/local.html
|
||||||
mv dist/ ../alist/public
|
mv dist/* ../alist/public
|
||||||
else
|
else
|
||||||
yarn build
|
yarn build
|
||||||
mv dist/ ../alist/public
|
mv dist/* ../alist/public
|
||||||
fi
|
fi
|
||||||
cd ..
|
cd ..
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue