overte/launchers/darwin
Matt Hardcastle 43237e1409 Check macOS Launcher's zip size before unzipping
The Launcher can download an error page rather than the full Launcher.
When this happens, the error page file is passed directly to unzip,
which promptly fails with the following message:

  End-of-central-directory signature not found.  Either this file is not
  a zipfile, or it constitutes one disk of a multi-part archive.  In the
  latter case the central directory and zipfile comment will be found on
  the last disk(s) of this archive.
  unzip:  cannot find zipfile directory in one of NewHQLauncher.zip or
          NewHQLauncher.zip.zip, and cannot find NewHQLauncher.zip.ZIP, period.

This change improves the error message by checking the size of the
Launcher download and failing if the Launcher is smaller than the
smallest Launcher we've released. The smallest Launcher we've had is
308KB, so I picked 250KB as the limit because it's a nice rounder number
below that.
2019-09-05 12:35:24 -07:00
..
cmake making requested changes 2019-07-23 14:09:46 -07:00
data Add HIFI_THUNDER_URL environment variable 2019-08-26 09:10:19 -07:00
images Update mac launcher icon 2019-06-13 15:37:44 -07:00
nib Fix login and next button labels in launchers 2019-08-23 15:36:07 -07:00
src Check macOS Launcher's zip size before unzipping 2019-09-05 12:35:24 -07:00
tests Add HIFI_THUNDER_URL environment variable 2019-08-26 09:10:19 -07:00
CMakeLists.txt Add HIFI_THUNDER_URL environment variable 2019-08-26 09:10:19 -07:00