Skip to content

Commit

Permalink
let version code in menu fit the package json
Browse files Browse the repository at this point in the history
  • Loading branch information
lony2003 committed Jul 7, 2024
1 parent 6bbb07a commit 976ff40
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions electron/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ import path from 'node:path'
import Store from 'electron-store'
import * as urlUtil from "node:url"
import {autoUpdater, UpdateInfo} from "electron-updater"
import * as url from "node:url";
import * as url from "node:url"
import packageJson from "../package.json";

// The built directory structure
//
Expand Down Expand Up @@ -287,7 +288,7 @@ function createWindow() {
},
},
{
label: 'BingGPT v0.4.3',
label: `BingGPT v${packageJson.version}`,
visible: parameters.selectionText.trim().length === 0,
click: () => {
shell.openExternal('https://github.com/fangkehou-team/BingGPT_Enhanced_Editon/releases')
Expand Down

0 comments on commit 976ff40

Please sign in to comment.