Skip to content

Commit

Permalink
Disable auto update ask
Browse files Browse the repository at this point in the history
  • Loading branch information
KuznetsovNikita committed Oct 9, 2024
1 parent 0b7e0e4 commit c34d2bf
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions apps/desktop/src/electron/autoUpdate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ export default class AppUpdate {
}
);

const appVersion = app.getVersion(); // Get the app version dynamically
const platform = process.platform; // Get the platform dynamically (e.g., 'darwin', 'win32')
const arch = process.arch; // Get the architecture dynamically (e.g., 'arm64', 'x64')
const appVersion = app.getVersion(); // Get the app version dynamically
const platform = process.platform; // Get the platform dynamically (e.g., 'darwin', 'win32')
const arch = process.arch; // Get the architecture dynamically (e.g., 'arm64', 'x64')

autoUpdater.addListener('error', function (error) {
console.log(error);
Expand All @@ -26,14 +26,14 @@ export default class AppUpdate {
console.log('checking-for-update');
});

autoUpdater.addListener('update-not-available', function (event: any) {
notify('Tonkeeper Pro is up to date', `Version ${releaseName}`);
});
// autoUpdater.addListener('update-not-available', function (event: any) {
// notify('Tonkeeper Pro is up to date', `Version ${releaseName}`);
// });

// Build the feed URL
const feedURL = `https://update.electronjs.org/tonkeeper/tonkeeper-web/${platform}-${arch}/${appVersion}`;
// // Build the feed URL
// const feedURL = `https://update.electronjs.org/tonkeeper/tonkeeper-web/${platform}-${arch}/${appVersion}`;

autoUpdater.setFeedURL({ url: feedURL });
// autoUpdater.setFeedURL({ url: feedURL });
}

check() {
Expand Down

0 comments on commit c34d2bf

Please sign in to comment.