Carve out custom field of package.json to info.json

This commit is contained in:
kPherox
2019-04-07 23:21:26 +09:00
parent d9eefb7df2
commit 079e237b27
4 changed files with 12 additions and 7 deletions

View File

@@ -13,7 +13,8 @@ import {
createProtocol,
installVueDevtools
} from 'vue-cli-plugin-electron-builder/lib'
import PackageJson from "../package.json"
import { bugs } from '../package.json'
import thedeskInfo from '../info.json'
const isDevelopment = process.env.NODE_ENV !== 'production'
@@ -141,11 +142,11 @@ const template = [
submenu: [
{
label: 'Report an issue',
click () { shell.openExternal(`${PackageJson.bugs.url}/new`) }
click: () => shell.openExternal(`${bugs.url}/new`),
},
{
label: 'Learn More',
click () { shell.openExternal(PackageJson.dev_kpherox.document) }
click: () => shell.openExternal(thedeskInfo.documentURL),
}
]
}