Carve out custom field of package.json to info.json
This commit is contained in:
parent
d9eefb7df2
commit
079e237b27
5
info.json
Normal file
5
info.json
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
{
|
||||||
|
"appId": "dev.kpherox.thedesk-vue",
|
||||||
|
"copyright": "Copyright © 2018 TheDesk",
|
||||||
|
"documentURL": "https://github.com/kPherox/TheDesk-Vue#readme"
|
||||||
|
}
|
|
@ -50,9 +50,6 @@
|
||||||
"vue-cli-plugin-electron-builder": "^1.2.0",
|
"vue-cli-plugin-electron-builder": "^1.2.0",
|
||||||
"vue-template-compiler": "^2.5.21"
|
"vue-template-compiler": "^2.5.21"
|
||||||
},
|
},
|
||||||
"dev_kpherox": {
|
|
||||||
"document": "https://github.com/kPherox/TheDesk-Vue#readme"
|
|
||||||
},
|
|
||||||
"eslintConfig": {
|
"eslintConfig": {
|
||||||
"root": true,
|
"root": true,
|
||||||
"env": {
|
"env": {
|
||||||
|
|
|
@ -13,7 +13,8 @@ import {
|
||||||
createProtocol,
|
createProtocol,
|
||||||
installVueDevtools
|
installVueDevtools
|
||||||
} from 'vue-cli-plugin-electron-builder/lib'
|
} 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'
|
const isDevelopment = process.env.NODE_ENV !== 'production'
|
||||||
|
|
||||||
|
@ -141,11 +142,11 @@ const template = [
|
||||||
submenu: [
|
submenu: [
|
||||||
{
|
{
|
||||||
label: 'Report an issue',
|
label: 'Report an issue',
|
||||||
click () { shell.openExternal(`${PackageJson.bugs.url}/new`) }
|
click: () => shell.openExternal(`${bugs.url}/new`),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: 'Learn More',
|
label: 'Learn More',
|
||||||
click () { shell.openExternal(PackageJson.dev_kpherox.document) }
|
click: () => shell.openExternal(thedeskInfo.documentURL),
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
|
|
||||||
const { productName } = require("./package.json")
|
const { productName } = require("./package.json")
|
||||||
|
const { appId, copyright } = require("./info.json")
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
pages: {
|
pages: {
|
||||||
|
@ -22,7 +23,8 @@ module.exports = {
|
||||||
pluginOptions: {
|
pluginOptions: {
|
||||||
electronBuilder: {
|
electronBuilder: {
|
||||||
builderOptions: {
|
builderOptions: {
|
||||||
appId: "dev.kpherox.thedesk-vue",
|
appId: appId,
|
||||||
|
copyright: copyright,
|
||||||
win: {
|
win: {
|
||||||
"target": [
|
"target": [
|
||||||
"nsis",
|
"nsis",
|
||||||
|
|
Loading…
Reference in New Issue
Block a user