Windows autoupdate isn't working
See original GitHub issue- electron-builder version: 16.6.1
- electron-updater version: 1.14.0
- target: Windows and Mac
In my package.json
file, I have the following build configuration. Most important is the publish property that points to an s3 bucket.
{
"name": "Notion",
"version": "0.1.10",
"main": "main.js",
"author": "Notion Labs, Incorporated",
"dependencies": {
"electron-is-dev": "^0.1.2",
"electron-log": "^2.2.2",
"electron-spellchecker": "1.0.6",
"electron-updater": "^1.14.0",
"electron-window-state": "3.0.3",
"storage-lru": "0.1.1"
},
"devDependencies": {
"electron": "1.6.2",
"electron-builder": "16.6.1",
"electron-rebuild": "1.5.7"
},
"build": {
"appId": "notion.id",
"productName": "Notion",
"mac": {
"category": "public.app-category.productivity"
},
"directories": {
"app": ".",
"output": "../../dist",
"buildResources": "."
},
"protocols": [
{
"name": "notion",
"schemes": [
"notion"
]
}
],
"publish": [
{
"provider": "generic",
"url": "https://s3-us-west-2.amazonaws.com/desktop-release/",
"channel": "latest"
}
]
}
}
I’ve deployed the applications to S3:
Everything is working fine with the Mac autoupdate, but the Windows app isn’t updating. I can check the logs and see that its not updating as well:
$ tail -f log.log
[2017-06-28 18:38:47:0678] [info] Checking for update
[2017-06-28 18:38:47:0921] [info] Update for version 0.1.9 is not available (latest version: 0.1.9, downgrade is disallowed.
[2017-06-28 18:39:47:0696] [info] Checking for update
[2017-06-28 18:39:48:0178] [info] Update for version 0.1.9 is not available (latest version: 0.1.9, downgrade is disallowed.
[2017-06-28 18:40:47:0707] [info] Checking for update
[2017-06-28 18:40:48:0064] [info] Update for version 0.1.9 is not available (latest version: 0.1.9, downgrade is disallowed.
[2017-06-28 18:41:47:0723] [info] Checking for update
[2017-06-28 18:41:47:0990] [info] Update for version 0.1.9 is not available (latest version: 0.1.9, downgrade is disallowed.
[2017-06-28 18:42:47:0747] [info] Checking for update
[2017-06-28 18:42:48:0011] [info] Update for version 0.1.9 is not available (latest version: 0.1.9, downgrade is disallowed.
[2017-06-28 18:43:47:0765] [info] Checking for update
[2017-06-28 18:43:48:0015] [info] Update for version 0.1.9 is not available (latest version: 0.1.9, downgrade is disallowed.
One thing that’s odd is the generated latest.yml
file has a githubArtifactName
field which seems irrelevant.
https://s3-us-west-2.amazonaws.com/desktop-release/latest-mac.json https://s3-us-west-2.amazonaws.com/desktop-release/latest.yml
I’m not a Windows user so I’d appreciate any help or suggestions you have to help me figure this out!
Issue Analytics
- State:
- Created 6 years ago
- Comments:9 (3 by maintainers)
Top Results From Across the Web
Full Fix: Windows 10/11 automatic update problems
Automatic update problems on Windows 10, how to fix them? · 1. Change Windows Update settings · 2. Check your antivirus · 3....
Read more >Windows Automatic updates not working - Microsoft Community
1- Stop the update service. Run these commands in command prompt (Admin):. net stop bits · 2- Clear the windows update cache. Delete...
Read more >7 Solutions to Fix Windows 10 Won't Update. #6 Is Fantastic
Why Windows 10 Won't Update; Remove Third-party Security Software; Check Windows Update Utility Manually; Keep All Services about Windows Update ...
Read more >Fix: Windows 10 Won't Install or Download Updates - Appuals
1. Restart Windows Update Service · 2. Reset Windows Update Registry Keys · 3. Turn OFF Metered Connection · 4. Clear And Rename...
Read more >Windows Update Not Working for Your Latest Upgrade ...
Manage automatic updates · Run the Windows Update Troubleshooter · Check your installation error code · If all else fails, these quick fixes...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Well at the time I shipped these apps, I was using the latest versions so they’re already out in the wild and I can’t change that… 😕 So if I upgrade, I’m not sure that’s going to help unless its a file format issue with the latest.yml file. But I feel like the logs would have reported that.
P.S. holy crap, there’s a new version every other day!
Sorry to let you down @ngprasad but the windows update just worked. I think it must have been a caching issue! Have you looked at the logs? It usually quite helpful