From c63a6bac22383bf368da8e33256f570f92ce2da3 Mon Sep 17 00:00:00 2001 From: Andrea D'Intino Date: Wed, 13 Nov 2024 20:36:43 +0100 Subject: [PATCH] feat: build on ARM32 (#383) cross-compiling from X86 doesn't wor (issues building openssl) and on a Raapi-3 the build fails cause the Raspi-3 is out of RAM --- Makefile | 4 ++++ package.json | 2 ++ 2 files changed, 6 insertions(+) diff --git a/Makefile b/Makefile index 0fdb53a..f03e170 100644 --- a/Makefile +++ b/Makefile @@ -33,6 +33,10 @@ setup: ## ⬇️ Install deps build: setup clean ## 📦 Build the binary @echo "📦 Building" @pnpm sea + +build-raspi32: setup clean ## 📦 Build the binary for Arm32 + @echo "📦 Building" + @pnpm raspi32 up: ## 🚀 Run the project in development mode @pnpm dev $@ diff --git a/package.json b/package.json index 00bc952..2aac3c6 100644 --- a/package.json +++ b/package.json @@ -15,6 +15,8 @@ "b": "pnpm rollup -c", "p": "pkg .", "sea": "pnpm b && pnpm p", + "pkgraspi32": "pkg . --targets node18-linux-armv7", + "raspi32": "pnpm b && pnpm pkgraspi32", "dev": "nodemon -e ts -w ./src -x pnpm run watch -z ./contracts -p 3000", "watch": "node --loader ts-node/esm src/index.ts", "test": "FILES_DIR=. pnpm e2e && jest",