🎇 add local config

This commit is contained in:
微凉
2021-12-20 23:56:17 +08:00
parent 337bf08cd3
commit 1485ab2677
4 changed files with 17 additions and 7 deletions

View File

@ -37,6 +37,11 @@ yarn
if [ "$1" == "release" ]; then
yarn build --base="https://cdn.jsdelivr.net/gh/Xhofe/alist-web@cdn/v2/$webCommit"
mv dist/assets ..
mv dist/ ../alist/public
# 构建local
yarn build
mv dist/index.html dist/local.html
mv dist/ ../alist/public
else
yarn build
fi
@ -61,8 +66,6 @@ ldflags="\
-X 'github.com/Xhofe/alist/conf.GitTag=$gitTag' \
"
cp -R ../alist-web/dist/* public
if [ "$1" == "release" ]; then
xgo -out alist -ldflags="$ldflags" .
else