fix: harden Windows AVX2 probe - #828
Conversation
|
Thanks for the quick fix and for updating the documentation! I’ll test it on my Windows 11 machine with an Intel Core i5-3570 (AVX, no AVX2) as soon as the new version is available and report back if everything works as expected. |
|
Thanks! That would be super helpful. This PR should make the launcher choose the baseline binary more reliably on non AVX2 CPUs, so your i5 3570 is exactly the kind of machine worth validating on. |
|
Good, focused change. Fully-qualifying A few things worth calling out before this gets ported:
Overall: right instinct, small and surgical diff, plausible root-cause reasoning. Worth a maintainer's time to verify on Windows and decide where the canonical source lives. |
|
Thanks! I also noticed that the I can confirm the fix is working correctly on my side as well. I’ve been using the updated version on Windows 11 with my Intel Core i5-3570 (AVX, no AVX2), and I haven’t encountered the issue again. The launcher correctly uses the baseline binary and Freebuff starts normally. Looks good from my side. Thanks for the quick fix |
Fixes #822.
Updates the Windows AVX2 PowerShell probe used by the CLI launchers. The probe now uses the fully qualified DllImport attribute and ErrorAction Stop, making failures explicit so non-AVX2 machines are less likely to incorrectly proceed with the optimized win32-x64 binary instead of the baseline target.\n\nValidation:\n- node --check freebuff/cli/release/index.js\n- node --check cli/release/index.js\n- node --check cli/release-staging/index.js\n\nNote: I verified syntax locally on macOS, but could not run the Windows PowerShell probe directly on this machine.