Enable Windows build support using VS Professional and Enterprise build environments
This is done by looping through Community, Professional, and Enterprise and returning the first with an existing VSVARS64.bat file and invoking it. If the file isn't found in any of the folders, we exit with an error instead of continuing.
For example, if only VS Professional is installed, it is now correctly invoked:
PS C:\Users\frosty\source\repos\qFlipper> .\build_windows.bat
**********************************************************************
** Visual Studio 2019 Developer Command Prompt v16.8.0
** Copyright (c) 2020 Microsoft Corporation
**********************************************************************
Enable Windows build support using VS Professional and Enterprise build environments
This is done by looping through Community, Professional, and Enterprise and returning the first with an existing
VSVARS64.bat
file and invoking it. If the file isn't found in any of the folders, we exit with an error instead of continuing.For example, if only VS Professional is installed, it is now correctly invoked: