Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Point to repository setting in package.json #2935

Merged
merged 1 commit into from
Dec 21, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 @@ -269,7 +270,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
Loading