-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Auto update doesn't work: app-update.yml
is missing
#4233
Comments
In case it helps anyone, I ran into this issue when my package.json's build:win contained "target": [ "zip", "msi" ]. |
Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward? This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. |
Still relevant |
I have the same problem. - Version: ^22.2.0 The autoupdater is created as
And the error I get in the log is
The .yml file and latest.yml are properly generated if I build with "nsis" target. |
I ran into this problem when the |
Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward? This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. |
Very |
Is there any progress on this? It's April 14, 2020, and, this issue is still not resolved. I tried to manually add my own app-update.yml file. But, doing so causes mac security to think the app was modified after being notarized. |
Since there is no fix on this yet. I added Error after new version is downloaded
afterPackHook.js
|
This issue still exists on Every time user launches my app they see:
I checked the folder and the only file there is cc @develar |
Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward? This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. |
Don't close this issue. This is an automatic message by Fresh - a bot against stale bots. |
Hi, in case somebody has same issue (app-update.yml missing on Windows). Its generated only if one of the following targets is enabled: nsis or nsis-web. If you building only portable or zip + msi or any other combination of targets that doesn't include nsis - app-update.yml won't be generated as target is not "suitable" (source). Also note, that this after pack handler that generates app-update.yml checks only build and platform And finally one more tip if you are building msi with auto-update: adding nsis target will trick builder to generate app-update.yml. But another important file that is required for updates elevate.exe is copied only as part of the following targets: nsis, nsis-web, portable, but not msi. Without this file when user will click install and restart application, it may crash with following error: |
Any updates on this issue? This is still happening. |
Any updates? |
app-update.yml missing on Mac too if target: ["dir"] Founded in docs
|
The problem remains.
|
Thank you @AndrewReisdorph this worked like a charm |
I was having the same issue, even though my build was working fine. I found that I have to have nsis in lowercase, it was previously uppercase. After doing so the app-update.yml and resources folder were properly built. I don't know if this helps anyone but I thought I'd share.
|
I've encountered this issue while building on Debian 18.04. Christmas is coming, I can see where my holidays will go with this :( |
Same here on Ubuntu 18.04. |
Always nothing new ? |
Same issue for me on Linux only: But it works well on Windows and Mac ! |
Seems to be resolved with the latest version of Electron Builder : 22.11.1 |
I fixed this and here's how: My os and arch are Windows 10 Home - x64
My working code:
What did the trick was moving the The build process didn't output any errors or warnings about this "misplacement" but there are definitely consequences, maybe it would be wise to output a warning when something like this happens. |
Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward? This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. |
Hi !
|
The default setting that Electron generates, is to have electron-builder.config.json like
For some commenters, moving publish inside win was the solution. However, that didn't work for me with electron-builder version 22.10.5. I can't upgrade to version 22.11.7, because that version has a bug with fs/promises, which would possibly be solved by upgrading to Node 14 (from current 12), which I can't do right now. https://stackoverflow.com/questions/68085375/cannot-find-module-fs-promises-electron-js |
How is an end user affected by an application with this bug supposed to work around this? Is there some mystical incantation that can be put into the offending file to allow the application to actually run. I don't want automatic updates. I just want the app to run. Waaail :) |
It would be nice if the file app-update.yml was generated independently of the targets. |
This major bug is still present, three years later. |
how did you resolve it on linux? |
I'm having a related problem. Our macOS and Windows builds work fine, but in the case of Linux it seems that app-image.yml is not being generated. Here are some details about my use case. We don't build the AppImage directly with electron-builder. Instead, we build to zip and then take that zip file and feed it into our build system, which builds it into a deb, an rpm and an AppImage. Updates are taken care of for the deb and rpm, but we'd like to use the update mechanism for the AppImage. However, as I said above, app-update.yml is not being generated for the zip file build. This means that the final AppImage does not contain app-update.yml, so it does not know how to find out if there is a newer version. After doing some pretty significant digging into the electron-builder code, the only way I can see to work around this is for us to include an independent app-update.yml file in the project's resources directory (i.e. one that is hard-coded and not generated from electron-builder.yml) and then parse it and pass it in the As panther7 said above, it would be nice if app-update.yml could be generated independently of the targets. |
Just wanted to chime in and say that if you want the app to just launch without errors and don't care about having the update functionality functioning, I found a way that works for me. In index.js, comment out this line Edit: (And/Or in index.ts, you will find that same line and comment it out). It seems to ignore checking for app-update.yaml. This is with electron versioned at ^14.0.0 and electron-builder on the latest version (22.14.13). Sadly, none of the methods I have tried in the past few hours have provided any luck to actually generating a working app-update.yaml. It's unfortunate because the feature would be really nice to have, but at least the user isn't presented with an error window opening the app. |
I'm using electron builder to auto-update my app for mac, windows & ubuntu OS. mac & windows are working fine. But, the Ubuntu deb package app is throwing errors while it's updating as I attach error logs below. I've tried some solutions available on web but didn't get the solution. Error: Error: ENOENT: no such file or directory, open '/opt/Centroall Tracker/resources/app-update.yml' electron=11.5.0, |
@keyurchitroda only AppImage supports auto-updates on linux. This ticket has deviated far from it's original electron-builder version and the reported core issue: NSIS. Closing this. Please open new issues to target your specific OS/usecase |
We noticed that auto-update doesn't work on our newly released app. In our entry point we have:
package.json
GH_TOKEN
latest.yml
fileWe don't have logs about what the actual error might be. We did many tests before and after with the same and similar setups and it seems to work for the most part (even without publish config). Nevertheless, we managed to probably reproduce the issue by setting up dummy projects in the same environment and we got:
The main difference being the environment, and in this particular environment if the
publish
config is initially unset,app-update.yml
was not found in the installed app. Most interestingly, after removing the publish configapp-update.yml
is still there.To reproduce:
app-update.yml
is missing(build repo at 3.0.0: https://gitlab.com/gomori.zsolt1995/electron-updater-test-project/tree/f66d0bcd5b8912d3a9aa436cc74c4e546fe1bba4)app-update.yml
is present (build repo at 3.0.1: https://gitlab.com/gomori.zsolt1995/electron-updater-test-project/tree/c0d81fd3f10512eff5bb88bb7ba2a0117bc56ad3)app-update.yml
is present (build repo at 3.0.4: https://gitlab.com/gomori.zsolt1995/electron-updater-test-project/tree/522cd15f0dd110d62705b99c9e019723a13628d4)Found a few mentions about
app-update.yml
not being found, most notably: #2736 (comment)But it's never clear anywhere whether this is a known bug or what's causing it and why this behavior seemingly isn't idempotent.
I'd like to understand how to fix it and whether we have any recourse for resurrecting auto-updates for existing users (in case there could be other reasons for this behavior).
The text was updated successfully, but these errors were encountered: