mirror of
https://github.com/cypress-io/cypress.git
synced 2026-05-08 07:50:24 -05:00
fix: remove extra bundled electron in 10.0 binary (#20932)
* fix: remove duplicate electron in binary dependencies * move openProject * fix test failure * Decrease the MAX_ALLOWED_SIZE_MB
This commit is contained in:
@@ -72,7 +72,10 @@ const checkZipSize = function (zipPath) {
|
||||
const zipSize = filesize(stats.size, { round: 0 })
|
||||
|
||||
console.log(`zip file size ${zipSize}`)
|
||||
const MAX_ALLOWED_SIZE_MB = os.platform() === 'win32' ? 295 : 300
|
||||
// Before you modify these max sizes, check and see what you did that might have
|
||||
// done to increase the size of the binary, and if you do need to change it,
|
||||
// call it out in the PR description / comments
|
||||
const MAX_ALLOWED_SIZE_MB = os.platform() === 'win32' ? 295 : 200
|
||||
const MAX_ZIP_FILE_SIZE = megaBytes(MAX_ALLOWED_SIZE_MB)
|
||||
|
||||
if (stats.size > MAX_ZIP_FILE_SIZE) {
|
||||
|
||||
Reference in New Issue
Block a user