Wie benutze ich Async/warte mit autoupdater.CheckforUpdates () von Electron-Updater?

Post a reply

Smilies
:) :( :oops: :chelo: :roll: :wink: :muza: :sorry: :angel: :read: *x) :clever:
View more smilies

BBCode is ON
[img] is ON
[flash] is OFF
[url] is ON
Smilies are ON

Topic review
   

Expand view Topic review: Wie benutze ich Async/warte mit autoupdater.CheckforUpdates () von Electron-Updater?

by Anonymous » 22 Aug 2025, 08:38

Ich möchte Async -Warte -Mechanismus für die Funktion der achoupdater im Elektronen verwenden. Elektronen?

Code: Select all

import {  autoUpdater } from 'electron';

private _checkForUpdates = async () => {
let feedUrl = '';
...
...
try {
feedUrl = await this._getFeedUrl();
this.autoUpdater.setFeedURL({ url: feedUrl });
this.autoUpdater.checkForUpdates();
...
...
} catch (e) {
...
}
};

Top