Bump max archive size on macOS, Linux

Most PRs are hitting this, let's bump it.
This commit is contained in:
Zach Bloomquist
2019-12-06 14:41:32 -05:00
committed by GitHub
parent 932f859c31
commit ed07844d8d

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 160
MAX_ALLOWED_SIZE_MB = if os.platform() == "win32" then 245 else 170
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} (#{stats.size} bytes) exceeds #{MAX_ZIP_FILE_SIZE} bytes")