electron-updater

Electron auto update fails silently when installing update on Windows

故事扮演 提交于 2020-01-15 09:52:12
问题 I have an electron app which uses electron-builder for building, packing & publishing the app. I have the following auto-update code: autoUpdater.logger = log; autoUpdater.logger.transports.file.level = "info"; autoUpdater.autoDownload = true; const updateCheck = () => { autoUpdater.checkForUpdates().then(resp => { log.info("autoUpdate response:"); log.info(resp); }); }; app.on("ready", async () => { log.info(`Version: ${app.getVersion()}`); autoUpdater.on("update-downloaded", () => { log

Electron Autoupdater with Private GitHub Repository?

旧城冷巷雨未停 提交于 2019-12-23 04:43:52
问题 I have implemented Electron AutoUpdater with PRIVATE GitHub Repository as provider to publish electron application. Now, i can publish it using GitHub repository but Whenever AutoUpdater tries to download the updates from GitHub repository, Everytime it prompts with response code 404 Not found.. I have tried passing token in setFeedURL method and also set it in GH_TOKEN but seems like that does not work either. autoUpdater.setFeedURL({ provider: 'github' , owner: 'owner' , repo: 'repo-name' ,