mirror of
https://github.com/Ernous/TorrServerJellyfin.git
synced 2025-12-19 13:36:09 +05:00
Update build-all.sh
fixed arch - arm7 (now it is soft-float) added arch - arm7h (it is hard-float) added platform netbsd/arm7h
This commit is contained in:
11
build-all.sh
11
build-all.sh
@@ -4,6 +4,7 @@ PLATFORMS=(
|
||||
'linux/amd64'
|
||||
'linux/arm64'
|
||||
'linux/arm7'
|
||||
'linux/arm7h'
|
||||
'linux/arm5'
|
||||
'linux/386'
|
||||
'windows/amd64'
|
||||
@@ -12,6 +13,7 @@ PLATFORMS=(
|
||||
'darwin/arm64'
|
||||
'freebsd/amd64'
|
||||
'freebsd/arm7'
|
||||
'netbsd/arm7h'
|
||||
'linux/mips'
|
||||
'linux/mipsle'
|
||||
'linux/mips64'
|
||||
@@ -21,9 +23,14 @@ PLATFORMS=(
|
||||
type setopt >/dev/null 2>&1
|
||||
|
||||
set_goarm() {
|
||||
if [[ "$1" =~ arm([5,7]) ]]; then
|
||||
if [[ "$1" =~ arm([5-7])(h)? ]]; then
|
||||
if [[ "${BASH_REMATCH[2]}" == "h" ]]; then
|
||||
GOARM="hardfloat"
|
||||
else
|
||||
GOARM="softfloat"
|
||||
fi
|
||||
GOARCH="arm"
|
||||
GOARM="${BASH_REMATCH[1]}"
|
||||
GOARM="${BASH_REMATCH[1]},$GOARM"
|
||||
GO_ARM="GOARM=${GOARM}"
|
||||
else
|
||||
GOARM=""
|
||||
|
||||
Reference in New Issue
Block a user