From ca44941827a5c6bd6c6e881f3b22b5915094d0b9 Mon Sep 17 00:00:00 2001 From: Jane Sandberg Date: Wed, 14 Sep 2022 16:10:05 -0700 Subject: [PATCH] LP1989033: Allow x86_64 and arm64 to download node Signed-off-by: Jane Sandberg Signed-off-by: Jason Stephenson --- Open-ILS/src/extras/Makefile.install | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/Open-ILS/src/extras/Makefile.install b/Open-ILS/src/extras/Makefile.install index 428a06eb02..4ece32202d 100644 --- a/Open-ILS/src/extras/Makefile.install +++ b/Open-ILS/src/extras/Makefile.install @@ -43,7 +43,15 @@ export LIBDBI_HOST=http://open-ils.org/~denials/evergreen # some OSes require a newer version of NodeJS # NOTE: Using the LTS binaries for NodeJS export NODEJS_VERSION=v14.18.1 -export NODEJS_BINDIR=node-$(NODEJS_VERSION)-linux-x64 +MACHINE_NAME = $(shell uname -m) +ifeq ($(MACHINE_NAME),x86_64) + export NODEJS_ARCHITECTURE=x64 +else ifeq ($(MACHINE_NAME),aarch64) + export NODEJS_ARCHITECTURE=arm64 +else + export NODEJS_ARCHITECTURE=$(MACHINE_NAME) +endif +export NODEJS_BINDIR=node-$(NODEJS_VERSION)-linux-$(NODEJS_ARCHITECTURE) export NODEJS_TARBIN=$(NODEJS_BINDIR).tar.xz export NODEJS_BINARY="https://nodejs.org/dist/$(NODEJS_VERSION)/$(NODEJS_TARBIN)" -- 2.11.0