1 Star 0 Fork 0

Joey/electron-vite-boilerplate

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
electron-builder.config.js 1.05 KB
一键复制 编辑 原始数据 按行查看 历史
Joey 提交于 2021-11-23 14:04 . init
const { version, author } = require('./package.json')
const year = new Date().getFullYear()
const productName = 'ElectronViteApp'
/**
* @type {import('electron-builder').Configuration}
* @see https://www.electron.build/configuration/configuration
*/
module.exports = {
productName,
appId: "com.example.app",
copyright: `Copyright © ${year} ${author}`,
directories: {
output: 'release',
buildResources: 'resources',
},
files: ['dist'],
win: {
icon: 'resources/icon.ico',
target: {
target: 'nsis',
arch: ['x64']
}
},
nsis: {
oneClick: false,
language: "2052",
perMachine: true,
allowToChangeInstallationDirectory: true
},
mac: {
icon: 'resources/icon.icns',
target: 'dmg',
},
dmg: {
window: {
"width": 540,
"height": 380
},
contents: [
{
"x": 410,
"y": 150,
"type": "link",
"path": "/Applications"
},
{
"x": 130,
"y": 150,
"type": "file"
}
]
},
extraMetadata: {
version,
},
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/burning2017/electron-vite-boilerplate.git
git@gitee.com:burning2017/electron-vite-boilerplate.git
burning2017
electron-vite-boilerplate
electron-vite-boilerplate
master

搜索帮助