diff options
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/build-windows.ps1 | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/scripts/build-windows.ps1 b/scripts/build-windows.ps1 index 72f941c05..99ea3d040 100644 --- a/scripts/build-windows.ps1 +++ b/scripts/build-windows.ps1 | |||
@@ -96,7 +96,7 @@ if ($env:CLEAN -eq "true") | |||
96 | # Check python version | 96 | # Check python version |
97 | $EXPECTED_PYTHON_VERSION = "3.10.4" | 97 | $EXPECTED_PYTHON_VERSION = "3.10.4" |
98 | $ACTUAL_PYTHON_VERSION = (python --version).trim("Python ") | 98 | $ACTUAL_PYTHON_VERSION = (python --version).trim("Python ") |
99 | if ([System.Version]$ACTUAL_PYTHON_VERSION -le [System.Version]$EXPECTED_PYTHON_VERSION) { | 99 | if ([System.Version]$ACTUAL_PYTHON_VERSION -ne [System.Version]$EXPECTED_PYTHON_VERSION) { |
100 | fail_with_docs "You are not running the expected version of Python! | 100 | fail_with_docs "You are not running the expected version of Python! |
101 | expected: [$EXPECTED_PYTHON_VERSION] | 101 | expected: [$EXPECTED_PYTHON_VERSION] |
102 | actual : [$ACTUAL_PYTHON_VERSION]" | 102 | actual : [$ACTUAL_PYTHON_VERSION]" |
@@ -106,7 +106,7 @@ if ([System.Version]$ACTUAL_PYTHON_VERSION -le [System.Version]$EXPECTED_PYTHON_ | |||
106 | # Check MSVS Tools through MSVS_VERSION | 106 | # Check MSVS Tools through MSVS_VERSION |
107 | $EXPECTED_MSVST_VERSION = "2015" | 107 | $EXPECTED_MSVST_VERSION = "2015" |
108 | $ACTUAL_MSVST_VERSION = (npm config get msvs_version) | 108 | $ACTUAL_MSVST_VERSION = (npm config get msvs_version) |
109 | if ([double]$ACTUAL_MSVST_VERSION -le [double]$EXPECTED_MSVST_VERSION) { | 109 | if ([double]$ACTUAL_MSVST_VERSION -ne [double]$EXPECTED_MSVST_VERSION) { |
110 | fail_with_docs "You are not running the expected version of MSVS Tools! | 110 | fail_with_docs "You are not running the expected version of MSVS Tools! |
111 | expected: [$EXPECTED_MSVST_VERSION] | 111 | expected: [$EXPECTED_MSVST_VERSION] |
112 | actual : [$ACTUAL_MSVST_VERSION]" | 112 | actual : [$ACTUAL_MSVST_VERSION]" |
@@ -150,7 +150,7 @@ else | |||
150 | & $BASE_CMD run prepare-code | 150 | & $BASE_CMD run prepare-code |
151 | 151 | ||
152 | # ----------------------------------------------------------------------------- | 152 | # ----------------------------------------------------------------------------- |
153 | Write-Host "\n*************** Building recipes ***************\n" | 153 | Write-Host "*************** Building recipes ***************" |
154 | # Note: 'recipes' is already using only pnpm - can switch to $BASE_CMD AFTER both repos are using pnpm | 154 | # Note: 'recipes' is already using only pnpm - can switch to $BASE_CMD AFTER both repos are using pnpm |
155 | Push-Location recipes | 155 | Push-Location recipes |
156 | pnpm i | 156 | pnpm i |
@@ -158,7 +158,7 @@ pnpm package | |||
158 | Pop-Location | 158 | Pop-Location |
159 | 159 | ||
160 | # ----------------------------------------------------------------------------- | 160 | # ----------------------------------------------------------------------------- |
161 | Write-Host "\n*************** Building app ***************\n" | 161 | Write-Host "*************** Building app ***************" |
162 | $TARGET_ARCH="x64" | 162 | $TARGET_ARCH="x64" |
163 | & $BASE_CMD run build -- --$TARGET_ARCH --dir | 163 | & $BASE_CMD run build -- --$TARGET_ARCH --dir |
164 | 164 | ||