-
Notifications
You must be signed in to change notification settings - Fork 464
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
Fixes #3843 #3850
Fixes #3843 #3850
Conversation
Could we perhaps have another release after this is merged? |
How does this solve your problem? ninja.exe will still be running after installation. |
The anti-virus seems to be triggered only when we run ninja.exe via
where a child process spawns a shell which in turn triggers anti-virus software into thinking this is some kind of malware. Other cases of ninja.exe seems to be okay and not trigger the anti-virus. I tried the new install.js script and all versions of bs-platform install successfully, i.e. 5.1.0/5.2.0 and 6.1.0. These were all failing before. My colleagues are also able to install bs-platform correctly with the new install.js. We will probably experience these use-cases more in corporate environments which is usually locked-down under proxy servers and security policies. So perhpas catering to these use-cases is better for the adoption of bs-platform in general. Re: 'fs.copyFileSync' it is available in nodejs after |
Yeah, I am okay to this move except that fs.copyFileSync requires us to set the minimum version to 8, but I think it is fine to take this solution on windows, can you guard this pattern only for Windows users? |
Sure. will do |
Splits copyPrebuiltCompilers() into copyPrebuiltCompilersForWindows() and copyPrebuiltCompilersForUnix() so that install on windows doesn't trigger anti-virus software.
@bobzhang This is ready. Tested 5.2.0 and 6.2.0 on windows and installs correctly. |
Fixes #3843 by using nodejs fs.copyFileSync to copy pre-built compilers instead of using ninja.exe. Since ninja.exe is classed as trojan by many anti-virus software.