diff options
Diffstat (limited to 'scripts/build-windows.ps1')
-rw-r--r-- | scripts/build-windows.ps1 | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/scripts/build-windows.ps1 b/scripts/build-windows.ps1 index c22e033..1bed200 100644 --- a/scripts/build-windows.ps1 +++ b/scripts/build-windows.ps1 | |||
@@ -92,6 +92,14 @@ if ($env:CLEAN -eq "true") | |||
92 | 92 | ||
93 | # ----------------------------------------------------------------------------- | 93 | # ----------------------------------------------------------------------------- |
94 | # Ensure that the system dependencies are at the correct version - fail if not | 94 | # Ensure that the system dependencies are at the correct version - fail if not |
95 | # Check node version | ||
96 | EXPECTED_NODE_VERSION=(Get-Content .nvmrc) | ||
97 | ACTUAL_NODE_VERSION=(node -v) | ||
98 | if ([System.Version]$ACTUAL_NODE_VERSION -ne [System.Version]$EXPECTED_NODE_VERSION) { | ||
99 | fail_with_docs "You are not running the expected version of node! | ||
100 | expected: [v$EXPECTED_NODE_VERSION] | ||
101 | actual : [$ACTUAL_NODE_VERSION]" | ||
102 | } | ||
95 | # Check python version | 103 | # Check python version |
96 | $EXPECTED_PYTHON_VERSION = (Get-Content package.json | ConvertFrom-Json).engines.python | 104 | $EXPECTED_PYTHON_VERSION = (Get-Content package.json | ConvertFrom-Json).engines.python |
97 | $ACTUAL_PYTHON_VERSION = (python --version).trim("Python ") | 105 | $ACTUAL_PYTHON_VERSION = (python --version).trim("Python ") |