Skip to content
This repository has been archived by the owner on Dec 5, 2022. It is now read-only.

Update check function cannot run successfully in packed mode #504

Closed
argyili opened this issue Sep 3, 2021 · 1 comment
Closed

Update check function cannot run successfully in packed mode #504

argyili opened this issue Sep 3, 2021 · 1 comment

Comments

@argyili
Copy link

argyili commented Sep 3, 2021

I guess the update check function can not run, for not calling setFeedURL function.
How do I do to make the check, download, and install functions come true?

{
    label: 'Check for Update',
    visible: true,
    key: 'checkForUpdate',
    click: () => {
      require('electron').autoUpdater.checkForUpdates()
 }
    /**
     * Asks the server whether there is an update. You must call `setFeedURL` before
     * using this API.
     */
    checkForUpdates(): void;
  • What operating system are you using?
    MacOS
  • What version of Node.js is on your system?
    7.20.3
@argyili
Copy link
Author

argyili commented Sep 3, 2021

Solved it myself. The URL can be set at the package.json.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant