bump max size for windows zip

This commit is contained in:
Brian Mann
2018-05-29 08:09:30 -04:00
parent 64f2b15824
commit b7756cff3f

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 200 else 130
MAX_ALLOWED_SIZE_MB = if os.platform() == "win32" then 230 else 130
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}")