Skip to content

Commit ec252f8

Browse files
feat: install win32-x64 binary on win32-arm64 platform (#31784)
* feat: install win32-x64 binary on win32-arm64 platform * Move changelog feature to next minor release --------- Co-authored-by: Bill Glesias <[email protected]>
1 parent 3c9174c commit ec252f8

File tree

3 files changed

+15
-1
lines changed

3 files changed

+15
-1
lines changed

cli/CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,12 @@
11
<!-- See the ../guides/writing-the-cypress-changelog.md for details on writing the changelog. -->
2+
## 14.5.0
3+
4+
_Released 6/17/2025 (PENDING)_
5+
6+
**Features:**
7+
8+
- Install Cypress `win32-x64` binary on Windows `win32-arm64` systems. Cypress runs in emulation. Addresses [#30252](https://github.com/cypress-io/cypress/issues/30252).
9+
210
## 14.4.1
311

412
_Released 6/3/2025_

cli/lib/tasks/download.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,12 @@ const prepend = (arch, urlPath, version) => {
6161
const platform = os.platform()
6262
const pathTemplate = util.getEnv('CYPRESS_DOWNLOAD_PATH_TEMPLATE', true)
6363

64+
if ((platform === 'win32') && (arch === 'arm64')) {
65+
debug(`detected platform ${platform} architecture ${arch} combination`)
66+
arch = 'x64'
67+
debug(`overriding to download ${platform}-${arch} instead`)
68+
}
69+
6470
return pathTemplate
6571
? (
6672
pathTemplate

cli/lib/tasks/install.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ const downloadAndUnzip = ({ version, installDir, downloadDir }) => {
138138

139139
const validateOS = () => {
140140
return util.getPlatformInfo().then((platformInfo) => {
141-
return platformInfo.match(/(win32-x64|linux-x64|linux-arm64|darwin-x64|darwin-arm64)/)
141+
return platformInfo.match(/(win32-x64|win32-arm64|linux-x64|linux-arm64|darwin-x64|darwin-arm64)/)
142142
})
143143
}
144144

0 commit comments

Comments
 (0)