We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent efdf153 commit 231613aCopy full SHA for 231613a
2 files changed
src/main/core/types.ts
@@ -15,6 +15,7 @@ export type FeedURLOptions = Parameters<AppUpdater['setFeedURL']>[0];
15
16
export interface UpdaterOptions {
17
feedURL?: FeedURLOptions | (() => Promise<FeedURLOptions>);
18
+ channel?: string;
19
}
20
21
export interface MainAppOptions {
src/main/updater/service.ts
@@ -30,6 +30,10 @@ class UpdaterService {
30
this.mainWindow = mainWindow;
31
32
if (!this.isAutoUpdaterSetup) {
33
+ if (updaterOptions?.channel) {
34
+ autoUpdater.channel = updaterOptions.channel;
35
+ }
36
+
37
if (updaterOptions?.feedURL) {
38
try {
39
const resolved =
0 commit comments