-
Notifications
You must be signed in to change notification settings - Fork 642
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
Doesn't work on Windows #39
Comments
@girishbr Have you tried forking the repo and testing before adding your own code? From what I can see, you have all the update listeners calling Instead of using this block of code: https://github.com/iffy/electron-updater-example/blob/master/main.js#L46 (which is not required for updates to work) Choose one of the two options listed here: https://github.com/iffy/electron-updater-example/blob/master/main.js#L103 |
@iffy thank you for the feedback. I forked it here: https://github.com/girishbr/electron-updater-example/. Now, I understand how your code works. I moved it all to about.html
So, when about.html finishes loading And on various events like 'checking-for-update', 'update-available', etc, the message is sent to about.html via
This closely mimics what I forked. But, it won't work still. |
Aah! I've to choose one of the two options. My bad. Will check it again. |
@girishbr k, let me know if it works |
Took the easy route with just
Your code is solid. But, I believe I'm making a fundamental mistake somewhere. |
I only see v0.0.3, v0.0.1, v0.0.2 in your list of releases: https://github.com/intelligrate/query-cloud-api/releases And v0.0.2 was released 3 days ago? Maybe your v2 that you're running is not a version with the new code? |
Maybe make 0.0.4 and 0.0.5 (both publicly released -- not drafts) to avoid potential name conflicts? |
Did that. Deleted all the releases. Created version 0.0.1, pushed, published, installed. Opened app(v0.0.1) expecting an updation to 0.0.2. Didn't happen. |
@girishbr I'm not sure how the UI works on Windows, but when using Hmm... I'm not sure what the problem is from looking at your code and GitHub releases. |
@iffy Thank you for your feedback. I finally got it to work.
something to do with ES6 syntax? |
I doubt it's some ES6 syntax thing. That seems really odd that it would work in its own handler but not in one with other stuff in it. How long do you have to wait for the notification to appear in the working version? |
It doesn't happen automatically. It happens only when I exit. And that too only with an explicit exit (ctrl + q) not a window close. |
@girishbr is this resolved? Can I close this issue? |
I just forked the repo and tried it. I only changed owner. No codesigning for windows (neither for mac). |
The auto-updater currently doesn't work. |
I copied your code to my app.
For whatever reason, electron on windows doesn't pick up new releases.
At https://github.com/intelligrate/query-cloud-api/releases, I've two releases.
Whilst running 1.0 release,
"build": { "publish": [ { "provider": "github", "owner": "intelligrate", "repo": "query-cloud-api" } ],
I expect, auto-updater to prompt and pick up 2.0.
https://github.com/intelligrate/query-cloud-api/blob/master/main.js#L268
That doesn't happen.
The text was updated successfully, but these errors were encountered: