-
Notifications
You must be signed in to change notification settings - Fork 2
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
Error during update check #179
Comments
Hi @marisademeglio this error means the app used was not made with electron-builder "publish" mode The thing I'm not sure of is how to plug this release target result in the current release workflow : I need to ask this in the next meeting but, if i recall ACE is also a signed electron app, so could we use the same "release" workflow ? |
Hello, no auto-updates in Ace. Just a basic notification of available newer release. |
Ok this was a build I made locally with Or if there's a chance this message would show up for users, we should edit out the JSON and just log that info and display something simple like "Update error". |
@marisademeglio I'll indeed replace the message by a simple "Update error". I have looked at the app-update.yml file and its simply a configuration on where to look for updates. owner: NPavie
repo: pipeline-ui
provider: github
updaterCacheDirName: pipeline-ui-updater (You can find the example of a release it created and that i used for testing of the auto-updater here : https://github.com/NPavie/pipeline-ui/releases/tag/v1.2.0-BETA) It should be possible to embed this directly (without the publish requirement) so that apps that we make locally are still eligible to auto updates. (@danielweck do you use some CI/CD to build and sign ACE for windows or do you the build and signing on your own machine ?) |
I build the Electron app Windows releases on my local computer, and I manually sign the build artefact (NSIS installer exe file) using a physical hardware token (i.e. USB device that contains the code signing certificate) which requires manually entering a passcode into a text input control (GUI dialog). |
...another option would be to mimic the Mac OS process which relies on KeyChain (the code-signing certificate was manually added into my personal computer once, the electron-builder process is hen able to discover it by name lookup without user input, in order to sign the app bundle resources) |
I am looking into this now, which would allow us to automate the signing of the Mac app in a GH workflow. If we could get the Windows certificate on its own then perhaps we could do the same thing: #156 |
A quick report from meeting :
As a fallback, I will do something similar as ACE and do a check on last version available in the github release page. |
Notes from chat: The workaround for right now: the auto-update function on mac will fall back to just checking and informing the user of a new version but it won't manage the actual updating. This workaround behavior will be triggered when there is no yml file (normally this is what gets checked for updates). |
Note this commit assumes that the latest official release tag and package.json version field contains a major.minor.patch version format. (RC or beta suffix are ignored)
- Different messages for github check and automatic updates check - Logging for updates messages at middleware level Also replaced console log by electron-log calls for start and stop of updates check interval in settings middleware
I am seeing this text in the About Box:
error during update check : {"errno":-2,"code":"ENOENT","syscall":"open","path":"/Applications/DAISY Pipeline (2023).app/Contents/Resources/app-update.yml"}
And I can confirm that the file it's looking for does not exist.
@NPavie would you mind having a look at this?
The text was updated successfully, but these errors were encountered: