Compare commits
1
Commits
7533226366
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
1fc30f8cf5 |
+5
-2
@@ -9,9 +9,12 @@ Gitea Release 页面正文的基础;构建产物、校验和及详细验收记
|
|||||||
|
|
||||||
## [Unreleased]
|
## [Unreleased]
|
||||||
|
|
||||||
### 变更
|
### 修复
|
||||||
|
|
||||||
- 暂无。
|
- 修复 macOS 桌面应用未声明 `.md`/`.markdown` 文件关联的问题:`electron-builder`
|
||||||
|
的 `mac` 配置块新增 `fileAssociations`,写入 Info.plist 的
|
||||||
|
`CFBundleDocumentTypes`,Finder"打开方式"中现在能正确列出 MorphDoc;主进程
|
||||||
|
既有的 `open-file` 事件处理无需改动。
|
||||||
|
|
||||||
## [0.6.4] - 2026-08-26
|
## [0.6.4] - 2026-08-26
|
||||||
|
|
||||||
|
|||||||
@@ -125,6 +125,18 @@ module.exports = {
|
|||||||
target: "dmg"
|
target: "dmg"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
// 声明 .md/.markdown 文件关联,写入 Info.plist 的 CFBundleDocumentTypes,
|
||||||
|
// 否则 Finder 的"打开方式"里不会出现本应用;与 Windows 侧的 ProgID 注册
|
||||||
|
// 是对等能力,主进程已有的 open-file 事件处理无需改动。
|
||||||
|
fileAssociations: [
|
||||||
|
{
|
||||||
|
ext: ["md", "markdown"],
|
||||||
|
name: "Markdown",
|
||||||
|
description: "Markdown 文档",
|
||||||
|
role: "Editor",
|
||||||
|
icon: macIcon
|
||||||
|
}
|
||||||
|
],
|
||||||
extraResources: macTargetArch
|
extraResources: macTargetArch
|
||||||
? [
|
? [
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user