can not get update!
See original GitHub issueI 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:
- Created 6 years ago
- Comments:18 (8 by maintainers)
Top GitHub Comments
@Crazie-ash No it doesn’t works with portable build. https://github.com/electron-userland/electron-builder/issues/3508
@Crazie-ash You can see such a message only when you run non squirrel build.