mirror of
https://github.com/AlistGo/alist.git
synced 2025-04-22 21:04:07 +08:00
build: static compilation for musl
This commit is contained in:
parent
c5d707cf0a
commit
7141bf0358
2
build.sh
2
build.sh
@ -96,7 +96,7 @@ BUILD_MUSL() {
|
||||
gitTag=$(git describe --long --tags --dirty --always)
|
||||
webTag=$(wget -qO- -t1 -T2 "https://api.github.com/repos/alist-org/alist-web/releases/latest" | grep "tag_name" | head -n 1 | awk -F ":" '{print $2}' | sed 's/\"//g;s/,//g;s/ //g')
|
||||
ldflags="\
|
||||
-w -s \
|
||||
-w -s --extldflags '-static -fpic' \
|
||||
-X 'github.com/Xhofe/alist/conf.BuiltAt=$builtAt' \
|
||||
-X 'github.com/Xhofe/alist/conf.GoVersion=$goVersion' \
|
||||
-X 'github.com/Xhofe/alist/conf.GitAuthor=$gitAuthor' \
|
||||
|
Loading…
x
Reference in New Issue
Block a user