mirror of
https://github.com/m1k1o/neko.git
synced 2025-04-28 09:56:20 +02:00
Fix build script for Apple Silicon MacOS. (#520)
This commit is contained in:
parent
33ce337cd3
commit
23820f6255
1 changed files with 5 additions and 4 deletions
9
build
9
build
|
@ -211,14 +211,15 @@ fi
|
|||
|
||||
if [ -z "$PLATFORM" ]; then
|
||||
# use system architecture if not specified
|
||||
if [ "$(uname -m)" == "x86_64" ]; then
|
||||
UNAME="$(uname -m)"
|
||||
if [ "$UNAME" == "x86_64" ]; then
|
||||
PLATFORM="linux/amd64"
|
||||
elif [ "$(uname -m)" == "aarch64" ]; then
|
||||
elif [ "$UNAME" == "aarch64" ] || [ "$UNAME" == "arm64" ]; then
|
||||
PLATFORM="linux/arm64"
|
||||
elif [ "$(uname -m)" == "armv7l" ]; then
|
||||
elif [ "$UNAME" == "armv7l" ]; then
|
||||
PLATFORM="linux/arm/v7"
|
||||
else
|
||||
log "Unknown architecture: $(uname -m)"
|
||||
log "Unknown architecture: $UNAME"
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
|
|
Loading…
Add table
Reference in a new issue