Skip to content

Commit

Permalink
Point to repository setting in package.json (#2935)
Browse files Browse the repository at this point in the history
  • Loading branch information
philrz authored Dec 21, 2023
1 parent 28f3f50 commit 00f0667
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions apps/zui/src/electron/meta.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import os from "os"
export async function getAppMeta() {
return {
repo: new URL(pkg.repository).pathname.slice(1),
repository: pkg.repository,
version: app.getVersion(),
isFirstRun: await isFirstRun(),
userName: os.userInfo().username,
Expand Down
3 changes: 2 additions & 1 deletion apps/zui/src/electron/windows/search/app-menu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import {app, MenuItemConstructorOptions, shell, Menu} from "electron"
import {createFromEditor} from "src/app/commands/pins"
import env from "src/app/core/env"
import links from "src/app/core/links"
import pkg from "src/electron/pkg"
import {closeWindowOp} from "../../ops/close-window-op"
import {moveToCurrentDisplayOp} from "../../ops/move-to-current-display-op"
import {openAboutWindowOp} from "../../ops/open-about-window-op"
Expand Down Expand Up @@ -286,7 +287,7 @@ export function compileTemplate(
{
label: "Github Repository",
click() {
shell.openExternal("https://github.com/brimdata/zui")
shell.openExternal(pkg.repository)
},
},
{
Expand Down
2 changes: 1 addition & 1 deletion apps/zui/src/views/update-window/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ function useTemplate() {
return {
title: "Up to Date!",
text: (
<Link href="https://github.com/brimdata/zui/releases">
<Link href={globalThis.appMeta.repository + "/releases"}>
View releases
</Link>
),
Expand Down

0 comments on commit 00f0667

Please sign in to comment.