Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
Edge-coordinates committed Sep 17, 2023
1 parent 806dfd1 commit 677e5c0
Show file tree
Hide file tree
Showing 9 changed files with 32 additions and 665 deletions.
21 changes: 21 additions & 0 deletions .electron-builder.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ module.exports = async function () {
const {getVersion} = await import('./version/getVersion.mjs');

return {
productName: '瀑布流图片查看器',
directories: {
output: 'dist',
buildResources: 'buildResources',
Expand All @@ -25,5 +26,25 @@ module.exports = async function () {
linux: {
target: 'deb',
},
win: {
icon: './buildResources/icon.png', //图标路径
// extraResources: {
// // 拷贝dll等静态文件到指定位置(用于某个系统配置)
// from: './app-update.yml',
// to: './b.txt',
// },
},
nsis: {
oneClick: false, // 一键安装
perMachine: true, // 是否开启安装时权限限制(此电脑或当前用户)
allowElevation: true, // 允许请求提升。 如果为false,则用户必须使用提升的权限重新启动安装程序。
allowToChangeInstallationDirectory: true, // 允许修改安装目录
installerIcon: './buildResources/icons/icon.ico', // 安装图标
uninstallerIcon: './buildResources/icons/bbb.ico', //卸载图标
installerHeaderIcon: './buildResources/icons/icon.ico', // 安装时头部图标
createDesktopShortcut: true, // 创建桌面图标
createStartMenuShortcut: true, // 创建开始菜单图标
shortcutName: '瀑布流图片查看器', // 图标名称
},
};
};
Loading

0 comments on commit 677e5c0

Please sign in to comment.