Skip to content

Commit fb7cbf8

Browse files
author
bealqiu
committed
docs(website): FAQ 添加 macOS「已损坏无法打开」解决方案
1 parent 2332f73 commit fb7cbf8

2 files changed

Lines changed: 10 additions & 2 deletions

File tree

website/src/components/FAQ.astro

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,10 @@ const faqs = [
3030
question: t("faq.q6"),
3131
answer: t("faq.a6"),
3232
},
33+
{
34+
question: t("faq.q7"),
35+
answer: t("faq.a7"),
36+
},
3337
];
3438
---
3539

@@ -60,8 +64,8 @@ const faqs = [
6064
<path stroke-linecap="round" stroke-linejoin="round" d="M19.5 8.25l-7.5 7.5-7.5-7.5" />
6165
</svg>
6266
</summary>
63-
<div class="px-5 pb-5 text-sm text-muted-foreground leading-relaxed border-t border-border/50 pt-4">
64-
{faq.answer}
67+
<div class="px-5 pb-5 text-sm text-muted-foreground leading-relaxed border-t border-border/50 pt-4 [&_code]:bg-muted [&_code]:px-1.5 [&_code]:py-0.5 [&_code]:rounded [&_code]:text-xs [&_code]:font-mono">
68+
<Fragment set:html={faq.answer} />
6569
</div>
6670
</details>
6771
))}

website/src/i18n/ui.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,8 @@ export const ui = {
127127
"faq.a5": "Yes! ReadAny supports WebDAV, S3, and LAN sync, allowing you to sync your library, reading progress, and annotations across all your devices.",
128128
"faq.q6": "How does the AI chat work?",
129129
"faq.a6": "The AI chat understands your current reading context - your position in the book, selected text, and chapter information. It can answer questions, explain concepts, and help with summaries.",
130+
"faq.q7": "macOS says the app \"is damaged and can't be opened\"?",
131+
"faq.a7": "This is caused by macOS Gatekeeper security. To fix it: 1) Go to System Settings → Privacy & Security → Security, and allow apps from \"Anywhere\". 2) If it still doesn't work, drag the app to the Applications folder, then open Terminal and run: <code>sudo xattr -rd com.apple.quarantine /Applications/ReadAny.app</code>",
130132
"faq.more": "Still have questions?",
131133
"faq.help": "Visit Help Center",
132134

@@ -260,6 +262,8 @@ export const ui = {
260262
"faq.a5": "可以!ReadAny 支持 WebDAV、S3 和局域网同步,可以在所有设备间同步你的书库、阅读进度和标注。",
261263
"faq.q6": "AI 对话如何工作?",
262264
"faq.a6": "AI 对话理解你当前的阅读上下文 - 你在书中的位置、选中的文本和章节信息。它可以回答问题、解释概念并帮助总结。",
265+
"faq.q7": "macOS 打开软件提示「已损坏,无法打开」怎么办?",
266+
"faq.a7": "这是 macOS 的安全机制导致的。解决方法:1) 前往「系统设置」→「隐私与安全性」→「安全性」,允许从「任何来源」下载的 App。2) 如果仍无法运行,请将应用拖到「应用程序」文件夹,然后打开终端执行:<code>sudo xattr -rd com.apple.quarantine /Applications/ReadAny.app</code>",
263267
"faq.more": "还有问题?",
264268
"faq.help": "访问帮助中心",
265269

0 commit comments

Comments
 (0)