chore: update AppVeyor image to include latest Windows updates (#36649)
clenaup Co-authored-by: VerteDinde <vertedinde@electronjs.org>
This commit is contained in:
parent
4d9c84d7c0
commit
425f1ffa98
3 changed files with 24 additions and 10 deletions
|
@ -6,7 +6,7 @@
|
||||||
|
|
||||||
version: 1.0.{build}
|
version: 1.0.{build}
|
||||||
build_cloud: electronhq-16-core
|
build_cloud: electronhq-16-core
|
||||||
image: Windows_Default_Appveyor
|
image: e-110.0.5451.0
|
||||||
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
|
||||||
|
@ -16,17 +16,24 @@ environment:
|
||||||
GOMA_FALLBACK_ON_AUTH_FAILURE: true
|
GOMA_FALLBACK_ON_AUTH_FAILURE: true
|
||||||
DEPOT_TOOLS_WIN_TOOLCHAIN: 0
|
DEPOT_TOOLS_WIN_TOOLCHAIN: 0
|
||||||
PYTHONIOENCODING: UTF-8
|
PYTHONIOENCODING: UTF-8
|
||||||
|
# Uncomment these lines and set APPVEYOR_RDP_PASSWORD in project settings to enable RDP before bake begins
|
||||||
|
# install:
|
||||||
|
# - ps: $blockRdp = $true; iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
|
||||||
build_script:
|
build_script:
|
||||||
- ps: Resize-Partition -DriveLetter C -Size (256GB) # ensure initial partition size
|
# Uncomment/change the following line if the hard drive/partition size needs to change
|
||||||
- ps: Get-Partition -DriveLetter C
|
# - ps: Resize-Partition -DriveLetter C -Size (256GB) # ensure initial partition size
|
||||||
- git config --global core.longpaths true
|
- git config --global core.longpaths true
|
||||||
- cd ..
|
- cd ..
|
||||||
- mkdir src
|
- ps: >-
|
||||||
|
if (-not (Test-Path -Path .\src)) {
|
||||||
|
New-Item -Path .\src -ItemType Directory
|
||||||
|
}
|
||||||
- ps: git clone --depth=1 https://chromium.googlesource.com/chromium/tools/depot_tools.git
|
- ps: git clone --depth=1 https://chromium.googlesource.com/chromium/tools/depot_tools.git
|
||||||
- ps: $env:PATH="$pwd\depot_tools;$env:PATH"
|
- ps: $env:PATH="$pwd\depot_tools;$env:PATH"
|
||||||
- update_depot_tools.bat
|
- update_depot_tools.bat
|
||||||
- ps: Move-Item $env:APPVEYOR_BUILD_FOLDER -Destination src\electron
|
- ps: Move-Item $env:APPVEYOR_BUILD_FOLDER -Destination src\electron
|
||||||
- src\electron\script\setup-win-for-dev.bat
|
# Uncomment the following line if windows deps change
|
||||||
|
# - src\electron\script\setup-win-for-dev.bat
|
||||||
- >-
|
- >-
|
||||||
gclient config
|
gclient config
|
||||||
--name "src\electron"
|
--name "src\electron"
|
||||||
|
@ -40,13 +47,20 @@ build_script:
|
||||||
- ps: cd ..\..
|
- ps: cd ..\..
|
||||||
- gclient sync --with_branch_heads --with_tags --nohooks
|
- gclient sync --with_branch_heads --with_tags --nohooks
|
||||||
- ps: regsvr32 /s "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\DIA SDK\bin\amd64\msdia140.dll"
|
- ps: regsvr32 /s "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\DIA SDK\bin\amd64\msdia140.dll"
|
||||||
|
- ps: |
|
||||||
|
$env:appveyor_user = "appveyor"
|
||||||
|
|
||||||
|
$env:appveyor_password = [Guid]::NewGuid().ToString('B')
|
||||||
|
|
||||||
|
Set-LocalUser -Name $env:appveyor_user -Password (ConvertTo-SecureString -AsPlainText $env:appveyor_password -Force) -PasswordNeverExpires:$true
|
||||||
|
|
||||||
|
iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/build-images/master/scripts/Windows/enable_autologon.ps1'))
|
||||||
on_image_bake:
|
on_image_bake:
|
||||||
- ps: >-
|
- ps: >-
|
||||||
echo "Baking image: $env:APPVEYOR_BAKE_IMAGE at dir $PWD"
|
echo "Baking image: $env:APPVEYOR_BAKE_IMAGE at dir $PWD"
|
||||||
- ps: Remove-Item -Recurse -Force $pwd\depot_tools
|
- ps: Remove-Item -Recurse -Force $pwd\depot_tools
|
||||||
- ps: Remove-Item -Recurse -Force $pwd\src\electron
|
- ps: Remove-Item -Recurse -Force $pwd\src\electron
|
||||||
# Uncomment these lines to enable RDP
|
# Uncomment these lines and set APPVEYOR_RDP_PASSWORD in project settings to enable RDP after bake is done
|
||||||
#on_finish:
|
#on_finish:
|
||||||
# - ps: >-
|
# - ps: >-
|
||||||
# $env:APPVEYOR_RDP_PASSWORD = "electron"
|
|
||||||
# $blockRdp = $true; iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
|
# $blockRdp = $true; iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
|
|
@ -25,7 +25,7 @@
|
||||||
|
|
||||||
version: 1.0.{build}
|
version: 1.0.{build}
|
||||||
build_cloud: electronhq-16-core
|
build_cloud: electronhq-16-core
|
||||||
image: e-110.0.5415.0-fix
|
image: e-110.0.5451.0
|
||||||
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
|
||||||
|
|
|
@ -14,8 +14,8 @@ const ROLLER_BRANCH_PATTERN = /^roller\/chromium$/;
|
||||||
|
|
||||||
const DEFAULT_BUILD_CLOUD_ID = '1598';
|
const DEFAULT_BUILD_CLOUD_ID = '1598';
|
||||||
const DEFAULT_BUILD_CLOUD = 'electronhq-16-core';
|
const DEFAULT_BUILD_CLOUD = 'electronhq-16-core';
|
||||||
const DEFAULT_BAKE_BASE_IMAGE = 'Windows_Default_Appveyor';
|
const DEFAULT_BAKE_BASE_IMAGE = 'e-110.0.5451.0';
|
||||||
const DEFAULT_BUILD_IMAGE = 'Windows_Default_Appveyor';
|
const DEFAULT_BUILD_IMAGE = 'e-110.0.5451.0';
|
||||||
|
|
||||||
const appveyorBakeJob = 'electron-bake-image';
|
const appveyorBakeJob = 'electron-bake-image';
|
||||||
const appVeyorJobs = {
|
const appVeyorJobs = {
|
||||||
|
|
Loading…
Reference in a new issue