build: update appveyor to node 20.17 (#44026)

* build: update appveyor to node 20.17

* build: bake new images with npm dir

* build: use e-131.0.6734.0-node-20.17-1
This commit is contained in:
Keeley Hammond 2024-09-30 22:14:46 +02:00 коммит произвёл GitHub
Родитель 5d9800e176
Коммит 7ebc427bf5
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: B5690EEEBB952194
3 изменённых файлов: 7 добавлений и 3 удалений

Просмотреть файл

@ -29,7 +29,7 @@
version: 1.0.{build} version: 1.0.{build}
build_cloud: electronhq-16-core build_cloud: electronhq-16-core
image: e-131.0.6734.0 image: e-131.0.6734.0-node-20.17-1
environment: environment:
GIT_CACHE_PATH: C:\Users\appveyor\libcc_cache GIT_CACHE_PATH: C:\Users\appveyor\libcc_cache
ELECTRON_OUT_DIR: Default ELECTRON_OUT_DIR: Default

Просмотреть файл

@ -29,7 +29,7 @@
version: 1.0.{build} version: 1.0.{build}
build_cloud: electronhq-16-core build_cloud: electronhq-16-core
image: e-131.0.6734.0 image: e-131.0.6734.0-node-20.17-1
environment: environment:
GIT_CACHE_PATH: C:\Users\appveyor\libcc_cache GIT_CACHE_PATH: C:\Users\appveyor\libcc_cache
ELECTRON_OUT_DIR: Default ELECTRON_OUT_DIR: Default

Просмотреть файл

@ -56,11 +56,15 @@ REM Install Windows SDK
choco install windows-sdk-11-version-22h2-all choco install windows-sdk-11-version-22h2-all
REM Install nodejs python git and yarn needed dependencies REM Install nodejs python git and yarn needed dependencies
choco install -y --force nodejs --version=20.9.0 choco install -y --force nodejs --version=20.17.0
choco install -y python2 git yarn choco install -y python2 git yarn
choco install python --version 3.7.9 choco install python --version 3.7.9
call C:\ProgramData\chocolatey\bin\RefreshEnv.cmd call C:\ProgramData\chocolatey\bin\RefreshEnv.cmd
SET PATH=C:\Python27\;C:\Python27\Scripts;C:\Python39\;C:\Python39\Scripts;%PATH% SET PATH=C:\Python27\;C:\Python27\Scripts;C:\Python39\;C:\Python39\Scripts;%PATH%
if exist "C:\Users\appveyor\AppData\Roaming\npm" (
rm -rf "C:\Users\appveyor\AppData\Roaming\npm"
mkdir "C:\Users\appveyor\AppData\Roaming\npm"
)
if not exist "C:\Users\appveyor\AppData\Roaming\npm" ( if not exist "C:\Users\appveyor\AppData\Roaming\npm" (
mkdir "C:\Users\appveyor\AppData\Roaming\npm" mkdir "C:\Users\appveyor\AppData\Roaming\npm"
) )