The folder “app.zip” doesn’t exist
See original GitHub issueVersion electron-builder: 20.7.1 electron-updater: 2.21.3
Target: Mac OSX High Sierra
I have issue with error message ‘The folder “app.zip” doesn’t exist.’ At first I thought it is something related to space in file name, so after publishing to aws s3 I manually renamed the space in filename with dash. It was working, but only one time. Then I thought the issue was with cache. I tried to set autoUpdater.requestHeaders = {“Cache-Control”: “no-cache”}. Then it was working, but only for one time. I dont know why this bug occurs. The error message:
Error: Error: The folder “app.zip” doesn’t exist.: The folder doesn’t exist.\n at MacUpdater.doDownloadUpdate (/Applications/appname/Contents/Resources/app.asar/node_modules/electron-updater/src/MacUpdater.ts:44:12)\n at <anonymous>
The same code works on windows. There is no space in windows installation file. Could you help me, please? I donated to increase issue priority.
Thanks
Issue Analytics
- State:
- Created 5 years ago
- Reactions:1
- Comments:13 (2 by maintainers)
Top GitHub Comments
No, this fix doesn’t fix 2706. It fixes only cache issue.
Have noticed this also fails when auto-updater is downloading from a server that sets the file name using Content-Disposition:
The downloader names the file MyApp_0.1.2.zip, then fails to find it with the error reported above.
Luckily we were able to work around this by updating the server to match what the updater is expecting after a bit of debugging.