aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/build-windows.ps1
diff options
context:
space:
mode:
authorLibravatar Vijay Aravamudhan <vraravam@users.noreply.github.com>2024-04-01 14:42:14 +0000
committerLibravatar GitHub <noreply@github.com>2024-04-01 14:42:14 +0000
commit484bcd8928dde915e1e0b4432fcd0f25cd6b2bc5 (patch)
treee34510ae2e399e8dcc54487876612b98a08d9bf7 /scripts/build-windows.ps1
parentupgrade node to 20.11.1 and other minor versions for pkgs (#104) (diff)
downloadferdium-server-484bcd8928dde915e1e0b4432fcd0f25cd6b2bc5.tar.gz
ferdium-server-484bcd8928dde915e1e0b4432fcd0f25cd6b2bc5.tar.zst
ferdium-server-484bcd8928dde915e1e0b4432fcd0f25cd6b2bc5.zip
Update dev scripts (#126)
* Upgrade pnpm to 8.15.5 * Upgrade node to latest LTS (20.12.0) and some other modules
Diffstat (limited to 'scripts/build-windows.ps1')
-rw-r--r--scripts/build-windows.ps18
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
96EXPECTED_NODE_VERSION=(Get-Content .nvmrc)
97ACTUAL_NODE_VERSION=(node -v)
98if ([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 ")