increase allowed zip size... again

@Bkucera probably want to look at this again
This commit is contained in:
Brian Mann
2018-06-18 03:16:23 -04:00
parent abfb594872
commit eda664891a
+2 -2
View File
@@ -39,10 +39,10 @@ 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 230 else 130
MAX_ALLOWED_SIZE_MB = if os.platform() == "win32" then 235 else 135
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}")
throw new Error("Zip file is too large: #{zipSize} exceeds #{MAX_ZIP_FILE_SIZE}")
# resolves with zipped filename
linuxZip = (src, dest) ->