flipperdevices / qFlipper

qFlipper — desktop application for updating Flipper Zero firmware via PC
https://update.flipperzero.one
GNU General Public License v3.0
1.07k stars 142 forks source link

Enable VS Professional and Enterprise build environments #77

Closed richardsondev closed 2 years ago

richardsondev commented 2 years ago

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
**********************************************************************