diff options
author | André Oliveira <37463445+SpecialAro@users.noreply.github.com> | 2022-07-04 17:55:50 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-04 16:55:50 +0000 |
commit | 4d8848e142bd10c82675d4b70db9fc7c556518a9 (patch) | |
tree | 45b048a0adb685d37c247be01548d6ddcf818afd /scripts/build-windows.ps1 | |
parent | Fix bug of TODO settings not being shown when a TODO Recipe is present (#421) (diff) | |
download | ferdium-app-4d8848e142bd10c82675d4b70db9fc7c556518a9.tar.gz ferdium-app-4d8848e142bd10c82675d4b70db9fc7c556518a9.tar.zst ferdium-app-4d8848e142bd10c82675d4b70db9fc7c556518a9.zip |
Change allowed version for MSVS on Windows build script [skip ci] (#422)
Diffstat (limited to 'scripts/build-windows.ps1')
-rw-r--r-- | scripts/build-windows.ps1 | 4 |
1 files changed, 2 insertions, 2 deletions
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]" |