mirror of
https://github.com/TangSengDaoDao/TangSengDaoDaoWeb
synced 2025-06-02 15:23:37 +00:00
53 lines
1.7 KiB
JavaScript
53 lines
1.7 KiB
JavaScript
module.exports = {
|
||
productName: "唐僧叨叨", //项目名
|
||
appId: "com.tsdaodao.im",
|
||
copyright: "Copyright © tsdaodao", //版权
|
||
directories: {
|
||
output: "output/app", // 输出文件夹
|
||
},
|
||
npmRebuild: false,
|
||
asar: false,
|
||
buildDependenciesFromSource: true,
|
||
electronDownload: {
|
||
mirror: "https://registry.npmmirror.com/-/binary/electron/",
|
||
},
|
||
files: ["out-election/**/*", "build/**/*"], // 需要打包的文件
|
||
extraMetadata: {
|
||
main: "out-election/main/index.js",
|
||
},
|
||
mac: {
|
||
category: "public.app-category.utilities",
|
||
icon: "public/icon.icns",
|
||
},
|
||
dmg: {
|
||
// background: 'build/appdmg.png', // dmg安装窗口背景图
|
||
icon: "public/icon.icns", // 客户端图标
|
||
iconSize: 100, // 安装图标大小
|
||
// 安装窗口中包含的项目和配置
|
||
contents: [
|
||
{ x: 380, y: 280, type: "link", path: "/Applications" },
|
||
{ x: 110, y: 280, type: "file" },
|
||
],
|
||
window: { width: 500, height: 500 }, // 安装窗口大小
|
||
},
|
||
win: {
|
||
icon: "public/icon.icns",
|
||
target: ["nsis", "zip"],
|
||
},
|
||
nsis: {
|
||
oneClick: false, // 是否一键安装
|
||
allowElevation: true, // 允许请求提升。 如果为false,则用户必须使用提升的权限重新启动安装程序。
|
||
allowToChangeInstallationDirectory: true, // 允许修改安装目录
|
||
// installerIcon: "./build/icon.ico",// 安装图标
|
||
// uninstallerIcon: "./build/icons/bbb.ico",//卸载图标
|
||
// installerHeaderIcon: "./build/icon.ico", // 安装时头部图标
|
||
createDesktopShortcut: true, // 创建桌面图标
|
||
createStartMenuShortcut: true, // 创建开始菜单图标
|
||
shortcutName: "唐僧叨叨", // 图标名称
|
||
},
|
||
linux: {
|
||
target: ["AppImage", "deb"],
|
||
icon: "public/icon.icns",
|
||
},
|
||
};
|