diff --git a/src/components/LowerRightControls.tsx b/src/components/LowerRightControls.tsx index 7edfbebbd..bdbeb3b97 100644 --- a/src/components/LowerRightControls.tsx +++ b/src/components/LowerRightControls.tsx @@ -12,11 +12,11 @@ import { NetworkHealthIndicator } from '@src/components/NetworkHealthIndicator' import { NetworkMachineIndicator } from '@src/components/NetworkMachineIndicator' import Tooltip from '@src/components/Tooltip' import { useAbsoluteFilePath } from '@src/hooks/useAbsoluteFilePath' -import { openExternalBrowserIfDesktop } from '@src/lib/openWindow' import { PATHS } from '@src/lib/paths' import { APP_VERSION, getReleaseUrl } from '@src/routes/utils' import { billingActor } from '@src/lib/singletons' +import { ActionButton } from '@src/components/ActionButton' export function LowerRightControls({ children, @@ -52,15 +52,16 @@ export function LowerRightControls({ - v{APP_VERSION} - +

- A new update has downloaded and will be available next time you - start the app. You can view the release notes{' '} - - here on GitHub. - + A new update is available. + {!IS_NIGHTLY_OR_DEBUG && ( + + You can view the release notes{' '} + + here on GitHub. + + + )}

{releaseNotes && ( diff --git a/src/routes/utils.ts b/src/routes/utils.ts index 441bc164a..089e2c0ab 100644 --- a/src/routes/utils.ts +++ b/src/routes/utils.ts @@ -22,7 +22,9 @@ export const IS_NIGHTLY_OR_DEBUG = IS_NIGHTLY || APP_VERSION === '0.0.0' || APP_VERSION === '11.22.33' export function getReleaseUrl(version: string = APP_VERSION) { - return `https://github.com/KittyCAD/modeling-app/releases/tag/${ - IS_NIGHTLY ? 'nightly-' : '' - }v${version}` + if (IS_NIGHTLY_OR_DEBUG || version === 'main') { + return 'https://github.com/KittyCAD/modeling-app/commits/main' + } + + return `https://github.com/KittyCAD/modeling-app/releases/tag/v${version}` }