fix arm64 architecture error (#224)

This commit is contained in:
feeeei 2024-05-30 01:48:33 +08:00 committed by GitHub
parent 367566ea88
commit d909b3c764
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -3,7 +3,7 @@
start_process() {
version=$(cat config/version.go | grep -A 1 "func GetVersion() \[\]byte {" | grep -Eo '0x[0-9a-fA-F]+' | xargs printf "%d.%d.%d")
if [[ "$OSTYPE" == "linux-gnu"* ]]; then
if [[ $arch == arm* ]]; then
if [[ $(uname -m) == "aarch64"* ]]; then
./node-$version-linux-arm64 &
main_process_id=$!
else