🐛 fix version type
This commit is contained in:
parent
b785945210
commit
0f93d2bfed
@ -13,7 +13,7 @@
|
|||||||
|
|
||||||
### 这是什么?
|
### 这是什么?
|
||||||
|
|
||||||
一款支持多种存储的目录文件列表程序,后端基于`go-fiber`,前端使用`react`。
|
一款支持多种存储的目录文件列表程序,后端基于`gin`,前端使用`react`。
|
||||||
|
|
||||||
### 前端项目地址
|
### 前端项目地址
|
||||||
|
|
||||||
|
@ -109,6 +109,7 @@ func initSettings() {
|
|||||||
Key: "version",
|
Key: "version",
|
||||||
Value: conf.GitTag,
|
Value: conf.GitTag,
|
||||||
Description: "version",
|
Description: "version",
|
||||||
|
Type: "string",
|
||||||
Group: model.CONST,
|
Group: model.CONST,
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -190,14 +191,14 @@ func initSettings() {
|
|||||||
Values: "default,github,vuepress",
|
Values: "default,github,vuepress",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
Key: "autoplay video",
|
Key: "autoplay video",
|
||||||
Value: "false",
|
Value: "false",
|
||||||
Type: "bool",
|
Type: "bool",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
Key: "autoplay audio",
|
Key: "autoplay audio",
|
||||||
Value: "false",
|
Value: "false",
|
||||||
Type: "bool",
|
Type: "bool",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
Key: "check parent folder",
|
Key: "check parent folder",
|
||||||
|
2
build.sh
2
build.sh
@ -66,7 +66,7 @@ cp -R ../alist-web/dist/* public
|
|||||||
if [ "$1" == "release" ]; then
|
if [ "$1" == "release" ]; then
|
||||||
xgo -out alist -ldflags="$ldflags" .
|
xgo -out alist -ldflags="$ldflags" .
|
||||||
else
|
else
|
||||||
xgo -targets=linux/amd64,windows/amd64,darwin/amd64 -out alist -ldflags="$ldflags" .
|
xgo -targets=linux/amd64,windows/amd64 -out alist -ldflags="$ldflags" .
|
||||||
fi
|
fi
|
||||||
mkdir "build"
|
mkdir "build"
|
||||||
mv alist-* build
|
mv alist-* build
|
||||||
|
Loading…
x
Reference in New Issue
Block a user