Skip to content

Commit

Permalink
build: use node 18.12 in AppVeyor (23-x-y) (#37282)
Browse files Browse the repository at this point in the history
* build: use node18.12 appveyor image

* build: use e-110.0.5481.77-node18
  • Loading branch information
VerteDinde committed Feb 15, 2023
1 parent 9885c1c commit 83928bd
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion appveyor-bake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

version: 1.0.{build}
build_cloud: electronhq-16-core
image: e-110.0.5481.77
image: e-111.0.5560.0-node18
environment:
GIT_CACHE_PATH: C:\Users\appveyor\libcc_cache
ELECTRON_OUT_DIR: Default
Expand Down
2 changes: 1 addition & 1 deletion appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@

version: 1.0.{build}
build_cloud: electronhq-16-core
image: e-110.0.5481.77
image: e-110.0.5481.77-node18
environment:
GIT_CACHE_PATH: C:\Users\appveyor\libcc_cache
ELECTRON_OUT_DIR: Default
Expand Down
6 changes: 3 additions & 3 deletions script/prepare-appveyor.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ const ROLLER_BRANCH_PATTERN = /^roller\/chromium$/;

const DEFAULT_BUILD_CLOUD_ID = '1598';
const DEFAULT_BUILD_CLOUD = 'electronhq-16-core';
const DEFAULT_BAKE_BASE_IMAGE = 'e-111.0.5560.0-2';
const DEFAULT_BUILD_IMAGE = 'e-111.0.5560.0-2';
const DEFAULT_BAKE_BASE_IMAGE = 'e-111.0.5560.0-node18';
const DEFAULT_BUILD_IMAGE = 'e-111.0.5560.0-node18';

const appveyorBakeJob = 'electron-bake-image';
const appVeyorJobs = {
Expand Down Expand Up @@ -188,7 +188,7 @@ async function prepareAppVeyorImage (opts) {
const [, CHROMIUM_VERSION] = versionRegex.exec(deps);

const cloudId = opts.cloudId || DEFAULT_BUILD_CLOUD_ID;
const imageVersion = opts.imageVersion || `e-${CHROMIUM_VERSION}`;
const imageVersion = opts.imageVersion || `e-${CHROMIUM_VERSION}-node18`;
const image = await checkAppVeyorImage({ cloudId, imageVersion });

if (image && image.name) {
Expand Down
4 changes: 2 additions & 2 deletions script/setup-win-for-dev.bat
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ REM Install Windows SDK
choco install windows-sdk-10-version-2104-all

REM Install nodejs python git and yarn needed dependencies
choco install -y nodejs-lts python2 git yarn
choco install python --version 3.7.9
choco install -y --force nodejs --version=18.12.1
choco install -y python2 git yarn
call C:\ProgramData\chocolatey\bin\RefreshEnv.cmd
SET PATH=C:\Python27\;C:\Python27\Scripts;C:\Python39\;C:\Python39\Scripts;%PATH%

Expand Down

0 comments on commit 83928bd

Please sign in to comment.