diff --git a/package.json b/package.json index ef2a01df2..277ab40af 100644 --- a/package.json +++ b/package.json @@ -65,7 +65,7 @@ "bugs": { "url": "https://github.com/gitify-app/gitify/issues" }, - "homepage": "https://www.gitify.io/", + "homepage": "https://gitify.io/", "build": { "productName": "Gitify", "appId": "com.electron.gitify", diff --git a/src/main/menu.ts b/src/main/menu.ts index d77f02737..d2b6fae90 100644 --- a/src/main/menu.ts +++ b/src/main/menu.ts @@ -1,7 +1,9 @@ -import { Menu, MenuItem } from 'electron'; +import { Menu, MenuItem, shell } from 'electron'; import { autoUpdater } from 'electron-updater'; import type { Menubar } from 'menubar'; -import { isMacOS } from '../shared/platform'; + +import { APPLICATION } from '../shared/constants'; +import { isMacOS, isWindows } from '../shared/platform'; import { openLogsDirectory, resetApp, takeScreenshot } from './utils'; export default class MenuBuilder { @@ -19,7 +21,11 @@ export default class MenuBuilder { label: 'Check for updates', enabled: true, click: () => { - autoUpdater.checkForUpdatesAndNotify(); + if (isMacOS() || isWindows()) { + autoUpdater.checkForUpdatesAndNotify(); + } else { + shell.openExternal(APPLICATION.WEBSITE); + } }, }); diff --git a/src/shared/constants.ts b/src/shared/constants.ts index 0e895face..3f516a9f5 100644 --- a/src/shared/constants.ts +++ b/src/shared/constants.ts @@ -1,5 +1,9 @@ +const packageJson = require('../../package.json'); + export const APPLICATION = { ID: 'com.electron.gitify', NAME: 'Gitify', + + WEBSITE: packageJson.homepage, };