diff options
-rw-r--r-- | CONTRIBUTING.md | 2 | ||||
-rw-r--r-- | scripts/build-windows.ps1 | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 159cadb28..e4e9fc696 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md | |||
@@ -90,7 +90,7 @@ dnf install libX11-devel libXext-devel libXScrnSaver-devel libxkbfile-devel rpm | |||
90 | 90 | ||
91 | Please make sure you have the following installed: | 91 | Please make sure you have the following installed: |
92 | 92 | ||
93 | - Microsoft Visual Studio Build Tools (2019 or higher - with Windows 10 SDK selected) - Only tested with 2019 so far. | 93 | - Microsoft Visual Studio Build Tools (2019 or higher - with Windows 10 SDK selected). |
94 | 94 | ||
95 | ### Clone repository with submodule | 95 | ### Clone repository with submodule |
96 | 96 | ||
diff --git a/scripts/build-windows.ps1 b/scripts/build-windows.ps1 index ee0d67210..064eb026c 100644 --- a/scripts/build-windows.ps1 +++ b/scripts/build-windows.ps1 | |||
@@ -96,9 +96,9 @@ if ($env:CLEAN -eq "true") | |||
96 | # Ensure that the system dependencies are at the correct version - fail if not | 96 | # Ensure that the system dependencies are at the correct version - fail if not |
97 | # TODO: Needs proper way to check MSVS Tools | 97 | # TODO: Needs proper way to check MSVS Tools |
98 | # Check MSVS Tools through MSVS_VERSION | 98 | # Check MSVS Tools through MSVS_VERSION |
99 | $EXPECTED_MSVST_VERSION = "2015" | 99 | $EXPECTED_MSVST_VERSION = @("2019", "2022") |
100 | $ACTUAL_MSVST_VERSION = (npm config get msvs_version) | 100 | $ACTUAL_MSVST_VERSION = (npm config get msvs_version) |
101 | if ([double]$ACTUAL_MSVST_VERSION -ne [double]$EXPECTED_MSVST_VERSION) { | 101 | if (-not ($EXPECTED_MSVST_VERSION -contains $ACTUAL_MSVST_VERSION)) { |
102 | fail_with_docs "You are not running the expected version of MSVS Tools! | 102 | fail_with_docs "You are not running the expected version of MSVS Tools! |
103 | expected: [$EXPECTED_MSVST_VERSION] | 103 | expected: [$EXPECTED_MSVST_VERSION] |
104 | actual : [$ACTUAL_MSVST_VERSION]" | 104 | actual : [$ACTUAL_MSVST_VERSION]" |