increase allowed binary size from 145 to 150 MB

This commit is contained in:
Gleb Bahmutov
2019-09-25 18:35:26 -04:00
parent 2c35402fbe
commit 5667534795

View File

@@ -39,7 +39,7 @@ checkZipSize = (zipPath) ->
stats = fs.statSync(zipPath)
zipSize = filesize(stats.size, {round: 0})
console.log("zip file size #{zipSize}")
MAX_ALLOWED_SIZE_MB = if os.platform() == "win32" then 245 else 145
MAX_ALLOWED_SIZE_MB = if os.platform() == "win32" then 245 else 150
MAX_ZIP_FILE_SIZE = megaBytes(MAX_ALLOWED_SIZE_MB)
if stats.size > MAX_ZIP_FILE_SIZE
throw new Error("Zip file is too large: #{zipSize} exceeds #{MAX_ZIP_FILE_SIZE}")