Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[image-env-to-json] Make binary compatible with any architecture #2578

Open
ricardozanini opened this issue Sep 12, 2024 · 0 comments
Open
Assignees

Comments

@ricardozanini
Copy link
Member

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/\""
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: 📋 Backlog
Development

No branches or pull requests

1 participant