kdrag0n / android-webinstall

Easy-to-use web installer for Android-based operating systems
https://protonaosp.kdrag0n.dev/
MIT License
261 stars 56 forks source link

End of central directory not found #4

Open kdrag0n opened 3 years ago

kdrag0n commented 3 years ago

An unfinished download, empty (404), or otherwise corrupted zip will result in the following error:

Error: End of central directory not found
  at Ne.getEntries(/protonaosp-install/js/chunk-vendors.fd2d2a3c.js:22:55537)
  at async Ge(/protonaosp-install/js/chunk-vendors.fd2d2a3c.js:22:64445)
  at async rn.flashFactoryZip(/protonaosp-install/js/chunk-vendors.fd2d2a3c.js:22:71271)

This should be handled better, e.g. by providing an option to delete the corrupted blob and retry the download.

mvsa06 commented 3 years ago

An unfinished download, empty (404), or otherwise corrupted zip will result in the following error:

Error: End of central directory not found
  at Ne.getEntries(/protonaosp-install/js/chunk-vendors.fd2d2a3c.js:22:55537)
  at async Ge(/protonaosp-install/js/chunk-vendors.fd2d2a3c.js:22:64445)
  at async rn.flashFactoryZip(/protonaosp-install/js/chunk-vendors.fd2d2a3c.js:22:71271)

This should be handled better, e.g. by providing an option to delete the corrupted blob and retry the download.