question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

can not get update!

See original GitHub issue

I publish an app with version 1.0.4 in package.json, when I use electron-simple-updater, I make the updates.json like: { “win32-x64-prod”: { “readme”: “日常更新”, “update”: “https://xxxx/worker-management/1520414279”, “install”: “https://xxxx/worker-management/1520414279/伊云仓TEM Setup 1.0.5.exe”, “version”: “1.0.5” } }

I run this script to pack: "pack:win": "electron-builder --win --ia32" my update url is "updater": { "url": "http://xxxx/worker-management/raw/master/updates.json?private_token=xxxx" }

in main.js

updater.init({ checkUpdateOnStart: false, autoDownload: false })

in render.js:

import { remote } from ‘electron’ export default function update() { const updater = remote.require(‘electron-simple-updater’) updater.on(‘update-available’, meta => { console.log(‘[updater] update avaiable’, meta.version) updater.downloadUpdate() }) updater.on(‘update-not-available’, () => { console.log(‘there is no available update’) }) updater.on(‘update-downloading’, () => {}) updater.on(‘update-downloaded’, () => { if (window.confirm(‘Restart and install updates?’)) { updater.quitAndInstall() } }) updater.on(‘error’, err => { console.warn(err) }) updater.checkForUpdates() }

I always got ‘there is no available update’. What is wrong with my case?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:18 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
megahertzcommented, Apr 26, 2019
0reactions
megahertzcommented, Apr 27, 2019

@Crazie-ash You can see such a message only when you run non squirrel build.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Troubleshoot problems updating Windows - Microsoft Support
Have issues installing Windows updates? Start here. · Free up some drive space so you can run updates · Restart to apply installed...
Read more >
7 Solutions to Fix Windows 10 Won't Update. #6 Is Fantastic
Windows 10 Won't Update FAQ · Remove third-party security software. · Check Windows update utility manually. · Keep all services about Windows ...
Read more >
Windows Update Won't Install Updates? How to Fix This Issue
Restart Windows Update ; Windows Settings > ; Update and Security > ; Windows Update and see if the updates can be installed...
Read more >
How to troubleshoot when Windows 10 won't update
If you're having problems getting a Windows update to work, then the first thing you should do is reboot the endpoint. Although starting...
Read more >
Windows won't update? Fix it fast! - YouTube
Key moments. View all · clear out the windows update cache · clear out the windows update cache · clear out the windows...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found