From 8ec6c43205aedc3e102d8398b1ee3b4c36608e21 Mon Sep 17 00:00:00 2001 From: margrop <1731827+margrop@users.noreply.github.com> Date: Fri, 30 Oct 2026 12:27:11 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20=E8=A1=A5=E9=BD=90=E4=B8=AD=E8=8B=B1?= =?UTF-8?q?=E6=96=87=20Wiki=20=E7=9A=84=20macOS=20=E8=87=AA=E7=AD=BE?= =?UTF-8?q?=E5=90=8D=E6=AD=A5=E9=AA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- doc/wiki/Deployment.md | 11 ++++++++++- doc/wiki/en/Deployment-en.md | 11 ++++++++++- 2 files changed, 20 insertions(+), 2 deletions(-) diff --git a/doc/wiki/Deployment.md b/doc/wiki/Deployment.md index 71fbe782..56bf0681 100644 --- a/doc/wiki/Deployment.md +++ b/doc/wiki/Deployment.md @@ -125,4 +125,13 @@ Dockerfile 在镜像内执行 Vitest、脚本语法检查和生产构建,并 | 安卓手机 / 平板(单机版) | 安装 `WrongNotebook-Android-Phone-<版本>.apk` 或 `WrongNotebook-Android-Tablet-<版本>.apk` | App 私有目录,卸载时删除 | | 安卓手机 / 平板(客户端) | 安装 `WrongNotebook-Android-Client-Phone-<版本>.apk` 或 `-Client-Tablet-<版本>.apk`,首次打开填写服务器地址 | 不保存数据,连接已部署的服务器 | -桌面版只监听本机,默认端口 39300;飞牛OS 版监听 39300 端口,局域网内可访问。数据库、AI 配置和会话密钥都在数据目录中,备份时整体复制该目录。桌面安装包未签名,macOS 首次打开需右键选择「打开」。安卓单机版在手机上运行服务端,无需另行部署,需要 Android 8.0 及以上的 64 位 ARM 设备;安卓客户端版只是连接服务器的外壳,需要先用上面任一方式部署服务端。详细说明见 [INSTALL_PACKAGES.md](https://github.com/margrop/wrong-notebook/blob/main/doc/INSTALL_PACKAGES.md)。 +桌面版只监听本机,默认端口 39300;飞牛OS 版监听 39300 端口,局域网内可访问。数据库、AI 配置和会话密钥都在数据目录中,备份时整体复制该目录。 + +桌面安装包未签名。macOS 提示「已损坏」或无法打开时,先把应用拖入「应用程序」,再在终端执行以下命令,移除隔离属性并在本机重新自签名,然后打开应用: + +```bash +xattr -cr /Applications/WrongNotebook.app +codesign --force --deep --sign - /Applications/WrongNotebook.app +``` + +安卓单机版在手机上运行服务端,无需另行部署,需要 Android 8.0 及以上的 64 位 ARM 设备;安卓客户端版只是连接服务器的外壳,需要先用上面任一方式部署服务端。详细说明见 [INSTALL_PACKAGES.md](https://github.com/margrop/wrong-notebook/blob/main/doc/INSTALL_PACKAGES.md)。 diff --git a/doc/wiki/en/Deployment-en.md b/doc/wiki/en/Deployment-en.md index a0333a1d..691128e2 100644 --- a/doc/wiki/en/Deployment-en.md +++ b/doc/wiki/en/Deployment-en.md @@ -125,4 +125,13 @@ Every release on [Releases](https://github.com/margrop/wrong-notebook/releases) | Android phone / tablet (standalone) | Install `WrongNotebook-Android-Phone-.apk` or `WrongNotebook-Android-Tablet-.apk` | App-private directory, removed on uninstall | | Android phone / tablet (client) | Install `WrongNotebook-Android-Client-Phone-.apk` or `-Client-Tablet-.apk` and enter the server address on first launch | Stores no data; connects to a deployed server | -Desktop builds listen only on the local machine, on port 39300 by default; the fnOS build listens on port 39300 and is reachable on the LAN. The database, AI configuration and session secret all live in the data directory, so back up the whole directory. Desktop installers are unsigned; on macOS, right-click and choose "Open" the first time. The Android standalone edition runs the server on the phone with no separate deployment and needs a 64-bit ARM device on Android 8.0 or later; the Android client edition is only a shell that connects to a server, which must first be deployed with one of the methods above. See [INSTALL_PACKAGES.md](https://github.com/margrop/wrong-notebook/blob/main/doc/INSTALL_PACKAGES.md) for details. +Desktop builds listen only on the local machine, on port 39300 by default; the fnOS build listens on port 39300 and is reachable on the LAN. The database, AI configuration and session secret all live in the data directory, so back up the whole directory. + +Desktop installers are unsigned. If macOS says the app is damaged or cannot be opened, first move it to Applications, then run these commands in Terminal to remove the quarantine flag and re-sign it locally before opening it: + +```bash +xattr -cr /Applications/WrongNotebook.app +codesign --force --deep --sign - /Applications/WrongNotebook.app +``` + +The Android standalone edition runs the server on the phone with no separate deployment and needs a 64-bit ARM device on Android 8.0 or later; the Android client edition is only a shell that connects to a server, which must first be deployed with one of the methods above. See [INSTALL_PACKAGES.md](https://github.com/margrop/wrong-notebook/blob/main/doc/INSTALL_PACKAGES.md) for details.