Request: Pre-built binary for arm64/aarch64
Closed this issue · 1 comments
shbatm commented
I'd like to request a pre-built binary for aarch64/amd64/armv8 devices. I would like to be able move my polyglot server to my Rock Pi 4 board and eventually into a Docker container. I've been having issues trying to get a working version to compile on the aarch64 architecture and have also been struggling with getting a working Docker image (again, due to the architecture).
If I had more time to devote to this, I'd try and push through and get a working version, but I figured I'd open the issue in the meantime if someone has an easier way or if others wanted the same thing.
shbatm commented
I was able to build a binary for aarch64/armv8 by:
- Downloading the base from here and saving it to
~/.pkg-cache/v2.5/
- Adding the following to
package.json
at Line 20:
"build:arm64": "pkg -t node8-linux-arm64 package.json -o binaries/polyglot-v2-linux-arm64; chmod +x binaries/polyglot-v2-linux-arm64; cd binaries; GZIP=-9 tar cvzf polyglot-v2-linux-arm64.tar.gz polyglot-v2-linux-arm64; rm polyglot-v2-linux-arm64"
- Running
npm run build:arm64
Leaving issue open for now to review. Can be closed when ready.