Skip to content

Commit 6650197

Browse files
committed
feat: launch homepage for linux updates
Signed-off-by: Adam Setch <[email protected]>
1 parent 694f08a commit 6650197

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@
6565
"bugs": {
6666
"url": "https://github.com/gitify-app/gitify/issues"
6767
},
68-
"homepage": "https://www.gitify.io/",
68+
"homepage": "https://gitify.io/",
6969
"build": {
7070
"productName": "Gitify",
7171
"appId": "com.electron.gitify",

src/main/menu.ts

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
1-
import { Menu, MenuItem } from 'electron';
1+
import { Menu, MenuItem, shell } from 'electron';
22
import { autoUpdater } from 'electron-updater';
33
import type { Menubar } from 'menubar';
4+
5+
const packageJson = require('../../package.json');
6+
7+
// import { isMacOS, isWindows } from '../renderer/utils/platform';
48
import { openLogsDirectory, resetApp, takeScreenshot } from './utils';
59

610
export default class MenuBuilder {
@@ -18,7 +22,11 @@ export default class MenuBuilder {
1822
label: 'Check for updates',
1923
enabled: true,
2024
click: () => {
21-
autoUpdater.checkForUpdatesAndNotify();
25+
// if (isMacOS() || isWindows()) {
26+
// autoUpdater.checkForUpdatesAndNotify();
27+
// } else {
28+
shell.openExternal(packageJson.homepage);
29+
// }
2230
},
2331
});
2432

0 commit comments

Comments
 (0)