2019-04-22 19:39:16 +10:00
|
|
|
const { productName, author } = require('./package.json')
|
|
|
|
const { appId, copyrightYear } = require('./info.json')
|
2019-04-07 07:43:55 +10:00
|
|
|
|
2019-04-06 03:49:31 +11:00
|
|
|
module.exports = {
|
2019-04-07 07:43:55 +10:00
|
|
|
pages: {
|
|
|
|
index: {
|
2019-04-09 23:52:07 +10:00
|
|
|
entry: 'src/entries/main.ts',
|
2019-04-07 07:43:55 +10:00
|
|
|
template: 'public/index.html',
|
|
|
|
title: productName,
|
|
|
|
},
|
2019-04-08 02:14:32 +10:00
|
|
|
about: {
|
2019-04-09 23:52:07 +10:00
|
|
|
entry: 'src/entries/about.ts',
|
2019-04-22 14:35:19 +10:00
|
|
|
title: 'About',
|
2019-04-08 02:14:32 +10:00
|
|
|
},
|
2019-04-07 07:43:55 +10:00
|
|
|
},
|
2019-04-06 03:49:31 +11:00
|
|
|
css: {
|
|
|
|
loaderOptions: {
|
|
|
|
postcss: {
|
|
|
|
plugins: [
|
2019-04-08 02:14:32 +10:00
|
|
|
require('postcss-nested')(),
|
2019-04-06 03:49:31 +11:00
|
|
|
require('autoprefixer')({}),
|
2019-04-08 02:14:32 +10:00
|
|
|
require('CSSWring')(),
|
2019-04-06 03:49:31 +11:00
|
|
|
],
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
pluginOptions: {
|
|
|
|
electronBuilder: {
|
2019-04-08 06:47:07 +10:00
|
|
|
disableMainProcessTypescript: false,
|
|
|
|
mainProcessTypeChecking: true,
|
2019-04-06 03:49:31 +11:00
|
|
|
builderOptions: {
|
2019-04-08 00:21:26 +10:00
|
|
|
appId: appId,
|
2019-04-22 16:29:48 +10:00
|
|
|
copyright: `Copyright © ${copyrightYear} ${author.name}`,
|
2019-04-06 03:49:31 +11:00
|
|
|
win: {
|
2019-04-22 19:39:16 +10:00
|
|
|
'target': [
|
|
|
|
'nsis',
|
|
|
|
'portable',
|
2019-04-06 03:49:31 +11:00
|
|
|
],
|
|
|
|
},
|
|
|
|
nsis: {
|
|
|
|
oneClick: false,
|
|
|
|
allowToChangeInstallationDirectory: true,
|
2019-04-22 19:39:16 +10:00
|
|
|
artifactName: 'TheDesk-Vue-setup.${ext}',
|
2019-04-06 03:49:31 +11:00
|
|
|
},
|
|
|
|
linux: {
|
|
|
|
target: [
|
2019-04-22 19:39:16 +10:00
|
|
|
'snap',
|
2019-04-06 03:49:31 +11:00
|
|
|
],
|
2019-04-22 19:39:16 +10:00
|
|
|
category: 'Network',
|
2019-04-06 03:49:31 +11:00
|
|
|
},
|
|
|
|
mac: {
|
2019-04-10 20:33:59 +10:00
|
|
|
darkModeSupport: true,
|
2019-04-06 03:49:31 +11:00
|
|
|
target: [
|
2019-04-22 19:39:16 +10:00
|
|
|
'dmg',
|
2019-04-06 03:49:31 +11:00
|
|
|
],
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
2019-04-22 19:39:16 +10:00
|
|
|
}
|