fix: 固定桌面端英文可执行文件名

This commit is contained in:
SkyJourney
2026-07-27 21:05:47 +08:00
parent 4d60741f5a
commit 06b30d084e
3 changed files with 9 additions and 1 deletions
+4
View File
@@ -30,6 +30,10 @@ npm run make -w @md-to-pdf/desktop
`Setup.exe` 为正式安装包,ZIP 作为免安装辅助包;当前未配置代码签名,
Windows 首次运行可能显示“未知发布者”提示。
产品名称、窗口标题、安装包名称和开始菜单名称保持为
“Markdown PDF 导出器”,实际 Windows 主程序与进程文件固定为
`md-to-pdf.exe`
当前目录包只包含一套 Electron Chromium,不携带 Playwright Chromium。
Web 静态资源作为只读资源放在 Electron `resources/dist` 下,生产环境通过
`mdpdf://bundle/` 自定义协议加载。
+2
View File
@@ -14,6 +14,7 @@ module.exports = {
packagerConfig: {
asar: true,
prune: false,
executableName: "md-to-pdf",
icon: process.platform === "darwin" ? macosIcon : windowsIcon,
ignore: [
/^\/node_modules(?:\/|$)/,
@@ -34,6 +35,7 @@ module.exports = {
name: "@electron-forge/maker-squirrel",
config: {
name: "markdown_pdf_exporter",
exe: "md-to-pdf.exe",
setupIcon: windowsIcon
}
},