[image-env-to-json] Make binary compatible with any architecture
Opened this issue · 0 comments
ricardozanini commented
Currently, image-env-to-json
only supports the x64 architecture. When running on new Arm machines, the underlying node pkg
library relies on glibc for x64. That will always fail on Darwin arm CPUs.
Ideally, this package should also offer a way to copy the correct binary despite the OS and Architecture so we avoid clients having to do this:
{
"copy:image-env-to-json": "run-script-os",
"copy:image-env-to-json:linux:darwin": "cp ./node_modules/@kie-tools/image-env-to-json/dist/linux/image-env-to-json-standalone ./dist-dev/",
"copy:image-env-to-json:win32": "pnpm powershell \"Copy-Item ./node_modules/@kie-tools/image-env-to-json/dist/linux/image-env-to-json-standalone ./dist-dev/\""
}