代码拉取完成,页面将自动刷新
module.exports = {
configureWebpack: {
devtool: "source-map"
},
pluginOptions: {
electronBuilder: {
nodeIntegration: true,
builderOptions: {
productName: "topnet", // 项目名,也是生成exe文件的前缀名
appId: "cn.net.top", // 包名
copyright: "topnet 2020", // 版权信息
compression: "store", // "store" | "normal" | "maximum" 打包压缩情况(store 相对较快),store 39749kb, maximum 39186kb
directories: {
output: "dist_electron" // 输出文件夹
},
asar: false, // asar打包
// "extraResources": { // 拷贝dll等静态文件到指定位置
// "from": "./app-update.yml",
// "to": "./b.txt"
// },
win: {
icon: "./build/icons/icon.ico", // 图标路径
target: [
{
target: "nsis", // 安装应用
arch: [
// ia32 | x64 | armv7l | arm64
"ia32", // 即–arch=ia32, 32位操作系统,也可以在64位操作系统中安装
"x64" // 即–arch=x64, 64位操作系统,使用本架构打包无法再32位操作系统中安装
]
}
]
},
linux: {
icon: "./build/icons/512x512.png",
category: "home",
target: [
{
target: "AppImage", // AppImage, snap, deb, rpm, freebsd, pacman, p5p, apk, 7z, zip, tar.xz, tar.lz, tar.gz, tar.bz2, dir.
arch: ["arm64"]
}
]
},
mac: {
icon: "./build/icons/icon.icns",
target: [
{
target: "dmg"
}
]
},
nsis: {
oneClick: false, // 一键安装
// "guid": "xxxx", //注册表名字,不推荐修改
perMachine: false, // 是否开启安装时权限限制(此电脑或当前用户)
allowElevation: true, // 允许请求提升。 如果为false,则用户必须使用提升的权限重新启动安装程序。
allowToChangeInstallationDirectory: true, // 允许修改安装目录
installerIcon: "./build/icons/icon.ico", // 安装图标
uninstallerIcon: "./build/icons/icon.ico", //卸载图标
installerHeaderIcon: "./build/icons/icon.ico", // 安装时头部图标
createDesktopShortcut: true, // 创建桌面图标
createStartMenuShortcut: true, // 创建开始菜单图标
shortcutName: "topnet" // 图标名称
}
}
}
}
};
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。