-
Notifications
You must be signed in to change notification settings - Fork 5.4k
[browser] Add chrome provisioning on macos #124852
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -69,6 +69,26 @@ | |||||
| <_V8PlatformId>linux64</_V8PlatformId> | ||||||
| </PropertyGroup> | ||||||
|
|
||||||
| <PropertyGroup Condition="$([MSBuild]::IsOSPlatform('macos'))"> | ||||||
| <ChromeDirName>chrome-mac/Chromium.app/Contents/MacOS</ChromeDirName> | ||||||
| <ChromeDriverDirName>chromedriver_mac64</ChromeDriverDirName> | ||||||
| <ChromeBinaryName>Chromium</ChromeBinaryName> | ||||||
| <ChromeDriverBinaryName>chromedriver</ChromeDriverBinaryName> | ||||||
| <_ChromeOSPrefix>Mac_Arm</_ChromeOSPrefix> | ||||||
|
|
||||||
| <ChromeVersion>$(macos_ChromeVersion)</ChromeVersion> | ||||||
| <ChromeRevision>$(macos_ChromeRevision)</ChromeRevision> | ||||||
| <_ChromeBaseSnapshotUrl>$(macos_ChromeBaseSnapshotUrl)</_ChromeBaseSnapshotUrl> | ||||||
|
|
||||||
| <ChromeUrl>$(macos_ChromeBaseSnapshotUrl)/chrome-mac.zip</ChromeUrl> | ||||||
| <ChromeDriverUrl>$(macos_ChromeBaseSnapshotUrl)/chromedriver_mac64.zip</ChromeDriverUrl> | ||||||
radekdoulik marked this conversation as resolved.
Show resolved
Hide resolved
|
||||||
|
|
||||||
| <V8Version>$(macos_V8Version)</V8Version> | ||||||
| <V8DirName>v8-$(macos_V8Version)</V8DirName> | ||||||
| <V8BinaryName>$(V8DirName).sh</V8BinaryName> | ||||||
| <_V8PlatformId>mac-arm64</_V8PlatformId> | ||||||
|
Comment on lines
+77
to
+89
|
||||||
| </PropertyGroup> | ||||||
|
Comment on lines
+72
to
+90
|
||||||
|
|
||||||
| <PropertyGroup Condition="$([MSBuild]::IsOSPlatform('windows'))"> | ||||||
| <ChromeDirName>chrome-win</ChromeDirName> | ||||||
| <ChromeDriverDirName>chromedriver_win32</ChromeDriverDirName> | ||||||
|
|
@@ -109,8 +129,8 @@ | |||||
| AfterTargets="$(WasmProvisionAfterTarget)" | ||||||
| Condition="(!Exists($(ChromeStampFile)) or !Exists($(ChromeBinaryPath))) and '$(InstallChromeForTests)' == 'true'"> | ||||||
|
|
||||||
| <Error Condition="!$([MSBuild]::IsOSPlatform('linux')) and !$([MSBuild]::IsOSPlatform('windows'))" | ||||||
| Text="Chrome provisioning only supported on Linux, and windows." /> | ||||||
| <Error Condition="!$([MSBuild]::IsOSPlatform('linux')) and !$([MSBuild]::IsOSPlatform('windows')) and !$([MSBuild]::IsOSPlatform('macos'))" | ||||||
|
||||||
| <Error Condition="!$([MSBuild]::IsOSPlatform('linux')) and !$([MSBuild]::IsOSPlatform('windows')) and !$([MSBuild]::IsOSPlatform('macos'))" | |
| <Error Condition="!$([MSBuild]::IsOSPlatform('linux')) and !$([MSBuild]::IsOSPlatform('windows')) and !$([MSBuild]::IsOSPlatform('OSX'))" |
radekdoulik marked this conversation as resolved.
Show resolved
Hide resolved
Copilot
AI
Feb 25, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The Error condition uses IsOSPlatform('macos'), but MSBuild recognizes 'OSX' as the platform identifier for macOS, not 'macos'. This should be changed to IsOSPlatform('OSX') to be consistent with the rest of the codebase (see eng/OSArch.props line 4).
Uh oh!
There was an error while loading. Please reload this page.