From 07cadae5006432b6494eea0797193109a4462895 Mon Sep 17 00:00:00 2001 From: André Oliveira <37463445+SpecialAro@users.noreply.github.com> Date: Sun, 28 Jan 2024 10:07:15 +0000 Subject: Remove python references and MSVS (#94) * Remove python references and MSVS * add back python references * Resurrecting doc for python; Upgrade version of recipes submodule --------- Co-authored-by: Vijay A --- scripts/build-windows.ps1 | 39 +++------------------------------------ 1 file changed, 3 insertions(+), 36 deletions(-) (limited to 'scripts/build-windows.ps1') diff --git a/scripts/build-windows.ps1 b/scripts/build-windows.ps1 index 71b27b8..c22e033 100644 --- a/scripts/build-windows.ps1 +++ b/scripts/build-windows.ps1 @@ -100,38 +100,6 @@ if ([System.Version]$ACTUAL_PYTHON_VERSION -ne [System.Version]$EXPECTED_PYTHON_ expected: [$EXPECTED_PYTHON_VERSION] actual : [$ACTUAL_PYTHON_VERSION]" } - -# Check MSVS Tools through MSVS_VERSION -$EXPECTED_MSVST_VERSION = @("2019","2022") -$NPM_CONFIG_MSVS_VERSION = npm config get msvs_version -if((-not $NPM_CONFIG_MSVS_VERSION) -or -not ($EXPECTED_MSVST_VERSION -contains $NPM_CONFIG_MSVS_VERSION)){ - Write-Host "Your Microsoft Visual Studio Tools isn't set properly or it's not the right version! - Checking your version..." - - # TODO: Implement path for ARM machines - $MSVS_REG_PATH = "Registry::HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\14.0\VC\Runtimes\X64" - - if(-not (Test-Path -Path $MSVS_REG_PATH)){ - fail_with_docs "You don't have the Microsoft Visual Studio Tools installed!" - } - - $MSVS_VERSION = [int]((Get-ItemProperty -Path $MSVS_REG_PATH).Version.substring(4, 2)) - switch($MSVS_VERSION) { - { $MSVS_VERSION -ge 30 } {$ACTUAL_MSVST_VERSION = "2022"} - { ($MSVS_VERSION -ge 20) -and ($MSVS_VERSION -le 29) } {$ACTUAL_MSVST_VERSION = "2019"} - { $MSVS_VERSION -lt 20 } {$ACTUAL_MSVST_VERSION = "2017 or lower"} - } - - if (-not ($EXPECTED_MSVST_VERSION -contains $ACTUAL_MSVST_VERSION)) { - fail_with_docs "You are not running the expected version of MSVS Tools! - expected: [$EXPECTED_MSVST_VERSION] - actual : [$ACTUAL_MSVST_VERSION]" - } - - Write-Host "Changing your msvs_version on npm to [$ACTUAL_MSVST_VERSION]" - npm config set msvs_version $ACTUAL_MSVST_VERSION -} - # Check pnpm version $EXPECTED_PNPM_VERSION = (Get-Content .\recipes\package.json | ConvertFrom-Json).engines.pnpm $ACTUAL_PNPM_VERSION = Get-Command pnpm --version -ErrorAction SilentlyContinue # in case the pnpm executable itself is not present @@ -162,12 +130,11 @@ Pop-Location & pnpm i & pnpm prepare & pnpm lint -# TODO: Uncomment after fixing tests -# & pnpm test +& pnpm test # ----------------------------------------------------------------------------- Write-Host "*************** Starting app ***************" -& node ace migration:refresh -& pnpm start --dev +& pnpm refresh +& pnpm dev Write-Host "*************** App successfully stopped! ***************" -- cgit v1.2.3-54-g00ecf