thefrontside / ctrlc-windows

Send a CTRL-C event to a Windows console application
9 stars 2 forks source link

Add AArch64 builds #46

Open mcgordonite opened 3 months ago

mcgordonite commented 3 months ago

It would be awesome to get AArch64 (arm64) support.

The package seems to work without modification when built on an arm64 Windows system. The challenge would be distribution for multiple platforms. The napi-rs docs suggest publishing multiple packages for this: https://napi.rs/docs/introduction/getting-started#deep-dive.

Would you be open to a PR?

mcgordonite commented 3 months ago

Hi @cowboyd @jbolda @minkimcello, would you be open to a PR for this? Thanks!

jbolda commented 3 months ago

Thanks for the ping, missed this! We originally opted for a single package as it was only a single binary for a single platform. I would be happy to support a PR supporting ARM on Windows.

I agree that following the recommended napi approach would then be appropriate. We would be publishing 3 packages, the root ctrlc-windows and then an optional dep for each of x86 and arm64. Does that match your expectations?

mcgordonite commented 3 months ago

That's right, there could be three packages: ctrlc-windows, ctrlc-windows-x64 and ctrlc-windows-arm64. I'll have a go at restructuring this repo along those lines and put up a PR.

mcgordonite commented 1 month ago

@jbolda I found a simpler solution in the end, let me know what you think: https://github.com/thefrontside/ctrlc-windows/pull/47