aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorLibravatar André Oliveira <37463445+SpecialAro@users.noreply.github.com>2022-04-23 09:51:03 -0500
committerLibravatar Vijay A <vraravam@users.noreply.github.com>2022-04-23 09:51:03 -0500
commit68fd8ca15d0efbe2eb1257a71dadb529bd20664f (patch)
tree17c53964659a12767294b671062615085db1c865 /scripts
parentUse correct folder separator for windows [skip ci] (diff)
downloadferdium-app-68fd8ca15d0efbe2eb1257a71dadb529bd20664f.tar.gz
ferdium-app-68fd8ca15d0efbe2eb1257a71dadb529bd20664f.tar.zst
ferdium-app-68fd8ca15d0efbe2eb1257a71dadb529bd20664f.zip
Fix windows build script [skip ci]
Fix changelog url (rebranding fix)
Diffstat (limited to 'scripts')
-rw-r--r--scripts/build-windows.ps18
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 ")
99if ([System.Version]$ACTUAL_PYTHON_VERSION -le [System.Version]$EXPECTED_PYTHON_VERSION) { 99if ([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)
109if ([double]$ACTUAL_MSVST_VERSION -le [double]$EXPECTED_MSVST_VERSION) { 109if ([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# -----------------------------------------------------------------------------
153Write-Host "\n*************** Building recipes ***************\n" 153Write-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
155Push-Location recipes 155Push-Location recipes
156pnpm i 156pnpm i
@@ -158,7 +158,7 @@ pnpm package
158Pop-Location 158Pop-Location
159 159
160# ----------------------------------------------------------------------------- 160# -----------------------------------------------------------------------------
161Write-Host "\n*************** Building app ***************\n" 161Write-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