-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No update-info.json file in update cache folder 😶 #4928
Comments
Closes electron-userland#4928 This change is to remove the use of `==` in favour of `===` (i.e. remove all uses of abstract equality operator in favour of the strict equality operator)
It seems that this file is supposed to be created normally in the update download process. I am unsure why it was not created in my case but I have a fix in the linked PR which will ensure that the update cache folder is cleared and recreated if the file does not exist. I tested this locally and this fix does work and the cache folder created correctly. UpdateThe root cause of this is fs-extra's This is the code in question electron-builder/packages/electron-updater/src/DownloadedUpdateHelper.ts Lines 93 to 114 in 2e49f0b
The optional chaining and nullish coalescing changes I added before should fix things but I'm going to add an early return as well for clarity. |
* fix: cached update validation failing on undefined filename Closes #4928 This change is to remove the use of `==` in favour of `===` (i.e. remove all uses of abstract equality operator in favour of the strict equality operator) * fix: handle case where cachedInfo object is undefined * fix: early return if update file does not exist
the problem is same: |
Yeah my fix was incomplete. My project was actually having issues with fs-extra in other dependencies as well, and I think the suspect is my webpack configuration. I'm not really sure what was happening. I might give electron-builder another go soon and see if that was it, because according to the spec provided by fs-extra I think the code in electron-builder should be working. |
I'm seeing this error after uploading a new version to an S3 bucket.
The upload went fine and all of the artifacts are there as far as I can tell.
Here is the log of the local application (output to AppData log.log from
electron-log
logger)After looking at the source code the only place the
fileName
property is accessed is here:I think this actually means that for some reason the
update-info.json
file that the cachedInfo object is supposed to draw from does not exist. Indeed I checked my directory and there is nothing.When is this file supposed to be created?
What could be causing this?
Are there more logging steps that can be done?
The text was updated successfully, but these errors were encountered: