PasteFerry (隔空贴): clipboard and file sync across macOS, Windows and Linux. Direct-first, end-to-end encrypted. Optional official access: no server to host. Independent self-hosting remains available.
Dart airdrop-alternativeclipboardclipboard-sharingclipboard-synccopy-pastecross-platformend-to-end-encryptionfile-syncfile-transferfluttergolanglinuxmacosnat-traversalp2pself-hostedtailscaleuniversal-clipboardwebrtcwindows
refactor: rename CopySync to PasteFerry everywhere
baiyuze261450aaeb3c
diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.ymlindex 321c3bd..750db36 100644--- a/.github/ISSUE_TEMPLATE/bug_report.yml+++ b/.github/ISSUE_TEMPLATE/bug_report.yml@@ -1,4 +1,4 @@-# CopySync 的「设置 → 反馈问题 → 在 GitHub 上提问题」打开这个模板,并预先填好 version。+# PasteFerry 的「设置 → 反馈问题 → 在 GitHub 上提问题」打开这个模板,并预先填好 version。# 改了字段的 id,要一起改 ui/lib/widgets/feedback_dialog.dart 里的地址。name: Bug report / 问题反馈description: Something doesn't work as expected. / 用起来有问题。@@ -13,16 +13,16 @@ body:- type: inputid: versionattributes:- label: CopySync version / 版本+ label: PasteFerry version / 版本placeholder: "1.7.0"- type: textareaid: diagnosticsattributes:label: Diagnostics report / 诊断报告description: >-- In CopySync, open Settings → Report a problem and copy the report, then paste it here.+ In PasteFerry, open Settings → Report a problem and copy the report, then paste it here.Device names, the server address, public IP addresses and file names are already replaced;read it through before posting, because issues are public.- 在 CopySync 的「设置 → 反馈问题」里拷贝报告,粘贴到这里。设备名、服务器地址、公网 IP 和文件名已经替换掉;+ 在 PasteFerry 的「设置 → 反馈问题」里拷贝报告,粘贴到这里。设备名、服务器地址、公网 IP 和文件名已经替换掉;问题是公开的,贴之前请看一遍。render: textdiff --git a/.github/workflows/ci.yml b/.github/workflows/ci.ymlindex 219c67e..74a5026 100644--- a/.github/workflows/ci.yml+++ b/.github/workflows/ci.yml@@ -91,10 +91,10 @@ jobs:# 构建好的安装包与便携版留作下载,方便在真机上试- uses: actions/upload-artifact@v4with:- name: CopySync-windows+ name: PasteFerry-windowspath: |- dist/windows/CopySync-Setup.exe- dist/windows/CopySync-windows-x64.zip+ dist/windows/PasteFerry-Setup.exe+ dist/windows/PasteFerry-windows-x64.ziplinux:name: Linux 客户端(${{ matrix.arch }})@@ -135,8 +135,8 @@ jobs:- run: ./scripts/package-linux.sh- uses: actions/upload-artifact@v4with:- name: CopySync-linux-${{ matrix.arch }}+ name: PasteFerry-linux-${{ matrix.arch }}path: |- dist/linux/CopySync-linux-${{ matrix.arch }}.deb- dist/linux/CopySync-linux-${{ matrix.arch }}.tar.gz+ dist/linux/PasteFerry-linux-${{ matrix.arch }}.deb+ dist/linux/PasteFerry-linux-${{ matrix.arch }}.tar.gzif-no-files-found: errordiff --git a/LICENSING.md b/LICENSING.mdindex f7a4f08..f79e43c 100644--- a/LICENSING.md+++ b/LICENSING.md@@ -6,17 +6,17 @@Copyright © 2026 baiyuze.-Starting with version 1.3.0, CopySync is licensed under the GNU AGPL-3.0. The full text is in [LICENSE](LICENSE).+Starting with version 1.3.0, 隔空贴 is licensed under the GNU AGPL-3.0. The full text is in [LICENSE](LICENSE).### What you can do-Anyone can use, study, modify and share CopySync for free, including companies and for commercial purposes.+Anyone can use, study, modify and share 隔空贴 for free, including companies and for commercial purposes.### What you must do in returnIf you:-- distribute CopySync or a modified version (as an app, inside another product, or preinstalled on devices), or+- distribute 隔空贴 or a modified version (as an app, inside another product, or preinstalled on devices), or- let people use a modified version over a network (for example, a modified signaling server offered as a service),you must make the complete source code of your version available to those users under the AGPL-3.0, including your changes and the code you combine with it.@@ -31,23 +31,23 @@ By submitting a contribution, you license it under the AGPL-3.0.### Third-party components-Libraries that CopySync uses keep their own licenses (MIT, BSD, Apache-2.0 and similar), all compatible with the AGPL-3.0.+Libraries that 隔空贴 uses keep their own licenses (MIT, BSD, Apache-2.0 and similar), all compatible with the AGPL-3.0.## 简体中文版权所有 © 2026 baiyuze。-从 1.3.0 版起,CopySync 以 GNU AGPL-3.0 许可发布,全文见 [LICENSE](LICENSE)。+从 1.3.0 版起,隔空贴以 GNU AGPL-3.0 许可发布,全文见 [LICENSE](LICENSE)。### 可以做什么-任何人都可以免费使用、研究、修改和分享 CopySync,公司和商业用途也一样。+任何人都可以免费使用、研究、修改和分享隔空贴,公司和商业用途也一样。### 需要做什么如果你:-- 分发 CopySync 或修改过的版本(单独分发、放进其他产品、或预装在设备上),或者+- 分发隔空贴或修改过的版本(单独分发、放进其他产品、或预装在设备上),或者- 让别人通过网络使用修改过的版本(比如把改过的信令服务器作为服务提供),就必须按 AGPL-3.0 向这些用户提供你这个版本的完整源码,包括你的修改和与之组合的代码。@@ -62,4 +62,4 @@ Libraries that CopySync uses keep their own licenses (MIT, BSD, Apache-2.0 and s### 第三方组件-CopySync 用到的第三方库保留各自的许可(MIT、BSD、Apache-2.0 等),都与 AGPL-3.0 兼容。+隔空贴用到的第三方库保留各自的许可(MIT、BSD、Apache-2.0 等),都与 AGPL-3.0 兼容。diff --git a/README.md b/README.mdindex 53ce544..79914b9 100644--- a/README.md+++ b/README.md@@ -4,8 +4,6 @@<h1 align="center">PasteFerry</h1>-<p align="center"><sub>隔空贴 · formerly CopySync. The app and the downloads keep the old name until the next version.</sub></p>-<p align="center">Copy on one computer, paste on the other. Mac, Windows and Linux.<br>Text, images, files and whole folders — across accounts and across networks.@@ -70,9 +68,9 @@ New here? The **[quick start](https://baiyuze.github.io/pasteferry/en/start/)****1. Install the app** on each computer from the **[download page](https://baiyuze.github.io/pasteferry/en/download/)**:-- **Mac** (macOS 13+): [Apple silicon](https://github.com/baiyuze/pasteferry/releases/latest/download/CopySync-mac-apple-silicon.dmg) or [Intel](https://github.com/baiyuze/pasteferry/releases/latest/download/CopySync-mac-intel.dmg); a [universal](https://github.com/baiyuze/pasteferry/releases/latest/download/CopySync.dmg) build runs on both.-- **Windows** 10/11: [installer](https://github.com/baiyuze/pasteferry/releases/latest/download/CopySync-Setup.exe) or [portable zip](https://github.com/baiyuze/pasteferry/releases/latest/download/CopySync-windows-x64.zip).-- **Linux** (X11, or Wayland with XWayland): `.deb` for Ubuntu and Debian ([x64](https://github.com/baiyuze/pasteferry/releases/latest/download/CopySync-linux-amd64.deb), [ARM64](https://github.com/baiyuze/pasteferry/releases/latest/download/CopySync-linux-arm64.deb)), or `tar.gz` for other distributions ([x64](https://github.com/baiyuze/pasteferry/releases/latest/download/CopySync-linux-amd64.tar.gz), [ARM64](https://github.com/baiyuze/pasteferry/releases/latest/download/CopySync-linux-arm64.tar.gz)) — extract it and run `./CopySync/install.sh` to add it to the app menu.+- **Mac** (macOS 13+): [Apple silicon](https://github.com/baiyuze/pasteferry/releases/latest/download/PasteFerry-mac-apple-silicon.dmg) or [Intel](https://github.com/baiyuze/pasteferry/releases/latest/download/PasteFerry-mac-intel.dmg); a [universal](https://github.com/baiyuze/pasteferry/releases/latest/download/PasteFerry.dmg) build runs on both.+- **Windows** 10/11: [installer](https://github.com/baiyuze/pasteferry/releases/latest/download/PasteFerry-Setup.exe) or [portable zip](https://github.com/baiyuze/pasteferry/releases/latest/download/PasteFerry-windows-x64.zip).+- **Linux** (X11, or Wayland with XWayland): `.deb` for Ubuntu and Debian ([x64](https://github.com/baiyuze/pasteferry/releases/latest/download/PasteFerry-linux-amd64.deb), [ARM64](https://github.com/baiyuze/pasteferry/releases/latest/download/PasteFerry-linux-arm64.deb)), or `tar.gz` for other distributions ([x64](https://github.com/baiyuze/pasteferry/releases/latest/download/PasteFerry-linux-amd64.tar.gz), [ARM64](https://github.com/baiyuze/pasteferry/releases/latest/download/PasteFerry-linux-arm64.tar.gz)) — extract it and run `./PasteFerry/install.sh` to add it to the app menu.The builds aren't notarized or code-signed yet: on Mac, allow it once under **System Settings → Privacy & Security → Open Anyway**; on Windows, click **More info → Run anyway**. Then click **Turn on background sync**, and allow PasteFerry when Windows Firewall asks, or when macOS asks to find devices on your local network.@@ -89,8 +87,8 @@ The builds aren't notarized or code-signed yet: on Mac, allow it once under **SyOn a public server:```bash-curl -LO https://github.com/baiyuze/pasteferry/releases/latest/download/copysync-server-linux-amd64.tar.gz-tar xzf copysync-server-linux-amd64.tar.gz && cd copysync-server-linux-amd64+curl -LO https://github.com/baiyuze/pasteferry/releases/latest/download/pasteferry-server-linux-amd64.tar.gz+tar xzf pasteferry-server-linux-amd64.tar.gz && cd pasteferry-server-linux-amd64sudo ./install.sh <public IP of the server>```diff --git a/README.zh-CN.md b/README.zh-CN.mdindex 4c5965f..bf141d4 100644--- a/README.zh-CN.md+++ b/README.zh-CN.md@@ -4,8 +4,6 @@<h1 align="center">隔空贴 PasteFerry</h1>-<p align="center"><sub>原名 CopySync。应用和安装包里暂时还叫 CopySync,下个版本会改过来。</sub></p>-<p align="center">在这台电脑复制,到那台电脑粘贴。Mac、Windows、Linux 互通。<br>文本、图片、文件、整个文件夹都可以,不限账号,不限是否在同一个网络。@@ -70,9 +68,9 @@**1. 在每台电脑上安装 App**,到 **[下载页](https://baiyuze.github.io/pasteferry/download/)** 选:-- **Mac**(macOS 13 以上):[Apple 芯片版](https://github.com/baiyuze/pasteferry/releases/latest/download/CopySync-mac-apple-silicon.dmg)或 [Intel 版](https://github.com/baiyuze/pasteferry/releases/latest/download/CopySync-mac-intel.dmg);也有两种芯片都能用的[通用版](https://github.com/baiyuze/pasteferry/releases/latest/download/CopySync.dmg)。-- **Windows** 10/11:[安装程序](https://github.com/baiyuze/pasteferry/releases/latest/download/CopySync-Setup.exe)或[便携版](https://github.com/baiyuze/pasteferry/releases/latest/download/CopySync-windows-x64.zip)。-- **Linux**(X11,或带 XWayland 的 Wayland 桌面):Ubuntu、Debian 用 `.deb`([x64](https://github.com/baiyuze/pasteferry/releases/latest/download/CopySync-linux-amd64.deb)、[ARM64](https://github.com/baiyuze/pasteferry/releases/latest/download/CopySync-linux-arm64.deb)),其他发行版用 `tar.gz`([x64](https://github.com/baiyuze/pasteferry/releases/latest/download/CopySync-linux-amd64.tar.gz)、[ARM64](https://github.com/baiyuze/pasteferry/releases/latest/download/CopySync-linux-arm64.tar.gz)),解压后运行 `./CopySync/install.sh` 加进应用菜单。+- **Mac**(macOS 13 以上):[Apple 芯片版](https://github.com/baiyuze/pasteferry/releases/latest/download/PasteFerry-mac-apple-silicon.dmg)或 [Intel 版](https://github.com/baiyuze/pasteferry/releases/latest/download/PasteFerry-mac-intel.dmg);也有两种芯片都能用的[通用版](https://github.com/baiyuze/pasteferry/releases/latest/download/PasteFerry.dmg)。+- **Windows** 10/11:[安装程序](https://github.com/baiyuze/pasteferry/releases/latest/download/PasteFerry-Setup.exe)或[便携版](https://github.com/baiyuze/pasteferry/releases/latest/download/PasteFerry-windows-x64.zip)。+- **Linux**(X11,或带 XWayland 的 Wayland 桌面):Ubuntu、Debian 用 `.deb`([x64](https://github.com/baiyuze/pasteferry/releases/latest/download/PasteFerry-linux-amd64.deb)、[ARM64](https://github.com/baiyuze/pasteferry/releases/latest/download/PasteFerry-linux-arm64.deb)),其他发行版用 `tar.gz`([x64](https://github.com/baiyuze/pasteferry/releases/latest/download/PasteFerry-linux-amd64.tar.gz)、[ARM64](https://github.com/baiyuze/pasteferry/releases/latest/download/PasteFerry-linux-arm64.tar.gz)),解压后运行 `./PasteFerry/install.sh` 加进应用菜单。还没有公证和代码签名:Mac 上第一次打开时到 **系统设置 → 隐私与安全性** 点 **仍要打开**;Windows 上点 **更多信息 → 仍要运行**。然后点 **启用后台同步**。Windows 防火墙询问、macOS 询问能否查找本地网络上的设备时,都选择允许。@@ -89,8 +87,8 @@公网服务器上的安装命令:```bash-curl -LO https://github.com/baiyuze/pasteferry/releases/latest/download/copysync-server-linux-amd64.tar.gz-tar xzf copysync-server-linux-amd64.tar.gz && cd copysync-server-linux-amd64+curl -LO https://github.com/baiyuze/pasteferry/releases/latest/download/pasteferry-server-linux-amd64.tar.gz+tar xzf pasteferry-server-linux-amd64.tar.gz && cd pasteferry-server-linux-amd64sudo ./install.sh <服务器公网IP>```diff --git a/assets/brand/icon.svg b/assets/brand/icon.svgindex 67f31c8..239ed36 100644--- a/assets/brand/icon.svg+++ b/assets/brand/icon.svg@@ -1,4 +1,4 @@-<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1024 1024" role="img" aria-label="CopySync">+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1024 1024" role="img" aria-label="PasteFerry"><!-- 几何与 tools/icon/render.swift 一一对应,改动时两边同步 --><defs><linearGradient id="body" x1="0" y1="100" x2="0" y2="924" gradientUnits="userSpaceOnUse">diff --git a/client-core/cmd/natlab/lanpeer.go b/client-core/cmd/natlab/lanpeer.goindex e034cd9..95de1d5 100644--- a/client-core/cmd/natlab/lanpeer.go+++ b/client-core/cmd/natlab/lanpeer.go@@ -11,11 +11,11 @@ import ("sync""time"- "github.com/baiyuze/copysync/client-core/internal/identity"- "github.com/baiyuze/copysync/client-core/internal/transport/lan"- "github.com/baiyuze/copysync/client-core/internal/transport/p2p"- "github.com/baiyuze/copysync/client-core/internal/transport/signed"- pb "github.com/baiyuze/copysync/proto/gen/copysync/v1"+ "github.com/baiyuze/pasteferry/client-core/internal/identity"+ "github.com/baiyuze/pasteferry/client-core/internal/transport/lan"+ "github.com/baiyuze/pasteferry/client-core/internal/transport/p2p"+ "github.com/baiyuze/pasteferry/client-core/internal/transport/signed"+ pb "github.com/baiyuze/pasteferry/proto/gen/pasteferry/v1")// runLANPeer 不经任何服务器,只靠局域网通道(mDNS 发现 + UDP 信令)连接对端。diff --git a/client-core/cmd/natlab/main.go b/client-core/cmd/natlab/main.goindex b296be8..4a8f7cb 100644--- a/client-core/cmd/natlab/main.go+++ b/client-core/cmd/natlab/main.go@@ -6,7 +6,7 @@// natlab lanpeer -seed a -peer-seed b [-mdns] [-addr ip:port]//// infra 扮演「互联网」上的服务:信令转发、若干台 STUN 服务器、一台 TURN 中转。-// peer 用的就是 CopySync 真实的 P2P 连接代码,只把信令换成了这里的 HTTP 转发。+// peer 用的就是 PasteFerry 真实的 P2P 连接代码,只把信令换成了这里的 HTTP 转发。// lanpeer 不用服务器,信令与发现走真实的局域网通道(transport/lan)。package main@@ -29,9 +29,9 @@ import ("github.com/pion/stun/v4""google.golang.org/protobuf/proto"- "github.com/baiyuze/copysync/client-core/internal/transport/p2p"- pb "github.com/baiyuze/copysync/proto/gen/copysync/v1"- turnrelay "github.com/baiyuze/copysync/server/relay"+ "github.com/baiyuze/pasteferry/client-core/internal/transport/p2p"+ pb "github.com/baiyuze/pasteferry/proto/gen/pasteferry/v1"+ turnrelay "github.com/baiyuze/pasteferry/server/relay")const turnSecret = "natlab"diff --git a/client-core/cmd/copysync-cli/main.go b/client-core/cmd/pasteferry-cli/main.gosimilarity index 91%rename from client-core/cmd/copysync-cli/main.gorename to client-core/cmd/pasteferry-cli/main.goindex 93df4ec..c1e155f 100644--- a/client-core/cmd/copysync-cli/main.go+++ b/client-core/cmd/pasteferry-cli/main.go@@ -1,18 +1,18 @@-// copysync-cli 是开发调试用的命令行客户端。+// pasteferry-cli 是开发调试用的命令行客户端。//// 它走与 Flutter UI 完全相同的 gRPC 接口,因此既能在 UI 就绪前验证 daemon,// 也能在之后用来区分「是 daemon 的问题还是 UI 的问题」。//-// copysync-cli status 查看 daemon 状态-// copysync-cli watch 订阅事件流-// copysync-cli history 列出历史记录-// copysync-cli config 查看配置-// copysync-cli devices 列出已配对设备-// copysync-cli nat 网络出口、局域网与各设备连接情况-// copysync-cli pair 生成配对码-// copysync-cli join CODE [ADDRESS] 兑换配对码;不在同一网段时带上对方显示的地址-// copysync-cli nearby [NAME] 搜索附近设备:给了 NAME 就在它出现时向它发起配对,否则等对方点本机-// copysync-cli address DEVICE ADDR 手动指定某台设备的地址+// pasteferry-cli status 查看 daemon 状态+// pasteferry-cli watch 订阅事件流+// pasteferry-cli history 列出历史记录+// pasteferry-cli config 查看配置+// pasteferry-cli devices 列出已配对设备+// pasteferry-cli nat 网络出口、局域网与各设备连接情况+// pasteferry-cli pair 生成配对码+// pasteferry-cli join CODE [ADDRESS] 兑换配对码;不在同一网段时带上对方显示的地址+// pasteferry-cli nearby [NAME] 搜索附近设备:给了 NAME 就在它出现时向它发起配对,否则等对方点本机+// pasteferry-cli address DEVICE ADDR 手动指定某台设备的地址package mainimport (@@ -31,9 +31,9 @@ import ("google.golang.org/grpc/credentials/insecure""google.golang.org/grpc/metadata"- "github.com/baiyuze/copysync/client-core/internal/config"- "github.com/baiyuze/copysync/client-core/internal/rpc"- pb "github.com/baiyuze/copysync/proto/gen/copysync/v1"+ "github.com/baiyuze/pasteferry/client-core/internal/config"+ "github.com/baiyuze/pasteferry/client-core/internal/rpc"+ pb "github.com/baiyuze/pasteferry/proto/gen/pasteferry/v1")func main() {@@ -43,7 +43,7 @@ func main() {cmd := flag.Arg(0)if cmd == "" {fmt.Fprintln(os.Stderr,- "用法: copysync-cli [-data-dir DIR] <status|watch|history|config|devices|nat|pair|join CODE [ADDRESS]|nearby [NAME]|address DEVICE ADDR>")+ "用法: pasteferry-cli [-data-dir DIR] <status|watch|history|config|devices|nat|pair|join CODE [ADDRESS]|nearby [NAME]|address DEVICE ADDR>")os.Exit(2)}@@ -76,7 +76,7 @@ func run(cmd, dataDir string) error {client := pb.NewDaemonServiceClient(conn)// token 随每次调用发送,daemon 侧用常数时间比较校验- ctx := metadata.AppendToOutgoingContext(context.Background(), "x-copysync-token", ep.Token)+ ctx := metadata.AppendToOutgoingContext(context.Background(), "x-pasteferry-token", ep.Token)switch cmd {case "status":@@ -166,9 +166,9 @@ func createPairing(ctx context.Context, c pb.DaemonServiceClient) error {if addrs := resp.GetLanAddresses(); len(addrs) > 0 {fmt.Printf(" 本机地址:%s\n", strings.Join(addrs, " "))}- fmt.Println("\n 在另一台设备上运行:copysync-cli join " + resp.GetCode())+ fmt.Println("\n 在另一台设备上运行:pasteferry-cli join " + resp.GetCode())if addrs := resp.GetLanAddresses(); len(addrs) > 0 {- fmt.Printf(" 不在同一网段时:copysync-cli join %s %s\n", resp.GetCode(), addrs[0])+ fmt.Printf(" 不在同一网段时:pasteferry-cli join %s %s\n", resp.GetCode(), addrs[0])}fmt.Println(" 等待对方兑换…(Ctrl+C 取消)")@@ -302,9 +302,9 @@ func showLAN(lan *pb.LanInfo) {return}fmt.Printf("局域网 端口 %d(UDP),本机地址 %s\n", lan.GetPort(), strings.Join(lan.GetLocalAddresses(), " "))- fmt.Printf(" mDNS 发现了 %d 个 CopySync(含未配对的)\n", lan.GetDiscovered())+ fmt.Printf(" mDNS 发现了 %d 个 PasteFerry(含未配对的)\n", lan.GetDiscovered())if lan.GetBlocked() {- fmt.Println(" 系统拦下了发往局域网的包:到「系统设置 → 隐私与安全性 → 本地网络」里打开 CopySync")+ fmt.Println(" 系统拦下了发往局域网的包:到「系统设置 → 隐私与安全性 → 本地网络」里打开 PasteFerry")}for _, p := range lan.GetPeers() {state := "找不到"@@ -320,7 +320,7 @@ func showLAN(lan *pb.LanInfo) {func setAddress(ctx context.Context, c pb.DaemonServiceClient, device, addr string) error {if device == "" || addr == "" {- return errors.New("用法: copysync-cli address <设备名或 ID> <地址>")+ return errors.New("用法: pasteferry-cli address <设备名或 ID> <地址>")}ctx, cancel := context.WithTimeout(ctx, 10*time.Second)defer cancel()@@ -340,13 +340,13 @@ func setAddress(ctx context.Context, c pb.DaemonServiceClient, device, addr striif _, err := c.SetDeviceAddress(ctx, &pb.SetDeviceAddressRequest{DeviceId: id, Address: addr}); err != nil {return err}- fmt.Println("已记下,正在那个地址上找它;用 copysync-cli nat 查看结果")+ fmt.Println("已记下,正在那个地址上找它;用 pasteferry-cli nat 查看结果")return nil}func joinPairing(ctx context.Context, c pb.DaemonServiceClient, code, address string) error {if code == "" {- return errors.New("用法: copysync-cli join <配对码> [对方地址]")+ return errors.New("用法: pasteferry-cli join <配对码> [对方地址]")}ctx, cancel := context.WithTimeout(ctx, 20*time.Second)defer cancel()diff --git a/client-core/cmd/copysyncd/clip_default.go b/client-core/cmd/pasteferryd/clip_default.gosimilarity index 59%rename from client-core/cmd/copysyncd/clip_default.gorename to client-core/cmd/pasteferryd/clip_default.goindex d51927b..c565fcc 100644--- a/client-core/cmd/copysyncd/clip_default.go+++ b/client-core/cmd/pasteferryd/clip_default.go@@ -2,6 +2,6 @@package main-import "github.com/baiyuze/copysync/client-core/internal/clipboard"+import "github.com/baiyuze/pasteferry/client-core/internal/clipboard"func newClipboard() clipboard.Clipboard { return clipboard.New() }diff --git a/client-core/cmd/copysyncd/clip_fake.go b/client-core/cmd/pasteferryd/clip_fake.gosimilarity index 92%rename from client-core/cmd/copysyncd/clip_fake.gorename to client-core/cmd/pasteferryd/clip_fake.goindex 78d3991..8be244a 100644--- a/client-core/cmd/copysyncd/clip_fake.go+++ b/client-core/cmd/pasteferryd/clip_fake.go@@ -4,7 +4,7 @@ package main// 端到端测试用的「文件剪贴板」,只在 -tags fakeclip 构建时编进来,正式版里没有。//-// 让同一台电脑上的测试实例不碰真实的剪贴板:往 $COPYSYNC_FAKE_CLIPBOARD/copy.json+// 让同一台电脑上的测试实例不碰真实的剪贴板:往 $PASTEFERRY_FAKE_CLIPBOARD/copy.json// 写一份内容就算「复制」了一次;本端要写剪贴板时(收到对端的内容),写到 pasted.json。//// {"kind": "text", "text": "…"}@@ -18,7 +18,7 @@ import ("os""path/filepath"- "github.com/baiyuze/copysync/client-core/internal/clipboard"+ "github.com/baiyuze/pasteferry/client-core/internal/clipboard")type fakeContent struct {@@ -40,9 +40,9 @@ type fakeClipboard struct {}func newClipboard() clipboard.Clipboard {- dir := os.Getenv("COPYSYNC_FAKE_CLIPBOARD")+ dir := os.Getenv("PASTEFERRY_FAKE_CLIPBOARD")if dir == "" {- panic("fakeclip 构建需要设置 COPYSYNC_FAKE_CLIPBOARD")+ panic("fakeclip 构建需要设置 PASTEFERRY_FAKE_CLIPBOARD")}_ = os.MkdirAll(dir, 0o700)return &fakeClipboard{dir: dir}diff --git a/client-core/cmd/copysyncd/lang_other.go b/client-core/cmd/pasteferryd/lang_other.gosimilarity index 100%rename from client-core/cmd/copysyncd/lang_other.gorename to client-core/cmd/pasteferryd/lang_other.godiff --git a/client-core/cmd/copysyncd/lang_windows.go b/client-core/cmd/pasteferryd/lang_windows.gosimilarity index 100%rename from client-core/cmd/copysyncd/lang_windows.gorename to client-core/cmd/pasteferryd/lang_windows.godiff --git a/client-core/cmd/copysyncd/logfile.go b/client-core/cmd/pasteferryd/logfile.gosimilarity index 100%rename from client-core/cmd/copysyncd/logfile.gorename to client-core/cmd/pasteferryd/logfile.godiff --git a/client-core/cmd/copysyncd/logfile_test.go b/client-core/cmd/pasteferryd/logfile_test.gosimilarity index 100%rename from client-core/cmd/copysyncd/logfile_test.gorename to client-core/cmd/pasteferryd/logfile_test.godiff --git a/client-core/cmd/copysyncd/main.go b/client-core/cmd/pasteferryd/main.gosimilarity index 92%rename from client-core/cmd/copysyncd/main.gorename to client-core/cmd/pasteferryd/main.goindex 0f4a949..d6e4e2d 100644--- a/client-core/cmd/copysyncd/main.go+++ b/client-core/cmd/pasteferryd/main.go@@ -1,4 +1,4 @@-// copysyncd 是 CopySync 的常驻后台进程,承载全部核心逻辑:+// pasteferryd 是 PasteFerry 的常驻后台进程,承载全部核心逻辑:// 剪贴板监听、设备配对、P2P 传输、本地缓存与回收。//// Flutter UI 只是控制台——关掉 UI 不影响后台同步。UI 通过@@ -19,18 +19,18 @@ import ("syscall""time"- "github.com/baiyuze/copysync/client-core/internal/cache"- "github.com/baiyuze/copysync/client-core/internal/clipboard"- "github.com/baiyuze/copysync/client-core/internal/config"- "github.com/baiyuze/copysync/client-core/internal/gc"- "github.com/baiyuze/copysync/client-core/internal/identity"- "github.com/baiyuze/copysync/client-core/internal/peers"- "github.com/baiyuze/copysync/client-core/internal/rpc"- "github.com/baiyuze/copysync/client-core/internal/store"- syncengine "github.com/baiyuze/copysync/client-core/internal/sync"- "github.com/baiyuze/copysync/client-core/internal/transport/lan"- "github.com/baiyuze/copysync/client-core/internal/transport/p2p"- pb "github.com/baiyuze/copysync/proto/gen/copysync/v1"+ "github.com/baiyuze/pasteferry/client-core/internal/cache"+ "github.com/baiyuze/pasteferry/client-core/internal/clipboard"+ "github.com/baiyuze/pasteferry/client-core/internal/config"+ "github.com/baiyuze/pasteferry/client-core/internal/gc"+ "github.com/baiyuze/pasteferry/client-core/internal/identity"+ "github.com/baiyuze/pasteferry/client-core/internal/peers"+ "github.com/baiyuze/pasteferry/client-core/internal/rpc"+ "github.com/baiyuze/pasteferry/client-core/internal/store"+ syncengine "github.com/baiyuze/pasteferry/client-core/internal/sync"+ "github.com/baiyuze/pasteferry/client-core/internal/transport/lan"+ "github.com/baiyuze/pasteferry/client-core/internal/transport/p2p"+ pb "github.com/baiyuze/pasteferry/proto/gen/pasteferry/v1")var version = "0.1.0-dev"@@ -54,6 +54,16 @@ func main() {)flag.Parse()+ if *dataDir == "" {+ if p, err := config.DefaultPaths(); err == nil {+ if moved, err := config.MigrateLegacy(p); err != nil {+ fmt.Fprintln(os.Stderr, "挪动旧数据目录失败:", err)+ } else if moved {+ fmt.Fprintln(os.Stderr, "已把旧数据目录挪到", p.Root)+ }+ }+ }+if *supervise {os.Exit(runSupervisor(*dataDir))}diff --git a/client-core/cmd/copysyncd/platform_linux.go b/client-core/cmd/pasteferryd/platform_linux.gosimilarity index 100%rename from client-core/cmd/copysyncd/platform_linux.gorename to client-core/cmd/pasteferryd/platform_linux.godiff --git a/client-core/cmd/copysyncd/platform_other.go b/client-core/cmd/pasteferryd/platform_other.gosimilarity index 91%rename from client-core/cmd/copysyncd/platform_other.gorename to client-core/cmd/pasteferryd/platform_other.goindex 1048490..3a8c6ae 100644--- a/client-core/cmd/copysyncd/platform_other.go+++ b/client-core/cmd/pasteferryd/platform_other.go@@ -22,7 +22,7 @@ func logFiles(string) (logs []string, crash string) {if err != nil {return nil, ""}- return []string{filepath.Join(home, "Library", "Logs", "CopySync", "daemon.log")}, ""+ return []string{filepath.Join(home, "Library", "Logs", "PasteFerry", "daemon.log")}, ""}func acquireInstance(string) (release func(), ok bool) { return func() {}, true }diff --git a/client-core/cmd/copysyncd/platform_windows.go b/client-core/cmd/pasteferryd/platform_windows.gosimilarity index 88%rename from client-core/cmd/copysyncd/platform_windows.gorename to client-core/cmd/pasteferryd/platform_windows.goindex 656fd63..cbe2f17 100644--- a/client-core/cmd/copysyncd/platform_windows.go+++ b/client-core/cmd/pasteferryd/platform_windows.go@@ -4,7 +4,7 @@ package main// Windows 上的单实例保护用命名互斥量。日志与守护进程见 supervisor.go。//-// 开机自启由界面在 HKCU\...\Run 下登记「copysyncd.exe -supervise」,+// 开机自启由界面在 HKCU\...\Run 下登记「pasteferryd.exe -supervise」,// 守护进程再拉起真正干活的子进程(见 runSupervisor)。import (@@ -21,7 +21,7 @@ import (// acquireInstance 保证同一个数据目录只有一个后台服务在运行。// 用命名互斥量:进程不管怎么退出,系统都会释放它,不会留下僵死的锁。func acquireInstance(root string) (release func(), ok bool) {- return acquireMutex("CopySync.Daemon." + dirKey(root))+ return acquireMutex("PasteFerry.Daemon." + dirKey(root))}func acquireMutex(name string) (release func(), ok bool) {@@ -49,7 +49,7 @@ func dirKey(root string) string {// acquireSupervisorLock 保证同一个数据目录只有一个守护进程。func acquireSupervisorLock(root string) (release func(), ok bool) {- return acquireMutex("CopySync.Supervisor." + dirKey(root))+ return acquireMutex("PasteFerry.Supervisor." + dirKey(root))}// childAttr 是守护进程拉起子进程时的进程属性。Windows 上不需要特别设置。diff --git a/client-core/cmd/copysyncd/supervisor.go b/client-core/cmd/pasteferryd/supervisor.gosimilarity index 96%rename from client-core/cmd/copysyncd/supervisor.gorename to client-core/cmd/pasteferryd/supervisor.goindex c45ef1a..93a2518 100644--- a/client-core/cmd/copysyncd/supervisor.go+++ b/client-core/cmd/pasteferryd/supervisor.go@@ -3,7 +3,7 @@package main// Windows 与 Linux 上,launchd 在 Mac 上管的那些事要自己做:日志写文件、崩溃自动重启。-// 开机自启由界面登记「copysyncd -supervise」(Windows 写注册表的 Run 项,Linux 写 XDG 自启动项),+// 开机自启由界面登记「pasteferryd -supervise」(Windows 写注册表的 Run 项,Linux 写 XDG 自启动项),// 守护进程再拉起真正干活的子进程。单实例保护各平台不同,见 platform_windows.go、platform_linux.go。import (diff --git a/client-core/cmd/copysyncd/tray_labels.go b/client-core/cmd/pasteferryd/tray_labels.gosimilarity index 77%rename from client-core/cmd/copysyncd/tray_labels.gorename to client-core/cmd/pasteferryd/tray_labels.goindex f77b229..6c278a9 100644--- a/client-core/cmd/copysyncd/tray_labels.go+++ b/client-core/cmd/pasteferryd/tray_labels.go@@ -13,12 +13,12 @@ func trayLabels(lang string) (open, quit string) {}switch {case strings.HasPrefix(lang, "zh-Hant"): // 台湾、香港的 Windows 都这样写- return "開啟 CopySync", "結束 CopySync"+ return "開啟 PasteFerry", "結束 PasteFerry"case strings.HasPrefix(lang, "zh"):- return "打开 CopySync", "退出 CopySync"+ return "打开 PasteFerry", "退出 PasteFerry"case strings.HasPrefix(lang, "ja"):- return "CopySync を開く", "CopySync を終了"+ return "PasteFerry を開く", "PasteFerry を終了"default:- return "Open CopySync", "Quit CopySync"+ return "Open PasteFerry", "Quit PasteFerry"}}diff --git a/client-core/cmd/copysyncd/tray_labels_test.go b/client-core/cmd/pasteferryd/tray_labels_test.gosimilarity index 67%rename from client-core/cmd/copysyncd/tray_labels_test.gorename to client-core/cmd/pasteferryd/tray_labels_test.goindex 69b94dd..fd6ffb6 100644--- a/client-core/cmd/copysyncd/tray_labels_test.go+++ b/client-core/cmd/pasteferryd/tray_labels_test.go@@ -3,8 +3,8 @@ package mainimport "testing"func TestTrayLabels(t *testing.T) {- cases := map[string]string{"zh-Hans": "打开 CopySync", "zh-Hant-TW": "開啟 CopySync", "zh-Hant-HK": "開啟 CopySync",- "en": "Open CopySync", "ja": "CopySync を開く"}+ cases := map[string]string{"zh-Hans": "打开 PasteFerry", "zh-Hant-TW": "開啟 PasteFerry", "zh-Hant-HK": "開啟 PasteFerry",+ "en": "Open PasteFerry", "ja": "PasteFerry を開く"}for lang, want := range cases {if open, _ := trayLabels(lang); open != want {t.Errorf("trayLabels(%q) = %q,应为 %q", lang, open, want)diff --git a/client-core/cmd/copysyncd/tray_windows.go b/client-core/cmd/pasteferryd/tray_windows.gosimilarity index 96%rename from client-core/cmd/copysyncd/tray_windows.gorename to client-core/cmd/pasteferryd/tray_windows.goindex 5039cd4..83721a8 100644--- a/client-core/cmd/copysyncd/tray_windows.go+++ b/client-core/cmd/pasteferryd/tray_windows.go@@ -110,7 +110,7 @@ func startTray(ctx context.Context, quit context.CancelFunc, enabled bool) func(if err != nil {return func() {}}- uiPath := filepath.Join(filepath.Dir(exe), "CopySync.exe")+ uiPath := filepath.Join(filepath.Dir(exe), "PasteFerry.exe")if _, err := os.Stat(uiPath); err != nil {return func() {} // 单独运行源码构建的 daemon,没有可打开的界面}@@ -131,7 +131,7 @@ func startTray(ctx context.Context, quit context.CancelFunc, enabled bool) func(}func runTray(ctx context.Context, uiPath string, quit context.CancelFunc) error {- class, _ := windows.UTF16PtrFromString("CopySyncTrayWindow")+ class, _ := windows.UTF16PtrFromString("PasteFerryTrayWindow")instance, _, _ := trayGetModule.Call(0)wc := trayWindowClass{Size: uint32(unsafe.Sizeof(trayWindowClass{})), WndProc: trayCallback,Instance: instance, ClassName: class}@@ -142,7 +142,7 @@ func runTray(ctx context.Context, uiPath string, quit context.CancelFunc) errort := &windowsTray{uiPath: uiPath, quit: quit}activeTray = tdefer func() { activeTray = nil }()- title, _ := windows.UTF16PtrFromString("CopySync Tray")+ title, _ := windows.UTF16PtrFromString("PasteFerry Tray")hwnd, _, err := trayCreateWindow.Call(0, uintptr(unsafe.Pointer(class)), uintptr(unsafe.Pointer(title)),0, 0, 0, 0, 0, 0, 0, instance, 0)if hwnd == 0 {@@ -155,7 +155,7 @@ func runTray(ctx context.Context, uiPath string, quit context.CancelFunc) error// 稳定 GUID 保留用户的托盘显示偏好,也能清掉崩溃前遗留的图标。GUID: windows.GUID{Data1: 0x33e590c2, Data2: 0x9bfd, Data3: 0x47a3,Data4: [8]byte{0xae, 0x76, 0x84, 0x2b, 0xef, 0xa2, 0xf6, 0xca}}}- tip, _ := windows.UTF16FromString("CopySync · 后台同步正在运行")+ tip, _ := windows.UTF16FromString("PasteFerry · 后台同步正在运行")copy(t.data.Tip[:], tip)path, _ := windows.UTF16PtrFromString(uiPath)trayExtractIcon.Call(uintptr(unsafe.Pointer(path)), 0, 0, uintptr(unsafe.Pointer(&t.data.Icon)), 1)@@ -239,7 +239,7 @@ func (t *windowsTray) showMenu() {t.openUI()case trayQuitCommand:class, _ := windows.UTF16PtrFromString("FLUTTER_RUNNER_WIN32_WINDOW")- title, _ := windows.UTF16PtrFromString("CopySync")+ title, _ := windows.UTF16PtrFromString("PasteFerry")if hwnd, _, _ := trayFindWindow.Call(uintptr(unsafe.Pointer(class)), uintptr(unsafe.Pointer(title))); hwnd != 0 {trayPostMessage.Call(hwnd, trayWMClose, 0, 0)}diff --git a/client-core/cmd/copysyncd/verbose.go b/client-core/cmd/pasteferryd/verbose.gosimilarity index 100%rename from client-core/cmd/copysyncd/verbose.gorename to client-core/cmd/pasteferryd/verbose.godiff --git a/client-core/cmd/copysyncd/verbose_test.go b/client-core/cmd/pasteferryd/verbose_test.gosimilarity index 100%rename from client-core/cmd/copysyncd/verbose_test.gorename to client-core/cmd/pasteferryd/verbose_test.godiff --git a/client-core/copysyncd b/client-core/copysyncddeleted file mode 100755index a67ec1d..0000000Binary files a/client-core/copysyncd and /dev/null differdiff --git a/client-core/go.mod b/client-core/go.modindex 7c4e3b4..2cb7989 100644--- a/client-core/go.mod+++ b/client-core/go.mod@@ -1,4 +1,4 @@-module github.com/baiyuze/copysync/client-core+module github.com/baiyuze/pasteferry/client-corego 1.26.3@@ -34,16 +34,16 @@ require ()require (- github.com/baiyuze/copysync/proto v0.0.0+ github.com/baiyuze/pasteferry/proto v0.0.0github.com/coder/websocket v1.8.15google.golang.org/grpc v1.84.0google.golang.org/protobuf v1.36.12)-replace github.com/baiyuze/copysync/proto => ../proto+replace github.com/baiyuze/pasteferry/proto => ../protorequire (- github.com/baiyuze/copysync/server v0.0.0+ github.com/baiyuze/pasteferry/server v0.0.0github.com/jezek/xgb v1.3.1github.com/klauspost/compress v1.20.0github.com/pion/ice/v4 v4.4.2@@ -56,4 +56,4 @@ require (golang.org/x/text v0.40.0)-replace github.com/baiyuze/copysync/server => ../server+replace github.com/baiyuze/pasteferry/server => ../serverdiff --git a/client-core/internal/clipboard/darwin.m b/client-core/internal/clipboard/darwin.mindex 480b64a..57de22d 100644--- a/client-core/internal/clipboard/darwin.m+++ b/client-core/internal/clipboard/darwin.m@@ -80,7 +80,7 @@ char *cs_types_json(void) {// 用 detectMetadataForTypes 探测内容类型。//// Apple 明确保证此方法不会通知用户,实测隐私机制开启时耗时 0.021s 且无弹窗。-// CopySync 靠它在不触发授权的前提下完成"复制的是文件还是文本"的分类。+// PasteFerry 靠它在不触发授权的前提下完成"复制的是文件还是文本"的分类。char *cs_detect_content_type(void) {@autoreleasepool {if (@available(macOS 15.4, *)) {@@ -153,7 +153,7 @@ char *cs_read_html(void) {}}-// 返回文件路径数组的 JSON。CopySync 的 A 端靠它拿到源文件位置。+// 返回文件路径数组的 JSON。PasteFerry 的 A 端靠它拿到源文件位置。char *cs_read_file_urls_json(void) {@autoreleasepool {NSArray<NSURL *> *urls = [NSPasteboard.generalPasteboarddiff --git a/client-core/internal/clipboard/linux_test.go b/client-core/internal/clipboard/linux_test.goindex ba3690f..a43784d 100644--- a/client-core/internal/clipboard/linux_test.go+++ b/client-core/internal/clipboard/linux_test.go@@ -86,14 +86,14 @@ func TestLinuxReadText(t *testing.T) {func TestLinuxWriteText(t *testing.T) {requireX(t)before := x.count.Load()- if err := New().Write(Content{Kind: KindText, Text: "从 CopySync 写入"}); err != nil {+ if err := New().Write(Content{Kind: KindText, Text: "从 PasteFerry 写入"}); err != nil {t.Fatal(err)}snap, err := New().Peek()if err != nil || snap.ChangeCount <= before || snap.Kind != KindText {t.Fatalf("写入后 Peek 应当看到新的计数: %+v %v(之前 %d)", snap, err, before)}- if got := string(xclipOut(t, "UTF8_STRING")); got != "从 CopySync 写入" {+ if got := string(xclipOut(t, "UTF8_STRING")); got != "从 PasteFerry 写入" {t.Fatalf("别的程序读到 %q", got)}targets := string(xclipOut(t, "TARGETS"))@@ -313,11 +313,11 @@ func TestLinuxWaylandBridge(t *testing.T) {}// X11 → Wayland- if err := New().Write(Content{Kind: KindText, Text: "从 CopySync 写入,Wayland 程序来粘贴"}); err != nil {+ if err := New().Write(Content{Kind: KindText, Text: "从 PasteFerry 写入,Wayland 程序来粘贴"}); err != nil {t.Fatal(err)}time.Sleep(300 * time.Millisecond) // 混成器接管选区需要一点时间- if got := string(wlPaste("text/plain;charset=utf-8")); got != "从 CopySync 写入,Wayland 程序来粘贴" {+ if got := string(wlPaste("text/plain;charset=utf-8")); got != "从 PasteFerry 写入,Wayland 程序来粘贴" {t.Fatalf("Wayland 程序粘贴到 %q", got)}if err := New().Write(Content{Kind: KindImage, Image: img}); err != nil {diff --git a/client-core/internal/clipboard/windows.go b/client-core/internal/clipboard/windows.goindex d4d9a81..b6141d9 100644--- a/client-core/internal/clipboard/windows.go+++ b/client-core/internal/clipboard/windows.go@@ -155,7 +155,7 @@ var wndProcCallback = windows.NewCallback(wndProc)func createOwnerWindow() error {instance, _, _ := procGetModuleHandleW.Call(0)- className, _ := windows.UTF16PtrFromString("CopySyncClipboardOwner")+ className, _ := windows.UTF16PtrFromString("PasteFerryClipboardOwner")wc := wndClassEx{Size: uint32(unsafe.Sizeof(wndClassEx{})),WndProc: wndProcCallback,@@ -165,7 +165,7 @@ func createOwnerWindow() error {if r, _, err := procRegisterClassExW.Call(uintptr(unsafe.Pointer(&wc))); r == 0 {return fmt.Errorf("注册窗口类: %w", err)}- title, _ := windows.UTF16PtrFromString("CopySync")+ title, _ := windows.UTF16PtrFromString("PasteFerry")// 样式为 0、尺寸为 0,且从不 ShowWindow:用户看不到,任务栏上也没有hwnd, _, err := procCreateWindowExW.Call(0,uintptr(unsafe.Pointer(className)), uintptr(unsafe.Pointer(title)),diff --git a/client-core/internal/clipboard/windows_test.go b/client-core/internal/clipboard/windows_test.goindex f2847f4..a545e6d 100644--- a/client-core/internal/clipboard/windows_test.go+++ b/client-core/internal/clipboard/windows_test.go@@ -26,7 +26,7 @@ var (testLoopOnce sync.Once)-// mainLoop 与 copysyncd 一样:一个锁定的线程创建窗口、泵消息,剪贴板操作都投递过去。+// mainLoop 与 pasteferryd 一样:一个锁定的线程创建窗口、泵消息,剪贴板操作都投递过去。func mainLoop(t *testing.T) *MainLoop {t.Helper()testLoopOnce.Do(func() {diff --git a/client-core/internal/clipboard/winfmt.go b/client-core/internal/clipboard/winfmt.goindex 4c21705..25b929a 100644--- a/client-core/internal/clipboard/winfmt.go+++ b/client-core/internal/clipboard/winfmt.go@@ -1,6 +1,6 @@package clipboard-// Windows 剪贴板格式与 CopySync 内部表示之间的转换。+// Windows 剪贴板格式与 PasteFerry 内部表示之间的转换。//// 都是纯函数,不依赖 Win32 API,放在没有构建标签的文件里:任何平台都能编译和测试,// 在 Mac 上开发时就能验证。实际调用在 windows.go。diff --git a/client-core/internal/config/config.go b/client-core/internal/config/config.goindex f849a4e..46b6d5d 100644--- a/client-core/internal/config/config.go+++ b/client-core/internal/config/config.go@@ -3,14 +3,16 @@ package configimport ("encoding/json"+ "errors""fmt"+ "io/fs""os""path/filepath""runtime""time")-// Config 是用户可调的全部设置。字段与 proto 的 copysync.v1.Config 一一对应。+// Config 是用户可调的全部设置。字段与 proto 的 pasteferry.v1.Config 一一对应。type Config struct {// Version 是配置文件的格式版本,见 migrate。Version int `json:"config_version"`@@ -126,7 +128,7 @@ func DefaultPaths() (Paths, error) {if err != nil {return Paths{}, err}- root = filepath.Join(home, "Library", "Application Support", "CopySync")+ root = filepath.Join(home, "Library", "Application Support", "PasteFerry")case "windows":base := os.Getenv("LOCALAPPDATA")if base == "" {@@ -135,7 +137,7 @@ func DefaultPaths() (Paths, error) {return Paths{}, err}}- root = filepath.Join(base, "CopySync")+ root = filepath.Join(base, "PasteFerry")default:// Linux 等:数据库、缓存、身份都是数据而不是配置,按 XDG 放在 ~/.local/share 下。// 界面要找到同一个位置,见 ui/lib/daemon_client.dart 的 defaultDataDir@@ -147,7 +149,7 @@ func DefaultPaths() (Paths, error) {}base = filepath.Join(home, ".local", "share")}- root = filepath.Join(base, "copysync")+ root = filepath.Join(base, "pasteferry")}return pathsUnder(root), nil}@@ -157,7 +159,7 @@ func pathsUnder(root string) Paths {Root: root,Cache: filepath.Join(root, "cache"),Config: filepath.Join(root, "config.json"),- DB: filepath.Join(root, "copysync.db"),+ DB: filepath.Join(root, "pasteferry.db"),Endpoint: filepath.Join(root, "daemon.json"),}}@@ -165,6 +167,48 @@ func pathsUnder(root string) Paths {// PathsUnder 让测试把整套目录指到临时位置。func PathsUnder(root string) Paths { return pathsUnder(root) }+// MigrateLegacy 把 2.0.0 之前产品叫 CopySync 时的数据目录整个挪到新位置:身份、配对关系、+// 复制记录与设置都在里面,丢了就得重新配对。新目录已经存在、或者没有旧目录时什么都不做。+// 要在任何东西写进新目录之前调用(守护进程的日志与锁文件也在数据目录里)。+// 旧的后台服务由界面先停掉,见 ui/lib/background_service.dart 的 removeLegacy。+func MigrateLegacy(p Paths) (bool, error) {+ old := legacyRoot(p.Root)+ if old == "" {+ return false, nil+ }+ if _, err := os.Stat(p.Root); !errors.Is(err, fs.ErrNotExist) {+ return false, err+ }+ if _, err := os.Stat(old); err != nil {+ if errors.Is(err, fs.ErrNotExist) {+ return false, nil+ }+ return false, err+ }+ if err := os.Rename(old, p.Root); err != nil {+ return false, err+ }+ for _, suffix := range []string{"", "-wal", "-shm"} {+ from := filepath.Join(p.Root, "copysync.db"+suffix)+ if _, err := os.Stat(from); err == nil {+ if err := os.Rename(from, p.DB+suffix); err != nil {+ return true, err+ }+ }+ }+ return true, nil+}++func legacyRoot(root string) string {+ switch filepath.Base(root) {+ case "PasteFerry":+ return filepath.Join(filepath.Dir(root), "CopySync")+ case "pasteferry":+ return filepath.Join(filepath.Dir(root), "copysync")+ }+ return ""+}+func (p Paths) EnsureDirs() error {for _, d := range []string{p.Root, p.Cache} {if err := os.MkdirAll(d, 0o700); err != nil {diff --git a/client-core/internal/config/migrate_test.go b/client-core/internal/config/migrate_test.gonew file mode 100644index 0000000..37854f2--- /dev/null+++ b/client-core/internal/config/migrate_test.go@@ -0,0 +1,62 @@+package config++import (+ "os"+ "path/filepath"+ "testing"+)++func TestMigrateLegacyMovesOldDataDir(t *testing.T) {+ base := t.TempDir()+ old := filepath.Join(base, "CopySync")+ if err := os.MkdirAll(filepath.Join(old, "cache"), 0o700); err != nil {+ t.Fatal(err)+ }+ for name, body := range map[string]string{"identity.json": "id", "copysync.db": "db", "copysync.db-wal": "wal"} {+ if err := os.WriteFile(filepath.Join(old, name), []byte(body), 0o600); err != nil {+ t.Fatal(err)+ }+ }++ p := PathsUnder(filepath.Join(base, "PasteFerry"))+ moved, err := MigrateLegacy(p)+ if err != nil || !moved {+ t.Fatalf("MigrateLegacy = %v, %v; want true, nil", moved, err)+ }+ for path, want := range map[string]string{+ filepath.Join(p.Root, "identity.json"): "id",+ p.DB: "db",+ p.DB + "-wal": "wal",+ } {+ got, err := os.ReadFile(path)+ if err != nil || string(got) != want {+ t.Errorf("%s = %q, %v; want %q", path, got, err, want)+ }+ }+ if _, err := os.Stat(old); !os.IsNotExist(err) {+ t.Errorf("old dir still exists: %v", err)+ }+}++func TestMigrateLegacyLeavesExistingDataDirAlone(t *testing.T) {+ base := t.TempDir()+ for _, d := range []string{"CopySync", "PasteFerry"} {+ if err := os.MkdirAll(filepath.Join(base, d), 0o700); err != nil {+ t.Fatal(err)+ }+ }+ moved, err := MigrateLegacy(PathsUnder(filepath.Join(base, "PasteFerry")))+ if err != nil || moved {+ t.Fatalf("MigrateLegacy = %v, %v; want false, nil", moved, err)+ }+ if _, err := os.Stat(filepath.Join(base, "CopySync")); err != nil {+ t.Errorf("old dir should be untouched: %v", err)+ }+}++func TestMigrateLegacyWithoutOldDir(t *testing.T) {+ moved, err := MigrateLegacy(PathsUnder(filepath.Join(t.TempDir(), "pasteferry")))+ if err != nil || moved {+ t.Fatalf("MigrateLegacy = %v, %v; want false, nil", moved, err)+ }+}diff --git a/client-core/internal/diag/diag_test.go b/client-core/internal/diag/diag_test.goindex 2d05160..b360be9 100644--- a/client-core/internal/diag/diag_test.go+++ b/client-core/internal/diag/diag_test.go@@ -7,8 +7,8 @@ import ("testing""time"- "github.com/baiyuze/copysync/client-core/internal/config"- pb "github.com/baiyuze/copysync/proto/gen/copysync/v1"+ "github.com/baiyuze/pasteferry/client-core/internal/config"+ pb "github.com/baiyuze/pasteferry/proto/gen/pasteferry/v1")func sampleInput(t *testing.T, log string) Input {diff --git a/client-core/internal/diag/report.go b/client-core/internal/diag/report.goindex 611657d..38b73a3 100644--- a/client-core/internal/diag/report.go+++ b/client-core/internal/diag/report.go@@ -10,8 +10,8 @@ import ("strings""time"- "github.com/baiyuze/copysync/client-core/internal/config"- pb "github.com/baiyuze/copysync/proto/gen/copysync/v1"+ "github.com/baiyuze/pasteferry/client-core/internal/config"+ pb "github.com/baiyuze/pasteferry/proto/gen/pasteferry/v1")// Input 是生成报告要用的全部信息,由后台服务收集好传进来。@@ -44,7 +44,7 @@ func Build(in Input) string {line := func(format string, a ...any) { fmt.Fprintf(&b, format+"\n", a...) }row := func(label string, value any) { line(" %-22s %v", label, value) }- line("CopySync diagnostics report")+ line("PasteFerry diagnostics report")line("Names, server address, public IP addresses, the user folder and file names are replaced.")line("")row("Generated", in.Now.Format("2006-01-02 15:04:05 -0700"))@@ -117,7 +117,7 @@ func Build(in Input) string {}if lan := n.GetLan(); lan != nil && lan.GetEnabled() {row("LAN port", fmt.Sprintf("UDP %d, addresses %s", lan.GetPort(), strings.Join(lan.GetLocalAddresses(), " ")))- row("Found on LAN", fmt.Sprintf("%d CopySync instances", lan.GetDiscovered()))+ row("Found on LAN", fmt.Sprintf("%d PasteFerry instances", lan.GetDiscovered()))for _, p := range lan.GetPeers() {state := "not found"if p.GetReachable() {diff --git a/client-core/internal/gc/gc.go b/client-core/internal/gc/gc.goindex 751db90..d417224 100644--- a/client-core/internal/gc/gc.go+++ b/client-core/internal/gc/gc.go@@ -9,9 +9,9 @@ import ("log/slog""time"- "github.com/baiyuze/copysync/client-core/internal/cache"- "github.com/baiyuze/copysync/client-core/internal/config"- "github.com/baiyuze/copysync/client-core/internal/store"+ "github.com/baiyuze/pasteferry/client-core/internal/cache"+ "github.com/baiyuze/pasteferry/client-core/internal/config"+ "github.com/baiyuze/pasteferry/client-core/internal/store")// 启动后先等一会儿再首次回收:此时 daemon 正在建连、恢复状态,diff --git a/client-core/internal/identity/identity.go b/client-core/internal/identity/identity.goindex 313f40d..2e63bec 100644--- a/client-core/internal/identity/identity.go+++ b/client-core/internal/identity/identity.go@@ -13,7 +13,7 @@ import ("os""path/filepath"- "github.com/baiyuze/copysync/proto/deviceid"+ "github.com/baiyuze/pasteferry/proto/deviceid")type Identity struct {diff --git a/client-core/internal/identity/identity_test.go b/client-core/internal/identity/identity_test.goindex 48cdb6f..06c3e4f 100644--- a/client-core/internal/identity/identity_test.go+++ b/client-core/internal/identity/identity_test.go@@ -9,7 +9,7 @@ import ("strings""testing"- "github.com/baiyuze/copysync/proto/deviceid"+ "github.com/baiyuze/pasteferry/proto/deviceid")func TestCreateThenLoadIsStable(t *testing.T) {diff --git a/client-core/internal/imagepreview/imagepreview.go b/client-core/internal/imagepreview/imagepreview.goindex fb48c75..b4bbdb5 100644--- a/client-core/internal/imagepreview/imagepreview.go+++ b/client-core/internal/imagepreview/imagepreview.go@@ -13,7 +13,7 @@ import ("path/filepath""strings"- "github.com/baiyuze/copysync/client-core/internal/store"+ "github.com/baiyuze/pasteferry/client-core/internal/store")// MaxPixels 是转换出来的预览图长边的上限,与界面解码时的限制一致。@@ -60,7 +60,7 @@ func Prepare(path string) (string, error) {return "", err}sum := sha256.Sum256([]byte(fmt.Sprintf("%s|%d|%d", path, info.Size(), info.ModTime().UnixNano())))- dir := filepath.Join(os.TempDir(), "CopySync-preview")+ dir := filepath.Join(os.TempDir(), "PasteFerry-preview")if err := os.MkdirAll(dir, 0o700); err != nil {return "", err}diff --git a/client-core/internal/imagepreview/imagepreview_test.go b/client-core/internal/imagepreview/imagepreview_test.goindex a004193..f333bf6 100644--- a/client-core/internal/imagepreview/imagepreview_test.go+++ b/client-core/internal/imagepreview/imagepreview_test.go@@ -10,7 +10,7 @@ import ("runtime""testing"- "github.com/baiyuze/copysync/client-core/internal/store"+ "github.com/baiyuze/pasteferry/client-core/internal/store")func TestPreviewableAndCount(t *testing.T) {diff --git a/client-core/internal/pack/pack_test.go b/client-core/internal/pack/pack_test.goindex 15f71bd..ba723c3 100644--- a/client-core/internal/pack/pack_test.go+++ b/client-core/internal/pack/pack_test.go@@ -21,7 +21,7 @@ func writeFile(t *testing.T, path, content string) {func TestPackUnpackSingleFile(t *testing.T) {src := t.TempDir()file := filepath.Join(src, "hello.txt")- writeFile(t, file, "hello copysync")+ writeFile(t, file, "hello pasteferry")var buf bytes.Bufferif err := Pack(&buf, []string{file}); err != nil {@@ -49,8 +49,8 @@ func TestPackUnpackSingleFile(t *testing.T) {if err != nil {t.Fatalf("读取解包结果: %v", err)}- if string(got) != "hello copysync" {- t.Errorf("内容 = %q,期望 %q", got, "hello copysync")+ if string(got) != "hello pasteferry" {+ t.Errorf("内容 = %q,期望 %q", got, "hello pasteferry")}}diff --git a/client-core/internal/peers/manager.go b/client-core/internal/peers/manager.goindex 1dd2893..a50e1cf 100644--- a/client-core/internal/peers/manager.go+++ b/client-core/internal/peers/manager.go@@ -18,16 +18,16 @@ import ("sync""time"- "github.com/baiyuze/copysync/client-core/internal/config"- "github.com/baiyuze/copysync/client-core/internal/identity"- "github.com/baiyuze/copysync/client-core/internal/store"- "github.com/baiyuze/copysync/client-core/internal/transport/lan"- "github.com/baiyuze/copysync/client-core/internal/transport/p2p"- "github.com/baiyuze/copysync/client-core/internal/transport/signaling"- "github.com/baiyuze/copysync/client-core/internal/transport/signed"- "github.com/baiyuze/copysync/proto/deviceid"- pb "github.com/baiyuze/copysync/proto/gen/copysync/v1"- "github.com/baiyuze/copysync/proto/pairingcode"+ "github.com/baiyuze/pasteferry/client-core/internal/config"+ "github.com/baiyuze/pasteferry/client-core/internal/identity"+ "github.com/baiyuze/pasteferry/client-core/internal/store"+ "github.com/baiyuze/pasteferry/client-core/internal/transport/lan"+ "github.com/baiyuze/pasteferry/client-core/internal/transport/p2p"+ "github.com/baiyuze/pasteferry/client-core/internal/transport/signaling"+ "github.com/baiyuze/pasteferry/client-core/internal/transport/signed"+ "github.com/baiyuze/pasteferry/proto/deviceid"+ pb "github.com/baiyuze/pasteferry/proto/gen/pasteferry/v1"+ "github.com/baiyuze/pasteferry/proto/pairingcode")// pendingPair 是一次等待用户核对指纹的配对。diff --git a/client-core/internal/peers/manager_test.go b/client-core/internal/peers/manager_test.goindex cdab8e5..3ad9981 100644--- a/client-core/internal/peers/manager_test.go+++ b/client-core/internal/peers/manager_test.go@@ -13,13 +13,13 @@ import ("testing""time"- "github.com/baiyuze/copysync/client-core/internal/config"- "github.com/baiyuze/copysync/client-core/internal/identity"- "github.com/baiyuze/copysync/client-core/internal/store"- "github.com/baiyuze/copysync/client-core/internal/transport/lan"- "github.com/baiyuze/copysync/client-core/internal/transport/p2p"- pb "github.com/baiyuze/copysync/proto/gen/copysync/v1"- "github.com/baiyuze/copysync/server/signal"+ "github.com/baiyuze/pasteferry/client-core/internal/config"+ "github.com/baiyuze/pasteferry/client-core/internal/identity"+ "github.com/baiyuze/pasteferry/client-core/internal/store"+ "github.com/baiyuze/pasteferry/client-core/internal/transport/lan"+ "github.com/baiyuze/pasteferry/client-core/internal/transport/p2p"+ pb "github.com/baiyuze/pasteferry/proto/gen/pasteferry/v1"+ "github.com/baiyuze/pasteferry/server/signal")// device 是测试里的一台完整设备:真实的 peers.Manager、数据库和身份。@@ -40,7 +40,7 @@ func newDevice(t *testing.T, name string, net *lan.MemoryNetwork, cfg config.Conif err != nil {t.Fatal(err)}- db, err := store.Open(filepath.Join(dir, "copysync.db"))+ db, err := store.Open(filepath.Join(dir, "pasteferry.db"))if err != nil {t.Fatal(err)}@@ -360,7 +360,7 @@ func TestNearbyNeedsBothWindows(t *testing.T) {if list := a.m.Nearby(); len(list) != 0 {t.Fatalf("b 没打开窗口,不该出现在附近: %v", list)}- if _, _, err := a.m.PairNearby(context.Background(), "copysync-000000000000"); !errors.Is(err, lan.ErrNotFound) {+ if _, _, err := a.m.PairNearby(context.Background(), "pasteferry-000000000000"); !errors.Is(err, lan.ErrNotFound) {t.Fatalf("应当找不到,得到 %v", err)}if _, peers := b.m.Devices(); len(peers) != 0 {diff --git a/client-core/internal/rpc/convert.go b/client-core/internal/rpc/convert.goindex 0c81732..23b1c00 100644--- a/client-core/internal/rpc/convert.go+++ b/client-core/internal/rpc/convert.go@@ -3,11 +3,11 @@ package rpcimport ("time"- "github.com/baiyuze/copysync/client-core/internal/clipboard"- "github.com/baiyuze/copysync/client-core/internal/config"- "github.com/baiyuze/copysync/client-core/internal/imagepreview"- "github.com/baiyuze/copysync/client-core/internal/store"- pb "github.com/baiyuze/copysync/proto/gen/copysync/v1"+ "github.com/baiyuze/pasteferry/client-core/internal/clipboard"+ "github.com/baiyuze/pasteferry/client-core/internal/config"+ "github.com/baiyuze/pasteferry/client-core/internal/imagepreview"+ "github.com/baiyuze/pasteferry/client-core/internal/store"+ pb "github.com/baiyuze/pasteferry/proto/gen/pasteferry/v1")// 内部类型与 proto 类型的互转。store 层刻意不直接用 proto 类型,diff --git a/client-core/internal/rpc/diagnostics_test.go b/client-core/internal/rpc/diagnostics_test.goindex 64a1cb4..47e6e1e 100644--- a/client-core/internal/rpc/diagnostics_test.go+++ b/client-core/internal/rpc/diagnostics_test.go@@ -8,8 +8,8 @@ import ("testing""time"- "github.com/baiyuze/copysync/client-core/internal/config"- pb "github.com/baiyuze/copysync/proto/gen/copysync/v1"+ "github.com/baiyuze/pasteferry/client-core/internal/config"+ pb "github.com/baiyuze/pasteferry/proto/gen/pasteferry/v1")func TestExportDiagnostics(t *testing.T) {diff --git a/client-core/internal/rpc/hub.go b/client-core/internal/rpc/hub.goindex 5b3b283..2dd2d72 100644--- a/client-core/internal/rpc/hub.go+++ b/client-core/internal/rpc/hub.go@@ -3,7 +3,7 @@ package rpcimport ("sync"- pb "github.com/baiyuze/copysync/proto/gen/copysync/v1"+ pb "github.com/baiyuze/pasteferry/proto/gen/pasteferry/v1")// Hub 把 daemon 内部发生的事件广播给所有已连接的 UI。diff --git a/client-core/internal/rpc/image_preview_test.go b/client-core/internal/rpc/image_preview_test.goindex 49489e8..ef25b9c 100644--- a/client-core/internal/rpc/image_preview_test.go+++ b/client-core/internal/rpc/image_preview_test.go@@ -7,7 +7,7 @@ import ("testing""time"- pb "github.com/baiyuze/copysync/proto/gen/copysync/v1"+ pb "github.com/baiyuze/pasteferry/proto/gen/pasteferry/v1""google.golang.org/grpc""google.golang.org/grpc/codes""google.golang.org/grpc/credentials/insecure"diff --git a/client-core/internal/rpc/search_test.go b/client-core/internal/rpc/search_test.goindex dff4737..b1a926e 100644--- a/client-core/internal/rpc/search_test.go+++ b/client-core/internal/rpc/search_test.go@@ -4,8 +4,8 @@ import ("context""testing"- "github.com/baiyuze/copysync/client-core/internal/store"- pb "github.com/baiyuze/copysync/proto/gen/copysync/v1"+ "github.com/baiyuze/pasteferry/client-core/internal/store"+ pb "github.com/baiyuze/pasteferry/proto/gen/pasteferry/v1")func TestListHistorySearch(t *testing.T) {diff --git a/client-core/internal/rpc/server.go b/client-core/internal/rpc/server.goindex c2ba30a..003c7a4 100644--- a/client-core/internal/rpc/server.go+++ b/client-core/internal/rpc/server.go@@ -17,16 +17,16 @@ import ("google.golang.org/grpc/status""google.golang.org/protobuf/proto"- "github.com/baiyuze/copysync/client-core/internal/clipboard"- "github.com/baiyuze/copysync/client-core/internal/config"- "github.com/baiyuze/copysync/client-core/internal/diag"- "github.com/baiyuze/copysync/client-core/internal/peers"- "github.com/baiyuze/copysync/client-core/internal/store"- "github.com/baiyuze/copysync/client-core/internal/transport/lan"- pb "github.com/baiyuze/copysync/proto/gen/copysync/v1"+ "github.com/baiyuze/pasteferry/client-core/internal/clipboard"+ "github.com/baiyuze/pasteferry/client-core/internal/config"+ "github.com/baiyuze/pasteferry/client-core/internal/diag"+ "github.com/baiyuze/pasteferry/client-core/internal/peers"+ "github.com/baiyuze/pasteferry/client-core/internal/store"+ "github.com/baiyuze/pasteferry/client-core/internal/transport/lan"+ pb "github.com/baiyuze/pasteferry/proto/gen/pasteferry/v1")-const tokenHeader = "x-copysync-token"+const tokenHeader = "x-pasteferry-token"// Deps 是 Server 依赖的 daemon 内部能力。用接口而非具体类型,// 让 rpc 层不必反向依赖尚未实现的 sync / transport 包。diff --git a/client-core/internal/store/store.go b/client-core/internal/store/store.goindex 7dae05d..1fffbfd 100644--- a/client-core/internal/store/store.go+++ b/client-core/internal/store/store.go@@ -12,7 +12,7 @@ import ("strings""time"- "github.com/baiyuze/copysync/client-core/internal/clipfilter"+ "github.com/baiyuze/pasteferry/client-core/internal/clipfilter"_ "modernc.org/sqlite")@@ -99,7 +99,7 @@ func Open(path string) (*Store, error) {// Only remove records whose every file item is a known transport placeholder.// Mixed selections and real empty files remain intact. Never remove source-// files belonging to UU Remote; orphaned CopySync caches are handled by GC.+// files belonging to UU Remote; orphaned PasteFerry caches are handled by GC.func (s *Store) removeRemotePlaceholders() error {rows, err := s.db.Query(`SELECT i.clip_id, i.name FROM clip_items iJOIN clips c ON c.id=i.clip_id WHERE c.kind=?`, KindFile)diff --git a/client-core/internal/sync/backlog.go b/client-core/internal/sync/backlog.goindex 5c9bb9f..c4d1515 100644--- a/client-core/internal/sync/backlog.go+++ b/client-core/internal/sync/backlog.go@@ -6,9 +6,9 @@ import ("sync""time"- "github.com/baiyuze/copysync/client-core/internal/config"- "github.com/baiyuze/copysync/client-core/internal/store"- pb "github.com/baiyuze/copysync/proto/gen/copysync/v1"+ "github.com/baiyuze/pasteferry/client-core/internal/config"+ "github.com/baiyuze/pasteferry/client-core/internal/store"+ pb "github.com/baiyuze/pasteferry/proto/gen/pasteferry/v1")// 补发:复制时对端连不上(断线、睡眠、连接已失效但还没被发现),diff --git a/client-core/internal/sync/backlog_test.go b/client-core/internal/sync/backlog_test.goindex dfb349b..0957393 100644--- a/client-core/internal/sync/backlog_test.go+++ b/client-core/internal/sync/backlog_test.go@@ -10,10 +10,10 @@ import ("testing""time"- "github.com/baiyuze/copysync/client-core/internal/config"- "github.com/baiyuze/copysync/client-core/internal/store"- "github.com/baiyuze/copysync/client-core/internal/transport/p2p"- pb "github.com/baiyuze/copysync/proto/gen/copysync/v1"+ "github.com/baiyuze/pasteferry/client-core/internal/config"+ "github.com/baiyuze/pasteferry/client-core/internal/store"+ "github.com/baiyuze/pasteferry/client-core/internal/transport/p2p"+ pb "github.com/baiyuze/pasteferry/proto/gen/pasteferry/v1")func TestBacklogKeepsNewest(t *testing.T) {@@ -61,7 +61,7 @@ func (f *fakePeers) received(peer string) []*pb.ClipOffer {func newBacklogEngine(t *testing.T, peers *fakePeers) *Engine {t.Helper()- db, err := store.Open(filepath.Join(t.TempDir(), "copysync.db"))+ db, err := store.Open(filepath.Join(t.TempDir(), "pasteferry.db"))if err != nil {t.Fatal(err)}diff --git a/client-core/internal/sync/engine.go b/client-core/internal/sync/engine.goindex 17f0fa9..fc7180c 100644--- a/client-core/internal/sync/engine.go+++ b/client-core/internal/sync/engine.go@@ -27,15 +27,15 @@ import ("github.com/pion/webrtc/v4"- "github.com/baiyuze/copysync/client-core/internal/cache"- "github.com/baiyuze/copysync/client-core/internal/clipboard"- "github.com/baiyuze/copysync/client-core/internal/clipfilter"- "github.com/baiyuze/copysync/client-core/internal/config"- "github.com/baiyuze/copysync/client-core/internal/imagepreview"- "github.com/baiyuze/copysync/client-core/internal/pack"- "github.com/baiyuze/copysync/client-core/internal/store"- "github.com/baiyuze/copysync/client-core/internal/transport/p2p"- pb "github.com/baiyuze/copysync/proto/gen/copysync/v1"+ "github.com/baiyuze/pasteferry/client-core/internal/cache"+ "github.com/baiyuze/pasteferry/client-core/internal/clipboard"+ "github.com/baiyuze/pasteferry/client-core/internal/clipfilter"+ "github.com/baiyuze/pasteferry/client-core/internal/config"+ "github.com/baiyuze/pasteferry/client-core/internal/imagepreview"+ "github.com/baiyuze/pasteferry/client-core/internal/pack"+ "github.com/baiyuze/pasteferry/client-core/internal/store"+ "github.com/baiyuze/pasteferry/client-core/internal/transport/p2p"+ pb "github.com/baiyuze/pasteferry/proto/gen/pasteferry/v1")const (diff --git a/client-core/internal/sync/image_preview_test.go b/client-core/internal/sync/image_preview_test.goindex 03b4d31..945ab52 100644--- a/client-core/internal/sync/image_preview_test.go+++ b/client-core/internal/sync/image_preview_test.go@@ -7,10 +7,10 @@ import ("testing""time"- "github.com/baiyuze/copysync/client-core/internal/cache"- "github.com/baiyuze/copysync/client-core/internal/config"- "github.com/baiyuze/copysync/client-core/internal/store"- pb "github.com/baiyuze/copysync/proto/gen/copysync/v1"+ "github.com/baiyuze/pasteferry/client-core/internal/cache"+ "github.com/baiyuze/pasteferry/client-core/internal/config"+ "github.com/baiyuze/pasteferry/client-core/internal/store"+ pb "github.com/baiyuze/pasteferry/proto/gen/pasteferry/v1")func TestImagePreview(t *testing.T) {diff --git a/client-core/internal/sync/plaintext.go b/client-core/internal/sync/plaintext.goindex c789ab1..2e22492 100644--- a/client-core/internal/sync/plaintext.go+++ b/client-core/internal/sync/plaintext.go@@ -8,7 +8,7 @@ import ("golang.org/x/net/html""golang.org/x/net/html/atom"- "github.com/baiyuze/copysync/client-core/internal/store"+ "github.com/baiyuze/pasteferry/client-core/internal/store")// plainText 返回记录的纯文本形式:写入剪贴板的纯文本类型、生成预览都用它。diff --git a/client-core/internal/sync/plaintext_test.go b/client-core/internal/sync/plaintext_test.goindex 4936150..bccff33 100644--- a/client-core/internal/sync/plaintext_test.go+++ b/client-core/internal/sync/plaintext_test.go@@ -3,7 +3,7 @@ package syncimport ("testing"- "github.com/baiyuze/copysync/client-core/internal/store"+ "github.com/baiyuze/pasteferry/client-core/internal/store")func TestHTMLToText(t *testing.T) {diff --git a/client-core/internal/sync/progress_test.go b/client-core/internal/sync/progress_test.goindex 33beef3..5ba589a 100644--- a/client-core/internal/sync/progress_test.go+++ b/client-core/internal/sync/progress_test.go@@ -4,7 +4,7 @@ import ("testing""time"- pb "github.com/baiyuze/copysync/proto/gen/copysync/v1"+ pb "github.com/baiyuze/pasteferry/proto/gen/pasteferry/v1")// 进度上报要节流:按数据块上报会把事件队列挤满,挤掉「传输完成」的记录更新。diff --git a/client-core/internal/sync/remote_placeholder_test.go b/client-core/internal/sync/remote_placeholder_test.goindex fe8c138..0007d34 100644--- a/client-core/internal/sync/remote_placeholder_test.go+++ b/client-core/internal/sync/remote_placeholder_test.go@@ -9,10 +9,10 @@ import ("testing""time"- "github.com/baiyuze/copysync/client-core/internal/clipboard"- "github.com/baiyuze/copysync/client-core/internal/config"- "github.com/baiyuze/copysync/client-core/internal/store"- pb "github.com/baiyuze/copysync/proto/gen/copysync/v1"+ "github.com/baiyuze/pasteferry/client-core/internal/clipboard"+ "github.com/baiyuze/pasteferry/client-core/internal/config"+ "github.com/baiyuze/pasteferry/client-core/internal/store"+ pb "github.com/baiyuze/pasteferry/proto/gen/pasteferry/v1")func TestLegacyRemotePlaceholderOffer(t *testing.T) {diff --git a/client-core/internal/sync/search.go b/client-core/internal/sync/search.goindex 81f2509..1ce96d3 100644--- a/client-core/internal/sync/search.go+++ b/client-core/internal/sync/search.go@@ -5,7 +5,7 @@ import ("strings""unicode"- "github.com/baiyuze/copysync/client-core/internal/store"+ "github.com/baiyuze/pasteferry/client-core/internal/store")// SearchHistory 搜索复制记录:文字内容或文件名包含 query 的,不分大小写,按时间倒序,最多 limit 条。diff --git a/client-core/internal/sync/search_test.go b/client-core/internal/sync/search_test.goindex 9f0362f..9814c11 100644--- a/client-core/internal/sync/search_test.go+++ b/client-core/internal/sync/search_test.go@@ -5,7 +5,7 @@ import ("testing""time"- "github.com/baiyuze/copysync/client-core/internal/store"+ "github.com/baiyuze/pasteferry/client-core/internal/store")func TestSearchHistory(t *testing.T) {diff --git a/client-core/internal/transport/lan/addrs.go b/client-core/internal/transport/lan/addrs.goindex 3a9151b..517860a 100644--- a/client-core/internal/transport/lan/addrs.go+++ b/client-core/internal/transport/lan/addrs.go@@ -189,7 +189,7 @@ func ResolveAddress(ctx context.Context, s string) ([]netip.AddrPort, error) {// 广播里不放设备名和 ID:同一网络里的其他人看到的只是一串每天都变的字符。// 已配对的设备知道对方的 ID,自己算一遍就能认出来。func presenceToken(deviceID string, day time.Time) string {- sum := sha256.Sum256([]byte("copysync-lan|" + deviceID + "|" + day.UTC().Format("2006-01-02")))+ sum := sha256.Sum256([]byte("pasteferry-lan|" + deviceID + "|" + day.UTC().Format("2006-01-02")))return hex.EncodeToString(sum[:8])}diff --git a/client-core/internal/transport/lan/discovery.go b/client-core/internal/transport/lan/discovery.goindex fd8d88d..5d60988 100644--- a/client-core/internal/transport/lan/discovery.go+++ b/client-core/internal/transport/lan/discovery.go@@ -6,10 +6,10 @@ import ("sync")-// ServiceType 是 CopySync 在 mDNS(DNS-SD)里用的服务类型。-const ServiceType = "_copysync._udp"+// ServiceType 是 PasteFerry 在 mDNS(DNS-SD)里用的服务类型。+const ServiceType = "_pasteferry._udp"-// Instance 是在局域网里发现的一个 CopySync 实例。+// Instance 是在局域网里发现的一个 PasteFerry 实例。type Instance struct {Name stringAddr netip.AddrPortdiff --git a/client-core/internal/transport/lan/lan.go b/client-core/internal/transport/lan/lan.goindex 0bb600c..597c493 100644--- a/client-core/internal/transport/lan/lan.go+++ b/client-core/internal/transport/lan/lan.go@@ -26,9 +26,9 @@ import ("google.golang.org/protobuf/proto"- "github.com/baiyuze/copysync/client-core/internal/identity"- "github.com/baiyuze/copysync/client-core/internal/transport/signed"- pb "github.com/baiyuze/copysync/proto/gen/copysync/v1"+ "github.com/baiyuze/pasteferry/client-core/internal/identity"+ "github.com/baiyuze/pasteferry/client-core/internal/transport/signed"+ pb "github.com/baiyuze/pasteferry/proto/gen/pasteferry/v1")const (@@ -36,7 +36,7 @@ const (// 端口号随 mDNS 广播和 hello 里的地址告诉对方。DefaultPort = 8788- magic = "CSL1"+ magic = "PFL1" // PasteFerry LAN v1;2.0.0 之前是 CSL1,新旧版本的局域网包互不相认maxPacket = 16 << 10helloInterval = 10 * time.Second // 对方还没连通时@@ -209,7 +209,7 @@ func New(opts Options) *Transport {id: opts.Identity,discovery: d,// 实例名每次启动随机,不带设备名:同一网络里的其他人看不出这是谁的电脑- instance: "copysync-" + hex.EncodeToString(suffix),+ instance: "pasteferry-" + hex.EncodeToString(suffix),boot: boot,peers: make(map[string]*peerState),instances: make(map[string]seenInstance),@@ -445,7 +445,7 @@ type PeerStatus struct {LastSeen time.Time}-// Info 是局域网直连的诊断信息,见 copysync-cli nat。+// Info 是局域网直连的诊断信息,见 pasteferry-cli nat。type Info struct {Running boolPort intdiff --git a/client-core/internal/transport/lan/lan_test.go b/client-core/internal/transport/lan/lan_test.goindex 6ac93ba..2d313d5 100644--- a/client-core/internal/transport/lan/lan_test.go+++ b/client-core/internal/transport/lan/lan_test.go@@ -12,9 +12,9 @@ import ("testing""time"- "github.com/baiyuze/copysync/client-core/internal/identity"- "github.com/baiyuze/copysync/client-core/internal/transport/signed"- pb "github.com/baiyuze/copysync/proto/gen/copysync/v1"+ "github.com/baiyuze/pasteferry/client-core/internal/identity"+ "github.com/baiyuze/pasteferry/client-core/internal/transport/signed"+ pb "github.com/baiyuze/pasteferry/proto/gen/pasteferry/v1")// node 是测试里的一台设备:一个 Transport 加上它认识的公钥和收到的东西。diff --git a/client-core/internal/transport/lan/nearby.go b/client-core/internal/transport/lan/nearby.goindex f68a51a..320aa33 100644--- a/client-core/internal/transport/lan/nearby.go+++ b/client-core/internal/transport/lan/nearby.go@@ -10,7 +10,7 @@ import ("time""unicode/utf8"- pb "github.com/baiyuze/copysync/proto/gen/copysync/v1"+ pb "github.com/baiyuze/pasteferry/proto/gen/pasteferry/v1")// 「搜索附近设备」:窗口打开期间在局域网里公开设备名,看得到附近同样打开了窗口的设备,@@ -258,7 +258,7 @@ func (t *Transport) nearbyAdvertLocked(text map[string]string) {func (t *Transport) nearbySelfLocked() (name, platform string) {name = t.visibleNameif name == "" {- name = "CopySync"+ name = "PasteFerry"}return truncateUTF8(name, maxNearbyName), t.visiblePlatform}diff --git a/client-core/internal/transport/lan/nearby_test.go b/client-core/internal/transport/lan/nearby_test.goindex 2c6c35f..147561c 100644--- a/client-core/internal/transport/lan/nearby_test.go+++ b/client-core/internal/transport/lan/nearby_test.go@@ -107,7 +107,7 @@ func TestNearbyPairing(t *testing.T) {if time.Since(start) > 2*time.Second {t.Errorf("被拒收后应当很快返回,用了 %v", time.Since(start))}- if _, err := a.t.PairNearby(ctx2, "copysync-nobody"); !errors.Is(err, ErrNotFound) {+ if _, err := a.t.PairNearby(ctx2, "pasteferry-nobody"); !errors.Is(err, ErrNotFound) {t.Fatalf("不认识的实例应当找不到,得到 %v", err)}}diff --git a/client-core/internal/transport/lan/pairing.go b/client-core/internal/transport/lan/pairing.goindex 1763be1..70a8bce 100644--- a/client-core/internal/transport/lan/pairing.go+++ b/client-core/internal/transport/lan/pairing.go@@ -11,11 +11,11 @@ import ("google.golang.org/protobuf/proto"- "github.com/baiyuze/copysync/client-core/internal/identity"- "github.com/baiyuze/copysync/client-core/internal/transport/signed"- "github.com/baiyuze/copysync/proto/deviceid"- pb "github.com/baiyuze/copysync/proto/gen/copysync/v1"- "github.com/baiyuze/copysync/proto/pairingcode"+ "github.com/baiyuze/pasteferry/client-core/internal/identity"+ "github.com/baiyuze/pasteferry/client-core/internal/transport/signed"+ "github.com/baiyuze/pasteferry/proto/deviceid"+ pb "github.com/baiyuze/pasteferry/proto/gen/pasteferry/v1"+ "github.com/baiyuze/pasteferry/proto/pairingcode")// 在局域网里配对:显示配对码的一方把码「开放」出来(mDNS 广播里带 p=1),diff --git a/client-core/internal/transport/lan/permission_darwin_test.go b/client-core/internal/transport/lan/permission_darwin_test.goindex 29a82fd..2d156d4 100644--- a/client-core/internal/transport/lan/permission_darwin_test.go+++ b/client-core/internal/transport/lan/permission_darwin_test.go@@ -7,7 +7,7 @@ import ("testing""time"- "github.com/baiyuze/copysync/client-core/internal/identity"+ "github.com/baiyuze/pasteferry/client-core/internal/identity")// 探测本地网络权限的目标在默认路由所在的网段里,又不是本机。没有网络的机器上跳过。diff --git a/client-core/internal/transport/lan/permission_windows.go b/client-core/internal/transport/lan/permission_windows.goindex f3c82fa..9ded5fb 100644--- a/client-core/internal/transport/lan/permission_windows.go+++ b/client-core/internal/transport/lan/permission_windows.go@@ -28,7 +28,7 @@ func RequestPermission() error {}script := fmt.Sprintf(`/c netsh advfirewall firewall delete rule name=all dir=in program="%[1]s" & `+- `netsh advfirewall firewall add rule name="CopySync" dir=in action=allow program="%[1]s" protocol=UDP profile=any`,+ `netsh advfirewall firewall add rule name="PasteFerry" dir=in action=allow program="%[1]s" protocol=UDP profile=any`,exe)verb, _ := windows.UTF16PtrFromString("runas")file, _ := windows.UTF16PtrFromString("cmd.exe")diff --git a/client-core/internal/transport/p2p/egress_integration_test.go b/client-core/internal/transport/p2p/egress_integration_test.goindex 8147343..7384c58 100644--- a/client-core/internal/transport/p2p/egress_integration_test.go+++ b/client-core/internal/transport/p2p/egress_integration_test.go@@ -9,9 +9,9 @@ import ("testing""time"- "github.com/baiyuze/copysync/client-core/internal/transport/p2p"- pb "github.com/baiyuze/copysync/proto/gen/copysync/v1"- turnrelay "github.com/baiyuze/copysync/server/relay"+ "github.com/baiyuze/pasteferry/client-core/internal/transport/p2p"+ pb "github.com/baiyuze/pasteferry/proto/gen/pasteferry/v1"+ turnrelay "github.com/baiyuze/pasteferry/server/relay")// TestManagerAdvertisesProbedEgress 验证:管理器在共享端口上做出口探测,diff --git a/client-core/internal/transport/p2p/manager.go b/client-core/internal/transport/p2p/manager.goindex 9b9dc48..9737a58 100644--- a/client-core/internal/transport/p2p/manager.go+++ b/client-core/internal/transport/p2p/manager.go@@ -12,7 +12,7 @@ import ("github.com/pion/ice/v4""github.com/pion/webrtc/v4"- pb "github.com/baiyuze/copysync/proto/gen/copysync/v1"+ pb "github.com/baiyuze/pasteferry/proto/gen/pasteferry/v1")// Manager 管理与所有已配对设备的 P2P 连接。diff --git a/client-core/internal/transport/p2p/peer.go b/client-core/internal/transport/p2p/peer.goindex 6be4cc8..6d49db2 100644--- a/client-core/internal/transport/p2p/peer.go+++ b/client-core/internal/transport/p2p/peer.go@@ -19,7 +19,7 @@ import ("github.com/pion/webrtc/v4""google.golang.org/protobuf/proto"- pb "github.com/baiyuze/copysync/proto/gen/copysync/v1"+ pb "github.com/baiyuze/pasteferry/proto/gen/pasteferry/v1")// ConnState 是对端连接的状态,会上报给界面。diff --git a/client-core/internal/transport/p2p/peer_test.go b/client-core/internal/transport/p2p/peer_test.goindex abc5209..183b9fb 100644--- a/client-core/internal/transport/p2p/peer_test.go+++ b/client-core/internal/transport/p2p/peer_test.go@@ -6,8 +6,8 @@ import ("testing""time"- "github.com/baiyuze/copysync/client-core/internal/transport/p2p"- pb "github.com/baiyuze/copysync/proto/gen/copysync/v1"+ "github.com/baiyuze/pasteferry/client-core/internal/transport/p2p"+ pb "github.com/baiyuze/pasteferry/proto/gen/pasteferry/v1")// relay 把两个 Manager 直接对接起来,替代真实的信令服务器。diff --git a/client-core/internal/transport/p2p/relay_test.go b/client-core/internal/transport/p2p/relay_test.goindex 01812d3..de7b02e 100644--- a/client-core/internal/transport/p2p/relay_test.go+++ b/client-core/internal/transport/p2p/relay_test.go@@ -5,10 +5,10 @@ import ("testing""time"- "github.com/baiyuze/copysync/client-core/internal/transport/p2p"- pb "github.com/baiyuze/copysync/proto/gen/copysync/v1"+ "github.com/baiyuze/pasteferry/client-core/internal/transport/p2p"+ pb "github.com/baiyuze/pasteferry/proto/gen/pasteferry/v1"// 测试内已有一个名为 relay 的信令转发桩,这里给 TURN 包起别名以示区分- turnrelay "github.com/baiyuze/copysync/server/relay"+ turnrelay "github.com/baiyuze/pasteferry/server/relay")// TestRelayFallback 验证「打洞失败就走服务器中转」这条兜底路径确实可用。diff --git a/client-core/internal/transport/p2p/stream_test.go b/client-core/internal/transport/p2p/stream_test.goindex a6abaed..e88c41b 100644--- a/client-core/internal/transport/p2p/stream_test.go+++ b/client-core/internal/transport/p2p/stream_test.go@@ -8,7 +8,7 @@ import ("testing""time"- "github.com/baiyuze/copysync/client-core/internal/transport/p2p"+ "github.com/baiyuze/pasteferry/client-core/internal/transport/p2p")// TestStreamDeliversPayloadIntact 是文件传输的核心保障。diff --git a/client-core/internal/transport/p2p/upgrade_test.go b/client-core/internal/transport/p2p/upgrade_test.goindex aff1347..fcb12cd 100644--- a/client-core/internal/transport/p2p/upgrade_test.go+++ b/client-core/internal/transport/p2p/upgrade_test.go@@ -9,7 +9,7 @@ import ("github.com/pion/webrtc/v4"- pb "github.com/baiyuze/copysync/proto/gen/copysync/v1"+ pb "github.com/baiyuze/pasteferry/proto/gen/pasteferry/v1")// signalBus 把几个 Manager 直接对接起来。异步、不保序地投递,diff --git a/client-core/internal/transport/signaling/client.go b/client-core/internal/transport/signaling/client.goindex 394c656..f55b88b 100644--- a/client-core/internal/transport/signaling/client.go+++ b/client-core/internal/transport/signaling/client.go@@ -21,9 +21,9 @@ import ("github.com/coder/websocket""google.golang.org/protobuf/proto"- "github.com/baiyuze/copysync/client-core/internal/identity"- "github.com/baiyuze/copysync/client-core/internal/transport/signed"- pb "github.com/baiyuze/copysync/proto/gen/copysync/v1"+ "github.com/baiyuze/pasteferry/client-core/internal/identity"+ "github.com/baiyuze/pasteferry/client-core/internal/transport/signed"+ pb "github.com/baiyuze/pasteferry/proto/gen/pasteferry/v1")const (diff --git a/client-core/internal/transport/signaling/client_test.go b/client-core/internal/transport/signaling/client_test.goindex 1e2cc61..4e5f421 100644--- a/client-core/internal/transport/signaling/client_test.go+++ b/client-core/internal/transport/signaling/client_test.go@@ -11,10 +11,10 @@ import ("testing""time"- "github.com/baiyuze/copysync/client-core/internal/identity"- "github.com/baiyuze/copysync/client-core/internal/transport/signaling"- pb "github.com/baiyuze/copysync/proto/gen/copysync/v1"- "github.com/baiyuze/copysync/server/signal"+ "github.com/baiyuze/pasteferry/client-core/internal/identity"+ "github.com/baiyuze/pasteferry/client-core/internal/transport/signaling"+ pb "github.com/baiyuze/pasteferry/proto/gen/pasteferry/v1"+ "github.com/baiyuze/pasteferry/server/signal")// peer 把一个设备身份、它的信令客户端、以及它观察到的事件打包在一起,diff --git a/client-core/internal/transport/signed/signed.go b/client-core/internal/transport/signed/signed.goindex 8db745a..f4fe49c 100644--- a/client-core/internal/transport/signed/signed.go+++ b/client-core/internal/transport/signed/signed.go@@ -17,8 +17,8 @@ import ("google.golang.org/protobuf/proto"- "github.com/baiyuze/copysync/client-core/internal/identity"- pb "github.com/baiyuze/copysync/proto/gen/copysync/v1"+ "github.com/baiyuze/pasteferry/client-core/internal/identity"+ pb "github.com/baiyuze/pasteferry/proto/gen/pasteferry/v1")// MaxClockSkew 是防重放的时间窗:时间戳偏离超过它的消息一律拒收。diff --git a/client-core/internal/transport/signed/signed_test.go b/client-core/internal/transport/signed/signed_test.goindex c06f572..254c94f 100644--- a/client-core/internal/transport/signed/signed_test.go+++ b/client-core/internal/transport/signed/signed_test.go@@ -9,8 +9,8 @@ import ("google.golang.org/protobuf/proto"- "github.com/baiyuze/copysync/client-core/internal/identity"- pb "github.com/baiyuze/copysync/proto/gen/copysync/v1"+ "github.com/baiyuze/pasteferry/client-core/internal/identity"+ pb "github.com/baiyuze/pasteferry/proto/gen/pasteferry/v1")func newIdentity(t *testing.T) *identity.Identity {diff --git a/design/lan-mode.md b/design/lan-mode.mdindex 072b196..ef45138 100644--- a/design/lan-mode.md+++ b/design/lan-mode.md@@ -50,13 +50,13 @@处理办法:- 后台服务的 Info.plist 加上 `NSLocalNetworkUsageDescription`(中英日本地化)与 `NSBonjourServices`。-- LaunchAgent 写上 `AssociatedBundleIdentifiers`,让系统知道后台服务属于 CopySync.app(TN3179 的建议)。+- LaunchAgent 写上 `AssociatedBundleIdentifiers`,让系统知道后台服务属于 PasteFerry.app(TN3179 的建议)。- 后台服务发现发往本机直连网段的包持续返回 `EHOSTUNREACH` 时,报告「被系统拦截」,界面提示用户去「系统设置 → 隐私与安全性 → 本地网络」打开。- 但对方不在线时也会得到 `EHOSTUNREACH`:ARP 解析失败的那一次发送返回它,之后 20 秒(`net.link.ether.inet.host_down_time`)里返回 `EHOSTDOWN`。被权限拦下的包到不了 ARP 那一步,立即再发还是 `EHOSTUNREACH`。所以遇到 `EHOSTUNREACH` 就立即再发一次,仍是它才算被拦。两种情况都在真机上测过(1.6.0 之后):launchd 启动的新签名程序头 2.5 秒里,在线和不在线的地址都是两次 `EHOSTUNREACH`;之后发往不在线地址的是 `EHOSTUNREACH` 加 `EHOSTDOWN`。后来用正式打包方式(同样的 Info.plist,由 launchd 带着 `AssociatedBundleIdentifiers` 启动)在解锁的屏幕上复测:-- 系统会弹出授权窗,授权记在后台服务自己的 bundle ID 名下,没有因为 `AssociatedBundleIdentifiers` 算到 CopySync.app 头上。用户允许后,mDNS 与单播都正常。+- 系统会弹出授权窗,授权记在后台服务自己的 bundle ID 名下,没有因为 `AssociatedBundleIdentifiers` 算到 PasteFerry.app 头上。用户允许后,mDNS 与单播都正常。- 换了程序文件(ad-hoc 重新签名)后没有再问,授权仍然有效;但新程序刚启动的几秒到十几秒里,发往局域网的包仍会被拦下,之后自动放行。所以「被系统拦截」要持续 30 秒才报告,否则每次升级都会闪一下提示。- 这段拦截还会让 mDNS 失效:pion/mdns 启动时在哪块网卡上加入组播失败,就再也不用那块网卡。于是启动 mDNS 之前先探测一次,被拦期间每一轮都探测,探测一通过就重启 mDNS。用户后来才在系统设置里允许,也走同一条路恢复。判断拦截解除只认探测包:被拦时,发给先联系过本机的设备照样能成功。- 还没配对任何设备时,后台服务不往局域网发单播,就发现不了自己被拦着。于是在 macOS 上定期往本网段里一个普通地址的丢弃端口发几个字节探测(不用网关:发往网关的包可能不受这项限制)。往本机自己的地址发包也不受限制,不能当作「没被拦」的证据——Parallels 的 NAT 会让虚拟机的包看起来来自本机地址。@@ -75,15 +75,15 @@### 2. 发现-- 服务类型 `_copysync._udp`,实例名每次启动随机(`copysync-` 加 12 位十六进制),不带设备名。+- 服务类型 `_pasteferry._udp`,实例名每次启动随机(`pasteferry-` 加 12 位十六进制),不带设备名。- TXT:`v=1`,`t=当日令牌`,配对码开放期间加 `p=1`。-- 令牌是 `sha256("copysync-lan|" + device_id + "|" + UTC 日期)` 的前 8 字节。已配对的设备按昨天、今天、明天各算一遍就能认出对方;同一网络里的其他人看到的只是一串每天都变的字符,无法跨天关联。+- 令牌是 `sha256("pasteferry-lan|" + device_id + "|" + UTC 日期)` 的前 8 字节。已配对的设备按昨天、今天、明天各算一遍就能认出对方;同一网络里的其他人看到的只是一串每天都变的字符,无法跨天关联。- Windows 上由系统的 DNS-SD 服务回答查询(见上一节),其他平台由 pion/mdns 回答。网络变化时(本机地址集合变了)重新加入组播、重新广播。### 3. 局域网信令- 固定 UDP 端口 8788,被占用时(同一台 Mac 上两个用户都登录着)退回随机端口,端口随 mDNS 和地址一起告诉对方。-- 每个包是 4 字节魔数 `CSL1` 加 `LanPacket`,上限 16 KB,按来源限速。+- 每个包是 4 字节魔数 `PFL1`(2.0.0 之前是 `CSL1`) 加 `LanPacket`,上限 16 KB,按来源限速。- 已配对设备之间收发的就是服务器转发的那种 `Signed`。上线通知是 `SignalMessage` 里新增的 `LanHello`:自报的地址、要不要回一条、自己多久发一次。- 对每台还没连通的设备,每 10 秒往它可能在的地址发 hello(已连通时 30 秒保活)。候选地址按顺序取:最近一次收到它消息的来源、mDNS 发现的、它自报的、地址簿里的,最多 12 个。- 收到有效消息就记下来源地址,并标记可达;超过对方声明间隔的三倍没收到,视为不可达。@@ -130,7 +130,7 @@ hello 里带一个每次启动随机生成的启动标识。收到已配对设- 服务器地址默认为空。1.4.0 之前的默认值 `ws://127.0.0.1:8787/signal` 其实没有服务器在跑,升级时清空一次(配置文件记 `config_version`,只迁移一次)。- 没有服务器时不探测公共 STUN:只在局域网里连,探测出口没有用,还会把公网 IP 暴露给公共服务器。- 解除配对时断开 P2P 连接(以前不断开)。-- `copysync-cli`:`join CODE [ADDRESS]`、`address DEVICE ADDR`,`nat` 里加了局域网一节;1.5.0 加了 `nearby [NAME]`(搜索附近设备,给了 NAME 就在它出现时发起配对)。+- `pasteferry-cli`:`join CODE [ADDRESS]`、`address DEVICE ADDR`,`nat` 里加了局域网一节;1.5.0 加了 `nearby [NAME]`(搜索附近设备,给了 NAME 就在它出现时发起配对)。### 代码位置@@ -213,7 +213,7 @@ Mac 与 Windows 11 虚拟机,各跑一个用 `-tags fakeclip` 编译的后台- Mac 装上新版后,局域网发现正常工作,没有误报「被系统拦截」(修复前见「六、踩过的坑」)。- 没测:睡眠唤醒、Mac 上开关 Wi-Fi、两台 Windows 之间、真实的跨网段与 Tailscale(只在 NAT 打洞实验室里测过)。-第四轮(1.5.0,搜索附近设备):Mac 与 Windows 11 虚拟机各跑一个 `-tags fakeclip` 的后台服务(独立数据目录,与两边正式安装的 1.4.0 同时运行,局域网端口因此都退回随机端口),Windows 上的程序是新的路径,没有任何防火墙规则,用 `copysync-cli nearby` 代替界面:+第四轮(1.5.0,搜索附近设备):Mac 与 Windows 11 虚拟机各跑一个 `-tags fakeclip` 的后台服务(独立数据目录,与两边正式安装的 1.4.0 同时运行,局域网端口因此都退回随机端口),Windows 上的程序是新的路径,没有任何防火墙规则,用 `pasteferry-cli nearby` 代替界面:- Mac 打开后立刻看到 Windows,设备名经 Windows 的系统 DNS-SD 服务转发后完好;点它不到 1 秒收到回应,两边指纹一致,确认后直连。没放行防火墙的 Windows 照样收到了请求(它先发过 ping)。- 两边都只打开、不点:Mac 打开后 1 秒内出现在 Windows 的列表里,并认出是已配对的设备;Mac 关掉后 1 秒内从 Windows 的列表里消失(广播里撤下设备名,pion 报了更新)。diff --git a/design/linux-client.md b/design/linux-client.mdindex 968494b..741c19a 100644--- a/design/linux-client.md+++ b/design/linux-client.md@@ -1,13 +1,13 @@# Linux 客户端> 状态:已实现,随 1.6.0 发布-> 代码:`client-core/internal/clipboard/linux.go`(剪贴板)、`client-core/cmd/copysyncd/platform_linux.go` 与 `supervisor.go`(后台服务)、`ui/linux/`(GTK 外壳)、`ui/lib/background_service_linux.dart`(开机自启)、`scripts/package-linux.sh` 与 `tools/linux/`(打包)+> 代码:`client-core/internal/clipboard/linux.go`(剪贴板)、`client-core/cmd/pasteferryd/platform_linux.go` 与 `supervisor.go`(后台服务)、`ui/linux/`(GTK 外壳)、`ui/lib/background_service_linux.dart`(开机自启)、`scripts/package-linux.sh` 与 `tools/linux/`(打包)> 验证:`internal/clipboard/linux_test.go`(Xvfb + xclip、Wayland + wl-clipboard)、CI 的 Linux 任务(x64 与 ARM64)、Ubuntu 24.04 GNOME(Wayland)虚拟机实测> 相关:[Windows 客户端](windows-client.md)、[局域网直连](lan-mode.md)## 一、目标-让 Linux 电脑加入 CopySync,与 Mac、Windows 互相同步文本、带格式文本、图片和文件,体验与另外两个平台一致:开机自启、关掉窗口照常同步、崩溃自动拉起,网络行为完全相同。+让 Linux 电脑加入隔空贴,与 Mac、Windows 互相同步文本、带格式文本、图片和文件,体验与另外两个平台一致:开机自启、关掉窗口照常同步、崩溃自动拉起,网络行为完全相同。支持:x64 与 ARM64;X11 桌面,或者带 XWayland 的 Wayland 桌面(GNOME、KDE 等主流桌面默认都带);GTK 3。@@ -67,11 +67,11 @@ KeePassXC 等密码管理器复制密码时带着 KDE 约定的 `x-kde-passwordM| | Mac | Windows | Linux ||---|---|---|---|-| 开机自启 | LaunchAgent | HKCU\...\Run | XDG 自启动项(`~/.config/autostart/copysync-daemon.desktop`) |-| 崩溃拉起 | launchd 的 KeepAlive | `copysyncd -supervise` 守护进程 | 同 Windows |+| 开机自启 | LaunchAgent | HKCU\...\Run | XDG 自启动项(`~/.config/autostart/pasteferry-daemon.desktop`) |+| 崩溃拉起 | launchd 的 KeepAlive | `pasteferryd -supervise` 守护进程 | 同 Windows || 只运行一个 | launchd | 命名互斥量 | `flock`(数据目录下的 daemon.lock、supervisor.lock) || 日志 | launchd 重定向 | `logs/daemon.log`,10 MB 轮转 | 同 Windows |-| 数据目录 | `~/Library/Application Support/CopySync` | `%LOCALAPPDATA%\CopySync` | `$XDG_DATA_HOME/copysync`,默认 `~/.local/share/copysync` |+| 数据目录 | `~/Library/Application Support/PasteFerry` | `%LOCALAPPDATA%\PasteFerry` | `$XDG_DATA_HOME/pasteferry`,默认 `~/.local/share/pasteferry` |用 XDG 自启动项而不是 systemd 的用户服务:自启动项在登录后的图形会话里启动,带着 DISPLAY、XAUTHORITY,后台服务才连得上剪贴板;systemd 用户服务不一定拿得到这些环境变量,各发行版的做法也不一致。GNOME、KDE、Xfce 都认 XDG 自启动项。@@ -79,8 +79,8 @@ KeePassXC 等密码管理器复制密码时带着 KDE 约定的 `x-kde-passwordM## 四、界面-- **GTK 外壳**(`ui/linux/`):应用 ID `com.copysync.app`(与 Mac 的包名一致,桌面据此把窗口与应用菜单项对应起来,Dock 里显示正确的图标);默认 960×640、最小 760×520;只运行一个实例,再次打开时激活已有的窗口;窗口图标随程序发布。为了在 Ubuntu 22.04(GLib 2.72)上编译,不用 2.74 才有的 `G_APPLICATION_DEFAULT_FLAGS`。-- **开机自启**(`background_service_linux.dart`):写自启动项,路径按 Desktop Entry 规范加引号转义(文件夹名可能带空格);状态按自启动项里的路径与 `pgrep` 判断;重启时结束当前用户的 copysyncd 再脱离界面启动守护进程,环境变量随之传下去。+- **GTK 外壳**(`ui/linux/`):应用 ID `com.pasteferry.app`(与 Mac 的包名一致,桌面据此把窗口与应用菜单项对应起来,Dock 里显示正确的图标);默认 960×640、最小 760×520;只运行一个实例,再次打开时激活已有的窗口;窗口图标随程序发布。为了在 Ubuntu 22.04(GLib 2.72)上编译,不用 2.74 才有的 `G_APPLICATION_DEFAULT_FLAGS`。+- **开机自启**(`background_service_linux.dart`):写自启动项,路径按 Desktop Entry 规范加引号转义(文件夹名可能带空格);状态按自启动项里的路径与 `pgrep` 判断;重启时结束当前用户的 pasteferryd 再脱离界面启动守护进程,环境变量随之传下去。- **字体**:主字体跟随系统(fontconfig 默认的无衬线字体);汉字指定 Noto Sans CJK SC 等(日文界面用 JP),理由与 Windows 相同:系统逐字回退时,中日共用的汉字可能落到另一种语言的字形上。等宽字体交给 fontconfig 的 `monospace` 别名。- **叫法与图标**:与 Windows 一样说「这台电脑」,用 Fluent 图标(线条风格与 GNOME、KDE 的图标接近);打开网址用 `xdg-open`。@@ -88,8 +88,8 @@ KeePassXC 等密码管理器复制密码时带着 KDE 约定的 `x-kde-passwordM`scripts/package-linux.sh` 在 Linux 上构建后台服务、命令行与界面,产出:-- `CopySync-linux-<arch>.deb`:装在 `/opt/CopySync`,应用菜单项与图标装进系统目录,`/usr/bin` 下有 `copysync`、`copysync-cli`。依赖只写 `libgtk-3-0`(Ubuntu 24.04 起改名为 libgtk-3-0t64,新包也提供旧名字,两边都能装),推荐 `fonts-noto-cjk`。卸载时结束正在运行的后台服务。-- `CopySync-linux-<arch>.tar.gz`:解压即用,`install.sh` 把应用菜单项和图标装进用户目录(不需要 root),`uninstall.sh` 撤销并停用后台服务。+- `PasteFerry-linux-<arch>.deb`:装在 `/opt/PasteFerry`,应用菜单项与图标装进系统目录,`/usr/bin` 下有 `pasteferry`、`pasteferry-cli`。依赖只写 `libgtk-3-0`(Ubuntu 24.04 起改名为 libgtk-3-0t64,新包也提供旧名字,两边都能装),推荐 `fonts-noto-cjk`。卸载时结束正在运行的后台服务。+- `PasteFerry-linux-<arch>.tar.gz`:解压即用,`install.sh` 把应用菜单项和图标装进用户目录(不需要 root),`uninstall.sh` 撤销并停用后台服务。Flutter 不能交叉编译 Linux 桌面程序,CI 在 GitHub 的 x64 与 ARM64 两种 Ubuntu 22.04 机器上各跑一次:先在 Xvfb 里跑后台服务的全部测试(含 X11 剪贴板),再跑界面测试,最后打包上传。在 22.04 上构建,产物依赖的 glibc 与 GTK 版本较老,新的发行版也能运行。diff --git a/design/mobile-clients.md b/design/mobile-clients.mdindex 6a2d6f9..8918096 100644--- a/design/mobile-clients.md+++ b/design/mobile-clients.md@@ -1,4 +1,4 @@-# CopySync Android / iOS 客户端方案+# 隔空贴 Android / iOS 客户端方案> 评审稿 · 2026-10-09 · 基于仓库提交 `59ba977`(客户端 1.3.1)>@@ -31,17 +31,17 @@**Android:**-1. 在浏览器、相册、聊天软件或文件管理器中,选择内容并点击“分享 → CopySync”。-2. CopySync 打开接收分享的页面,选择目标设备,预览后发送。+1. 在浏览器、相册、聊天软件或文件管理器中,选择内容并点击“分享 → 隔空贴”。+2. 隔空贴打开接收分享的页面,选择目标设备,预览后发送。3. 电脑收到后按现有设置写入剪贴板或复制记录,随后可直接粘贴。4. 电脑离线时显示“等待设备上线”;用户重新打开手机 App 且电脑在线后重试,不把排队显示成发送成功。-已经复制的文字,也可以打开 CopySync,点击“粘贴并发送”。不自动读取每次进入 App 时的剪贴板。+已经复制的文字,也可以打开隔空贴,点击“粘贴并发送”。不自动读取每次进入 App 时的剪贴板。**iOS:**-- 最可靠的主流程:打开 CopySync → 使用系统粘贴控件或选择照片 / 文件 → 选择电脑 → 发送。-- 一期系统分享入口:分享扩展把内容保存为发送草稿,提示“已保存到 CopySync,请打开 App 发送”;用户随后手动打开主 App 完成传输。+- 最可靠的主流程:打开隔空贴 → 使用系统粘贴控件或选择照片 / 文件 → 选择电脑 → 发送。+- 一期系统分享入口:分享扩展把内容保存为发送草稿,提示“已保存到隔空贴,请打开 App 发送”;用户随后手动打开主 App 完成传输。- “在分享面板里直接发完”作为后续优化,必须先验证扩展的内存、运行时间、网络握手与宿主退出行为。**不承诺分享扩展能自动拉起主 App,也不把仅保存草稿标为已发送。**后一条意味着 iOS 一期比 Android 多一步,需要在内测时确认用户能否接受。@@ -49,7 +49,7 @@### 2.2 电脑发送到手机1. 在电脑复制文字、图片或文件。-2. 手机打开 CopySync,建立连接并接收当前内容或仍可补发的记录。+2. 手机打开隔空贴,建立连接并接收当前内容或仍可补发的记录。3. 文字点击“复制”,图片点击“复制 / 保存 / 分享”,文件点击“保存到文件 / 分享”。4. 手机切回微信、邮件等目标 App 粘贴;图片能否直接粘贴取决于目标 App 支持的格式。@@ -136,9 +136,9 @@ iOS Share Extension → App Group 中的导入草稿### 5.1 桥接与核心拆分-首选 `gomobile bind`:Android 产出 AAR,iOS 产出 XCFramework,经 Kotlin / Swift 接给 Flutter。桌面仍使用现有 gRPC 适配器;移动端在应用进程内嵌入核心,不启动 `copysyncd` 子进程。+首选 `gomobile bind`:Android 产出 AAR,iOS 产出 XCFramework,经 Kotlin / Swift 接给 Flutter。桌面仍使用现有 gRPC 适配器;移动端在应用进程内嵌入核心,不启动 `pasteferryd` 子进程。-建议新增 `client-core/mobile/` 门面与 `internal/runtime/`,从 `cmd/copysyncd/main.go` 抽出可启停的组装逻辑。门面只暴露绑定支持的基本类型、字节数组、简单接口,不直接暴露 Go 泛型、channel、context 或复杂 Protobuf 类型。+建议新增 `client-core/mobile/` 门面与 `internal/runtime/`,从 `cmd/pasteferryd/main.go` 抽出可启停的组装逻辑。门面只暴露绑定支持的基本类型、字节数组、简单接口,不直接暴露 Go 泛型、channel、context 或复杂 Protobuf 类型。建议接口语义(名称待实现时确定):@@ -300,7 +300,7 @@ Android 首个可用内测目标约 **6–8 周**,两端达到可发布质量- [项目现状与已知限制](../README.zh-CN.md):桌面功能、50 MiB 自动推送、iOS 尚不支持。- [同步引擎](../client-core/internal/sync/engine.go)、[内存补发队列](../client-core/internal/sync/backlog.go):剪贴板输入依赖、自动写入、补发限制。- [Flutter daemon 客户端](../ui/lib/daemon_client.dart)、[后台服务管理](../ui/lib/background_service.dart):桌面进程和本机 RPC 耦合。-- [线上协议](../proto/copysync/v1/wire.proto):签名、配对、offer / fetch、传输结束消息。+- [线上协议](../proto/pasteferry/v1/wire.proto):签名、配对、offer / fetch、传输结束消息。- [平台剪贴板](../client-core/internal/clipboard/darwin.go)、[非 Windows 密钥存储](../client-core/internal/identity/protect_other.go):Cocoa 绑定、移动安全存储改造点。- [Go 依赖](../client-core/go.mod)、[TURN 实现](../server/relay/turn.go):依赖版本与当前 UDP / IPv4 中转配置。diff --git a/design/nat-traversal.md b/design/nat-traversal.mdindex eabeed5..600d3f4 100644--- a/design/nat-traversal.md+++ b/design/nat-traversal.md@@ -37,7 +37,7 @@| 项目 | 结果 ||---|---|| 国内目标 | 同一本地端口发往不同服务器,公网地址与端口都相同:端点无关映射,好打洞 |-| 国外目标 | 经本机的代理出去,与 CopySync 无关 |+| 国外目标 | 经本机的代理出去,与隔空贴无关 || 路由器 | 支持 UPnP,但它自己的外网地址与服务器看到的地址不同:运营商还有一层 NAT,在路由器上映射端口没用 || IPv6 | 只有内网地址 |@@ -72,7 +72,7 @@### 4. 记住见过的出口-某一轮的探测服务器可能恰好都没落到某条线路上(实测出口 D 就时有时无)。本端按「本机各网卡的 IPv4 地址」区分网络,记下每个网络见过的出口 IP 及其是否改写端口,保存 7 天(`~/Library/Application Support/CopySync/egress.json`)。+某一轮的探测服务器可能恰好都没落到某条线路上(实测出口 D 就时有时无)。本端按「本机各网卡的 IPv4 地址」区分网络,记下每个网络见过的出口 IP 及其是否改写端口,保存 7 天(`~/Library/Application Support/PasteFerry/egress.json`)。不改写端口的线路,地址就是「出口 IP + 本地端口」,这一轮没探测到也可以推算出来补发给对端;会改写端口的线路无法推算,不补。@@ -87,7 +87,7 @@### 7. 隐私开关与诊断- 设置「用公共服务器探测网络出口」,默认开启。公共 STUN 服务器能看到本机公网 IP,与任何 WebRTC 应用相同,看不到内容。关闭后只用自己的服务器探测。配置字段 `only_own_stun` 刻意设计为「关闭」语义:旧版界面不发这个字段时,默认值 false 不会把功能误关。-- `copysync-cli nat`(后台接口 `GetNetwork`)显示打洞端口、每个出口的地址与来源,以及各设备当前走直连还是中转。+- `pasteferry-cli nat`(后台接口 `GetNetwork`)显示打洞端口、每个出口的地址与来源,以及各设备当前走直连还是中转。### 8. 落到中转后,再试直连(1.1.1)@@ -200,7 +200,7 @@ NAT 实验室起初没有复现,是因为模拟路由器都丢弃外来的新### NAT 打洞实验室-`tools/natlab/run.sh` 用 Linux 网络命名空间与 iptables 搭出真实拓扑,`client-core/cmd/natlab` 用 CopySync 真实的 P2P 代码扮演两台设备:+`tools/natlab/run.sh` 用 Linux 网络命名空间与 iptables 搭出真实拓扑,`client-core/cmd/natlab` 用隔空贴真实的 P2P 代码扮演两台设备:```[a] 192.168.10.2 ── [rA] 出口 10.255.0.11–14 ──┐diff --git a/design/uu-remote-clipboard.md b/design/uu-remote-clipboard.mdindex 8bc711a..e9490aa 100644--- a/design/uu-remote-clipboard.md+++ b/design/uu-remote-clipboard.md@@ -4,9 +4,9 @@2026-10-10 用户反馈:Windows 复制文件,在 UU 远程开启时,Mac 复制记录每秒新增 `.uuremote_aeawv` 加数字的文件。截图涵盖 1.1 GB 安装包、5.1 KB 源码和 810 KB 压缩包,不能据此归因于大文件阈值。-只读检查本机 CopySync 数据库,发现 92 条匹配项;最近样本的源路径位于 `~/Library/Application Support/com.netease.uuremote.server/Clipboard/`。仍存在的样本为 0 字节普通文件,其余部分已经被移走或删除。未读取用户文件内容。+只读检查本机隔空贴数据库,发现 92 条匹配项;最近样本的源路径位于 `~/Library/Application Support/com.netease.uuremote.server/Clipboard/`。仍存在的样本为 0 字节普通文件,其余部分已经被移走或删除。未读取用户文件内容。-旧实现只对自己写入时的剪贴板变更计数去重。UU 再次写入新的占位路径后,计数变化,CopySync 会扫描、生成新 ID、入库并向配对端发送;0 字节记录满足自动推送条件。这解释了记录增长以及两套剪贴板同步共同作用时的循环入口。这里没有读取或解析 UU 的 UDP 流量。+旧实现只对自己写入时的剪贴板变更计数去重。UU 再次写入新的占位路径后,计数变化,隔空贴会扫描、生成新 ID、入库并向配对端发送;0 字节记录满足自动推送条件。这解释了记录增长以及两套剪贴板同步共同作用时的循环入口。这里没有读取或解析 UU 的 UDP 流量。50 MB 只控制 `WillPush`,不是允许进入复制记录的大小上限。超过阈值的真实文件应只公告元数据,按需拉取。UDP P2P 设置不需要改动。@@ -15,7 +15,7 @@- 在本机内容入库之前按文件名匹配 `.uuremote_aeawv` 加非空 ASCII 数字后缀,排除后再扫描和发送。纯占位选择安静跳过,混合选择保留正常文件。匹配同时支持 Windows 与 macOS 路径。- 不按空文件、隐藏属性、临时目录或 UU 整个应用目录粗略排除;其他相似文件名(如 `.uuremote_aeawv123.backup`)保留。- 接收旧版客户端的纯占位 offer 时不入库,不发布 UI 事件。未被接纳的传输头不创建接收器、不分配缓存目录。-- 打开历史数据库时删除所有文件条目均匹配该命名的文件记录,级联清理其条目。普通记录、无条目记录、混合选择保留。只删除记录;UU 的源文件不动,CopySync 的孤儿缓存由现有 GC 回收。+- 打开历史数据库时删除所有文件条目均匹配该命名的文件记录,级联清理其条目。普通记录、无条目记录、混合选择保留。只删除记录;UU 的源文件不动,隔空贴的孤儿缓存由现有 GC 回收。- 两端都应升级。未知占位命名和其他软件对普通内容的重复同步不在本次精确过滤范围内;必要时只保留一个工具负责剪贴板同步。设备间协议没有变化,服务器无需升级。macOS/Windows 客户端版本为 1.3.2。diff --git a/design/windows-client.md b/design/windows-client.mdindex 010eb70..31dbd4a 100644--- a/design/windows-client.md+++ b/design/windows-client.md@@ -6,10 +6,10 @@## 一、目标-让 Windows 电脑加入 CopySync:与 Mac、与其他 Windows 电脑互相同步文本、带格式文本、图片和文件,体验与 Mac 版一致。+让 Windows 电脑加入隔空贴:与 Mac、与其他 Windows 电脑互相同步文本、带格式文本、图片和文件,体验与 Mac 版一致。- 在一台上 `Ctrl+C`,另一台上 `Ctrl+V`(或 `⌘V`)。粘贴文件时得到的是真实文件,可以直接粘贴进资源管理器、微信、Office。-- 开机自启,关掉窗口照常同步,崩溃自动拉起。Windows 安装时创建桌面快捷方式;后台服务持有托盘图标,点击可打开界面,右键可打开界面或退出 CopySync。+- 开机自启,关掉窗口照常同步,崩溃自动拉起。Windows 安装时创建桌面快捷方式;后台服务持有托盘图标,点击可打开界面,右键可打开界面或退出隔空贴。- 网络行为与 Mac 版完全相同:直连优先、多出口打洞、自动中转、端到端加密。- 与 Mac 版互通,Mac 端不升级也能和 Windows 配对、同步(协议不变)。@@ -28,8 +28,8 @@后台服务除剪贴板外全部是纯 Go:数据库用的是纯 Go 的 `modernc.org/sqlite`,压缩是纯 Go 的 zstd,cgo 只出现在 `internal/clipboard/darwin.go`。实测在 Mac 上已经可以直接交叉编译出 Windows 版:```-CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build ./cmd/... # copysyncd.exe、copysync-cli.exe-CGO_ENABLED=0 GOOS=windows GOARCH=arm64 go build ./cmd/copysyncd+CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build ./cmd/... # pasteferryd.exe、pasteferry-cli.exe+CGO_ENABLED=0 GOOS=windows GOARCH=arm64 go build ./cmd/pasteferryd```| 模块 | Windows 上 | 说明 |@@ -38,10 +38,10 @@ CGO_ENABLED=0 GOOS=windows GOARCH=arm64 go build ./cmd/copysyncd| P2P、出口探测、打洞、中转(`transport/p2p`) | 直接复用 | 防火墙与虚拟网卡见第七节 || 同步引擎、补发、存储、缓存、回收(`sync`、`store`、`cache`、`gc`) | 直接复用 | || 本机接口(`rpc`,127.0.0.1 + 一次性 token) | 直接复用 | |-| 数据目录(`config.DefaultPaths`) | 已有 Windows 分支 | `%LOCALAPPDATA%\CopySync` |+| 数据目录(`config.DefaultPaths`) | 已有 Windows 分支 | `%LOCALAPPDATA%\PasteFerry` || 打包解包(`pack`) | 要改 | 文件名、符号链接,见第五节 || 剪贴板(`clipboard`) | **要新写** | 目前是返回「不支持」的占位实现,见第四节 |-| 进程生命周期(`cmd/copysyncd`) | 要改 | 自启、守护、日志、单实例、注销,见第六节 |+| 进程生命周期(`cmd/pasteferryd`) | 要改 | 自启、守护、日志、单实例、注销,见第六节 || 界面(`ui/`) | 要改 | 已有 Flutter 的 `windows/` 工程骨架;后台服务管理、窗口外观、文案,见第八节 || 构建与发布(`scripts/`、CI) | 要新写 | Flutter 的 Windows 版只能在 Windows 上构建,见第十节 |@@ -50,15 +50,15 @@ CGO_ENABLED=0 GOOS=windows GOARCH=arm64 go build ./cmd/copysyncd与 Mac 版同构,三个可执行文件:```-CopySync.exe(Flutter 界面)- │ gRPC,127.0.0.1 随机端口 + token(%LOCALAPPDATA%\CopySync\daemon.json)+PasteFerry.exe(Flutter 界面)+ │ gRPC,127.0.0.1 随机端口 + token(%LOCALAPPDATA%\PasteFerry\daemon.json)▼-copysyncd.exe(Go 后台服务,用户会话内运行,无控制台窗口)+pasteferryd.exe(Go 后台服务,用户会话内运行,无控制台窗口)├─ 剪贴板:隐藏的消息窗口 + Win32 剪贴板 API├─ 同步引擎 / 存储 / 缓存└─ 信令(WebSocket)+ P2P(WebRTC)──► 信令服务器 / 对端设备-copysync-cli.exe(命令行,排障用)+pasteferry-cli.exe(命令行,排障用)```后台服务必须作为**登录用户的普通进程**运行,不能做成 Windows 服务。Windows 服务运行在会话 0,与用户桌面隔离,访问不到用户的剪贴板。这与 Mac 上用 LaunchAgent、不用 LaunchDaemon 是同一个原因。@@ -141,10 +141,10 @@ copysync-cli.exe(命令行,排障用)| 需求 | Mac 版的做法 | Windows 版的做法 ||---|---|---|| 开机自启 | LaunchAgent | `HKCU\Software\Microsoft\Windows\CurrentVersion\Run` 下写一项。只影响当前用户,不需要管理员权限 |-| 崩溃自动拉起 | launchd `KeepAlive`,10 秒节流 | `copysyncd.exe` 自带守护模式:父进程拉起子进程,子进程异常退出就 10 秒后重启 |-| 只运行一个 | launchd 保证 | 命名互斥量 `Local\CopySync.Daemon`,第二个实例直接退出 |+| 崩溃自动拉起 | launchd `KeepAlive`,10 秒节流 | `pasteferryd.exe` 自带守护模式:父进程拉起子进程,子进程异常退出就 10 秒后重启 |+| 只运行一个 | launchd 保证 | 命名互斥量 `Local\PasteFerry.Daemon`,第二个实例直接退出 || 不弹黑框 | 本来就没有 | 以 GUI 子系统编译(`-ldflags -H=windowsgui`) |-| 日志 | launchd 把标准输出重定向到文件 | 自己写 `%LOCALAPPDATA%\CopySync\logs\daemon.log`,按大小轮转(Mac 版的日志目前不轮转,一并加上) |+| 日志 | launchd 把标准输出重定向到文件 | 自己写 `%LOCALAPPDATA%\PasteFerry\logs\daemon.log`,按大小轮转(Mac 版的日志目前不轮转,一并加上) || 注销、关机 | SIGTERM | 隐藏窗口处理 `WM_QUERYENDSESSION`/`WM_ENDSESSION`,正常收尾 || 睡眠唤醒 | 靠重连巡检 | 处理 `WM_POWERBROADCAST`:唤醒后立即重新探测出口、重连,不等巡检 || 升级 | 打开新版 App 时校正登录项并重启服务 | 安装程序借助「重启管理器」关掉旧进程,装完再启动;界面同样校验版本、必要时重启服务 |@@ -183,8 +183,8 @@ Mac 版刻意做成系统自带应用的样子(石墨 + 系统蓝、透明标| 状态 | 判定 ||---|---|-| 未安装 | `Run` 下没有 CopySync 项 |-| 指向旧位置 | `Run` 项的路径不是当前这份 `copysyncd.exe` |+| 未安装 | `Run` 下没有隔空贴项 |+| 指向旧位置 | `Run` 项的路径不是当前这份 `pasteferryd.exe` || 已停止 | `daemon.json` 不存在,或其中的进程号已不在运行 || 运行中 | 能连上,且版本与界面一致(不一致就重启服务) |@@ -211,11 +211,11 @@ Mac 版刻意做成系统自带应用的样子(石墨 + 系统蓝、透明标用 Inno Setup 做**按用户安装**的安装包(类似 VS Code 的「用户安装版」):-- 装到 `%LOCALAPPDATA%\Programs\CopySync`,不需要管理员权限,不弹 UAC。-- 创建开始菜单项;装完直接打开 CopySync,由界面引导「启用后台同步」,流程与 Mac 一致。+- 装到 `%LOCALAPPDATA%\Programs\PasteFerry`,不需要管理员权限,不弹 UAC。+- 创建开始菜单项;装完直接打开隔空贴,由界面引导「启用后台同步」,流程与 Mac 一致。- 卸载时停掉后台服务、删掉自启项,询问是否保留复制记录与设备身份。- 另出一个 zip 便携版,给不想运行安装程序的人。-- 界面程序依赖 VC++ 运行库(`msvcp140.dll`、`vcruntime140.dll`、`vcruntime140_1.dll`),Windows 不一定自带。构建时从 Visual Studio 里取这三个 DLL 放在 `CopySync.exe` 旁边(微软说的「应用本地部署」),安装包与便携版都带着,不用另装系统级的运行库。+- 界面程序依赖 VC++ 运行库(`msvcp140.dll`、`vcruntime140.dll`、`vcruntime140_1.dll`),Windows 不一定自带。构建时从 Visual Studio 里取这三个 DLL 放在 `PasteFerry.exe` 旁边(微软说的「应用本地部署」),安装包与便携版都带着,不用另装系统级的运行库。也评估过 MSIX:好处是安装干净、能自动更新;但要求必须有受信任的签名证书,且应用写入 `%LOCALAPPDATA%` 的数据会被重定向到包的私有目录,命令行工具与后台服务对不上路径。一期不用。@@ -235,7 +235,7 @@ Flutter 的 Windows 版只能在 Windows 上构建,现有的 `scripts/package.- 新增 GitHub Actions 任务(`windows-latest`):编译 Go(`GOOS=windows`)→ `flutter build windows` → Inno Setup 打包 → 上传到同一个 Release。- 发布时在 Mac 上照常运行 `package.sh` 出 DMG,推送标签后 CI 补上 Windows 包。-- 发布资源沿用「不带版本号」的命名,下载直链不会失效:`CopySync-Setup.exe`、`CopySync-windows-x64.zip`。+- 发布资源沿用「不带版本号」的命名,下载直链不会失效:`PasteFerry-Setup.exe`、`PasteFerry-windows-x64.zip`。- CI 的常规检查增加 Windows:`go vet`、`go test`、`flutter analyze`、`flutter test`。## 十一、测试与验证@@ -255,7 +255,7 @@ Flutter 的 Windows 版只能在 Windows 上构建,现有的 `scripts/package.| 阶段 | 内容 | 产出 | 估时 ||---|---|---|---|-| M1 | 剪贴板实现(第四节)与后台服务生命周期(第六节) | `copysyncd.exe` 在 Windows 上跑通:用 `copysync-cli` 能与 Mac 配对、互相同步文本与图片 | 2 周 |+| M1 | 剪贴板实现(第四节)与后台服务生命周期(第六节) | `pasteferryd.exe` 在 Windows 上跑通:用 `pasteferry-cli` 能与 Mac 配对、互相同步文本与图片 | 2 周 || M2 | 文件与内容兼容(第五节)、敏感内容过滤 | 联调清单里的内容类全部通过 | 1 周 || M3 | 界面适配(第八节) | Windows 外观的界面,能启用、管理后台服务 | 1.5 周 || M4 | 安装包、CI、文档与网站 | Release 里出现 Windows 安装包,README 与网站补上 Windows | 1 周 |@@ -280,7 +280,7 @@ M1 结束时就能验证最大的不确定点:剪贴板方案、防火墙行| `client-core/internal/pack/pack.go` | 文件名清洗、符号链接、垃圾文件过滤 || `client-core/internal/transport/p2p/egress_history.go` | 网络标识排除虚拟网卡 || `client-core/internal/identity/identity.go` | Windows 上用 DPAPI 保护私钥 |-| `client-core/cmd/copysyncd/main.go` | 守护模式、单实例、日志文件、会话结束与电源事件 |+| `client-core/cmd/pasteferryd/main.go` | 守护模式、单实例、日志文件、会话结束与电源事件 || `ui/lib/background_service.dart` | 拆成接口与 Mac、Windows 两个实现 || `ui/lib/theme.dart`、`ui/lib/main.dart` | 平台外观、自绘标题栏 || `ui/windows/runner/` | Mica 背景、窗口尺寸记忆、应用图标 |diff --git a/design/windows-features-validation-2026-10-09.md b/design/windows-features-validation-2026-10-09.mdindex a2a596c..f07fd33 100644--- a/design/windows-features-validation-2026-10-09.md+++ b/design/windows-features-validation-2026-10-09.md@@ -6,9 +6,9 @@| 功能 | 验证结果 ||---|---|-| 桌面快捷方式 | 升级安装自动生成 CopySync.lnk,目标指向当前用户安装目录;实际双击入口可启动界面 |+| 桌面快捷方式 | 升级安装自动生成 PasteFerry.lnk,目标指向当前用户安装目录;实际双击入口可启动界面 || 托盘图标 | 后台服务持有图标;关闭界面后保留,点击可重开界面 |-| 托盘菜单 | 实际显示“打开 CopySync”“退出 CopySync”;退出后界面、daemon、守护进程均结束,等待 12 秒不重启,图标清理正常;恢复启动后原配对正常 |+| 托盘菜单 | 实际显示“打开隔空贴”“退出隔空贴”;退出后界面、daemon、守护进程均结束,等待 12 秒不重启,图标清理正常;恢复启动后原配对正常 || Explorer 重建通知 | 发送 TaskbarCreated 后图标仍可用;未强制重启用户的 Explorer || 配对弹窗 | Windows 实际生成配对码,临时 Mac 端兑换,Windows 核对指纹并确认后返回设备页;显示配对成功且没有残留弹窗 || 输入配对码的竞态 | Mac 和 Windows 上的回归测试覆盖 RPC/事件先后顺序、重复事件、接受/拒绝、过期和处理旧会话时新请求到达,均只显示一个确认框 |@@ -30,9 +30,9 @@Windows 本地测试包已安装:新的 Dart AOT/资源和同版本 Flutter 引擎,配合原 CI 的未修改原生 runner、新编译 daemon 及当前 Inno Setup 安装脚本。版本仍为 1.1.2,属于本地验证产物,发布应使用正式发布流程重建。-- 安装包:`~/Library/Caches/copysync-tray-20261009/artifacts/CopySync-Setup.exe`+- 安装包:`~/Library/Caches/pasteferry-tray-20261009/artifacts/PasteFerry-Setup.exe`- SHA-256:`0b8fb27c7449b252df392bb21b914c16bcd0d4d03b42bf834655474c80a6f68a`- 便携包 SHA-256:`206a38abdc37e94418c8b3ebd63cf9a801816c3ec63bfc0be30f06808c42b722`-- 日志与截图:`~/Library/Caches/copysync-tray-20261009/` 和 `~/Library/Caches/copysync-validation-20261009/`。+- 日志与截图:`~/Library/Caches/pasteferry-tray-20261009/` 和 `~/Library/Caches/pasteferry-validation-20261009/`。临时测试设备已从 Windows 解除配对,临时 Mac daemon 已停止,临时编译器已卸载;Windows 与用户原 Mac 恢复直连。Mac 正在使用的生产 App/daemon 未替换,Mac 新界面修复需安装新构建后生效。Windows 桌面由 Parallels 共享,快捷方式位于其映射的桌面目录。托盘图标可能由 Windows 收纳在右下角“^”内。diff --git a/design/windows-validation-2026-10-09.md b/design/windows-validation-2026-10-09.mdindex de8716d..9f53cc0 100644--- a/design/windows-validation-2026-10-09.md+++ b/design/windows-validation-2026-10-09.md@@ -42,20 +42,20 @@`readImage` 固定先请求 `CF_DIBV5`。当 Windows 从普通 `CF_DIB` / `CF_BITMAP` 自动合成该格式时,实测在 124 字节头部之后仍留有 12 字节颜色掩码;读取方把它当成像素,图片整体错位。-复现:用 Windows Forms 把 16×16 彩色位图放入系统剪贴板,通过正式安装的 daemon 传至 Mac 测试实例。源图 `(0,0)` 为 `{0,0,0,255}`,收到 `{221,17,112,255}`。Windows 原生读取该源图像素正确,证明问题位于 CopySync 的格式选择。原有 PNG 往返测试绕过了此路径。+复现:用 Windows Forms 把 16×16 彩色位图放入系统剪贴板,通过正式安装的 daemon 传至 Mac 测试实例。源图 `(0,0)` 为 `{0,0,0,255}`,收到 `{221,17,112,255}`。Windows 原生读取该源图像素正确,证明问题位于隔空贴的格式选择。原有 PNG 往返测试绕过了此路径。修复:PNG 仍优先;其余位图遵循 `EnumClipboardFormats` 的顺序,优先读取原生格式,再尝试系统合成格式。保留原生 DIBV5 的透明度,不猜测内存偏移。新增 `TestWindowsNativeBitmap`,覆盖无 PNG 后备的普通 DIB 和带透明度的原生 DIBV5。虚拟机上旧实现的 DIB 子用例失败,新实现两个子用例均通过,随后原生 Windows Forms 位图的端到端逐像素比较通过。-代码检查:Mac 的 `go test ./internal/clipboard ./internal/pack`,Windows 目标的 `go vet ./internal/clipboard ./cmd/copysyncd`,以及虚拟机内完整 Windows 剪贴板测试全部通过。+代码检查:Mac 的 `go test ./internal/clipboard ./internal/pack`,Windows 目标的 `go vet ./internal/clipboard ./cmd/pasteferryd`,以及虚拟机内完整 Windows 剪贴板测试全部通过。## 结束状态- Windows 已恢复用户原有的数据、身份、配对关系和自启项,正在运行修复后的客户端,并与原 Mac 直连。- Mac 原生产 daemon 的 PID 始终为 10576,未重启或改动;Mac 测试 daemon 和测试信令服务已退出。-- Parallels 共享剪贴板保持关闭,避免与 CopySync 同时转发内容。此设置需由用户手动调整。-- 测试数据归档保留在虚拟机 `C:\CopySyncValidation-20261009\test-data-completed`,可用于复现;原用户数据已移回正常目录。+- Parallels 共享剪贴板保持关闭,避免与隔空贴同时转发内容。此设置需由用户手动调整。+- 测试数据归档保留在虚拟机 `C:\PasteFerryValidation-20261009\test-data-completed`,可用于复现;原用户数据已移回正常目录。- 修改留在 `windows` 分支工作区,未提交、推送或发布。## 安装包与证据@@ -64,6 +64,6 @@- 修复安装包 SHA-256:`8e9d690dd16675330e2b6f2c6fdb1a1e99387c650851b1431e36f0fa62b782a1`- 修复便携包 SHA-256:`479235d1cc0ecd35114a263a33572db6d9fe02ef721d4eb794e82c57a636deee`-- 本机证据目录:`~/Library/Caches/copysync-validation-20261009/`,含安装日志、回归测试前后日志、同步断言、图片及脚本。+- 本机证据目录:`~/Library/Caches/pasteferry-validation-20261009/`,含安装日志、回归测试前后日志、同步断言、图片及脚本。本轮 Mac 端使用文件剪贴板测试适配器;Windows 端使用真实系统剪贴板。实际 Mac 系统剪贴板交互和公网中转不属于本轮测试范围。diff --git a/docs/assets/icon.svg b/docs/assets/icon.svgindex 67f31c8..239ed36 100644--- a/docs/assets/icon.svg+++ b/docs/assets/icon.svg@@ -1,4 +1,4 @@-<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1024 1024" role="img" aria-label="CopySync">+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1024 1024" role="img" aria-label="PasteFerry"><!-- 几何与 tools/icon/render.swift 一一对应,改动时两边同步 --><defs><linearGradient id="body" x1="0" y1="100" x2="0" y2="924" gradientUnits="userSpaceOnUse">diff --git a/docs/assets/og-en.png b/docs/assets/og-en.pngindex a2dedf0..482fad1 100644Binary files a/docs/assets/og-en.png and b/docs/assets/og-en.png differdiff --git a/docs/assets/og-zh-hant.png b/docs/assets/og-zh-hant.pngindex e1cd506..d19d9b7 100644Binary files a/docs/assets/og-zh-hant.png and b/docs/assets/og-zh-hant.png differdiff --git a/docs/assets/og.png b/docs/assets/og.pngindex cea9427..0ccea53 100644Binary files a/docs/assets/og.png and b/docs/assets/og.png differdiff --git a/docs/assets/screenshots/devices.png b/docs/assets/screenshots/devices.pngindex 1990e38..37727af 100644Binary files a/docs/assets/screenshots/devices.png and b/docs/assets/screenshots/devices.png differdiff --git a/docs/assets/screenshots/en/devices.png b/docs/assets/screenshots/en/devices.pngindex 8648ad7..1f69dac 100644Binary files a/docs/assets/screenshots/en/devices.png and b/docs/assets/screenshots/en/devices.png differdiff --git a/docs/assets/screenshots/en/history-dark.png b/docs/assets/screenshots/en/history-dark.pngindex 1dc3bc0..4bff9db 100644Binary files a/docs/assets/screenshots/en/history-dark.png and b/docs/assets/screenshots/en/history-dark.png differdiff --git a/docs/assets/screenshots/en/history.png b/docs/assets/screenshots/en/history.pngindex 072fa6c..e59f0ea 100644Binary files a/docs/assets/screenshots/en/history.png and b/docs/assets/screenshots/en/history.png differdiff --git a/docs/assets/screenshots/en/nearby-dark.png b/docs/assets/screenshots/en/nearby-dark.pngindex d0710cb..13b73b4 100644Binary files a/docs/assets/screenshots/en/nearby-dark.png and b/docs/assets/screenshots/en/nearby-dark.png differdiff --git a/docs/assets/screenshots/en/nearby.png b/docs/assets/screenshots/en/nearby.pngindex f81c258..7ff3791 100644Binary files a/docs/assets/screenshots/en/nearby.png and b/docs/assets/screenshots/en/nearby.png differdiff --git a/docs/assets/screenshots/en/pairing-dark.png b/docs/assets/screenshots/en/pairing-dark.pngindex 3e2ede9..6cf451a 100644Binary files a/docs/assets/screenshots/en/pairing-dark.png and b/docs/assets/screenshots/en/pairing-dark.png differdiff --git a/docs/assets/screenshots/en/pairing-join-dark.png b/docs/assets/screenshots/en/pairing-join-dark.pngindex 966cafb..eb41f43 100644Binary files a/docs/assets/screenshots/en/pairing-join-dark.png and b/docs/assets/screenshots/en/pairing-join-dark.png differdiff --git a/docs/assets/screenshots/en/pairing-join-ts-dark.png b/docs/assets/screenshots/en/pairing-join-ts-dark.pngindex 62ad014..0c070a4 100644Binary files a/docs/assets/screenshots/en/pairing-join-ts-dark.png and b/docs/assets/screenshots/en/pairing-join-ts-dark.png differdiff --git a/docs/assets/screenshots/en/pairing.png b/docs/assets/screenshots/en/pairing.pngindex 989f924..c767694 100644Binary files a/docs/assets/screenshots/en/pairing.png and b/docs/assets/screenshots/en/pairing.png differdiff --git a/docs/assets/screenshots/en/settings-cloud-dark.png b/docs/assets/screenshots/en/settings-cloud-dark.pngindex 9a05f94..61f213d 100644Binary files a/docs/assets/screenshots/en/settings-cloud-dark.png and b/docs/assets/screenshots/en/settings-cloud-dark.png differdiff --git a/docs/assets/screenshots/en/settings-lan-dark.png b/docs/assets/screenshots/en/settings-lan-dark.pngindex 121d00b..556b1bf 100644Binary files a/docs/assets/screenshots/en/settings-lan-dark.png and b/docs/assets/screenshots/en/settings-lan-dark.png differdiff --git a/docs/assets/screenshots/en/settings.png b/docs/assets/screenshots/en/settings.pngindex fbbb8ac..d14c3c7 100644Binary files a/docs/assets/screenshots/en/settings.png and b/docs/assets/screenshots/en/settings.png differdiff --git a/docs/assets/screenshots/en/verify.png b/docs/assets/screenshots/en/verify.pngindex a5f4542..d10377d 100644Binary files a/docs/assets/screenshots/en/verify.png and b/docs/assets/screenshots/en/verify.png differdiff --git a/docs/assets/screenshots/en/welcome-dark.png b/docs/assets/screenshots/en/welcome-dark.pngindex fce66a1..2408063 100644Binary files a/docs/assets/screenshots/en/welcome-dark.png and b/docs/assets/screenshots/en/welcome-dark.png differdiff --git a/docs/assets/screenshots/en/welcome.png b/docs/assets/screenshots/en/welcome.pngindex 28e3696..cb31810 100644Binary files a/docs/assets/screenshots/en/welcome.png and b/docs/assets/screenshots/en/welcome.png differdiff --git a/docs/assets/screenshots/history-dark.png b/docs/assets/screenshots/history-dark.pngindex fd35c8c..f7b6a6c 100644Binary files a/docs/assets/screenshots/history-dark.png and b/docs/assets/screenshots/history-dark.png differdiff --git a/docs/assets/screenshots/history.png b/docs/assets/screenshots/history.pngindex b119b53..2a16df8 100644Binary files a/docs/assets/screenshots/history.png and b/docs/assets/screenshots/history.png differdiff --git a/docs/assets/screenshots/ja/devices.png b/docs/assets/screenshots/ja/devices.pngindex a7e6e4c..93be021 100644Binary files a/docs/assets/screenshots/ja/devices.png and b/docs/assets/screenshots/ja/devices.png differdiff --git a/docs/assets/screenshots/ja/history-dark.png b/docs/assets/screenshots/ja/history-dark.pngindex 0c492a7..363330d 100644Binary files a/docs/assets/screenshots/ja/history-dark.png and b/docs/assets/screenshots/ja/history-dark.png differdiff --git a/docs/assets/screenshots/ja/history.png b/docs/assets/screenshots/ja/history.pngindex 5846000..b3389ca 100644Binary files a/docs/assets/screenshots/ja/history.png and b/docs/assets/screenshots/ja/history.png differdiff --git a/docs/assets/screenshots/ja/nearby-dark.png b/docs/assets/screenshots/ja/nearby-dark.pngindex a826bfe..d57f800 100644Binary files a/docs/assets/screenshots/ja/nearby-dark.png and b/docs/assets/screenshots/ja/nearby-dark.png differdiff --git a/docs/assets/screenshots/ja/nearby.png b/docs/assets/screenshots/ja/nearby.pngindex 2ec08ec..f284697 100644Binary files a/docs/assets/screenshots/ja/nearby.png and b/docs/assets/screenshots/ja/nearby.png differdiff --git a/docs/assets/screenshots/ja/pairing-dark.png b/docs/assets/screenshots/ja/pairing-dark.pngindex 6006160..02fd733 100644Binary files a/docs/assets/screenshots/ja/pairing-dark.png and b/docs/assets/screenshots/ja/pairing-dark.png differdiff --git a/docs/assets/screenshots/ja/pairing-join-dark.png b/docs/assets/screenshots/ja/pairing-join-dark.pngindex 4cb1ae0..e41b978 100644Binary files a/docs/assets/screenshots/ja/pairing-join-dark.png and b/docs/assets/screenshots/ja/pairing-join-dark.png differdiff --git a/docs/assets/screenshots/ja/pairing-join-ts-dark.png b/docs/assets/screenshots/ja/pairing-join-ts-dark.pngindex 623fa59..33e761a 100644Binary files a/docs/assets/screenshots/ja/pairing-join-ts-dark.png and b/docs/assets/screenshots/ja/pairing-join-ts-dark.png differdiff --git a/docs/assets/screenshots/ja/pairing.png b/docs/assets/screenshots/ja/pairing.pngindex 79b8cd3..478d969 100644Binary files a/docs/assets/screenshots/ja/pairing.png and b/docs/assets/screenshots/ja/pairing.png differdiff --git a/docs/assets/screenshots/ja/settings-cloud-dark.png b/docs/assets/screenshots/ja/settings-cloud-dark.pngindex 023659b..df875d4 100644Binary files a/docs/assets/screenshots/ja/settings-cloud-dark.png and b/docs/assets/screenshots/ja/settings-cloud-dark.png differdiff --git a/docs/assets/screenshots/ja/settings-lan-dark.png b/docs/assets/screenshots/ja/settings-lan-dark.pngindex 6225703..57dd37a 100644Binary files a/docs/assets/screenshots/ja/settings-lan-dark.png and b/docs/assets/screenshots/ja/settings-lan-dark.png differdiff --git a/docs/assets/screenshots/ja/settings.png b/docs/assets/screenshots/ja/settings.pngindex dd175de..08ea187 100644Binary files a/docs/assets/screenshots/ja/settings.png and b/docs/assets/screenshots/ja/settings.png differdiff --git a/docs/assets/screenshots/ja/verify.png b/docs/assets/screenshots/ja/verify.pngindex 1b881a6..bb25a16 100644Binary files a/docs/assets/screenshots/ja/verify.png and b/docs/assets/screenshots/ja/verify.png differdiff --git a/docs/assets/screenshots/ja/welcome-dark.png b/docs/assets/screenshots/ja/welcome-dark.pngindex 731a29d..75e35b5 100644Binary files a/docs/assets/screenshots/ja/welcome-dark.png and b/docs/assets/screenshots/ja/welcome-dark.png differdiff --git a/docs/assets/screenshots/ja/welcome.png b/docs/assets/screenshots/ja/welcome.pngindex 0adbf4f..d367dbb 100644Binary files a/docs/assets/screenshots/ja/welcome.png and b/docs/assets/screenshots/ja/welcome.png differdiff --git a/docs/assets/screenshots/nearby-dark.png b/docs/assets/screenshots/nearby-dark.pngindex c220c98..5debf7a 100644Binary files a/docs/assets/screenshots/nearby-dark.png and b/docs/assets/screenshots/nearby-dark.png differdiff --git a/docs/assets/screenshots/nearby.png b/docs/assets/screenshots/nearby.pngindex f212057..1a02be8 100644Binary files a/docs/assets/screenshots/nearby.png and b/docs/assets/screenshots/nearby.png differdiff --git a/docs/assets/screenshots/pairing-dark.png b/docs/assets/screenshots/pairing-dark.pngindex f015db2..11d80c9 100644Binary files a/docs/assets/screenshots/pairing-dark.png and b/docs/assets/screenshots/pairing-dark.png differdiff --git a/docs/assets/screenshots/pairing-join-dark.png b/docs/assets/screenshots/pairing-join-dark.pngindex a7c0408..f24a5a0 100644Binary files a/docs/assets/screenshots/pairing-join-dark.png and b/docs/assets/screenshots/pairing-join-dark.png differdiff --git a/docs/assets/screenshots/pairing-join-ts-dark.png b/docs/assets/screenshots/pairing-join-ts-dark.pngindex 96b4e25..476f448 100644Binary files a/docs/assets/screenshots/pairing-join-ts-dark.png and b/docs/assets/screenshots/pairing-join-ts-dark.png differdiff --git a/docs/assets/screenshots/pairing.png b/docs/assets/screenshots/pairing.pngindex fc3c2ae..7aea2b5 100644Binary files a/docs/assets/screenshots/pairing.png and b/docs/assets/screenshots/pairing.png differdiff --git a/docs/assets/screenshots/settings-cloud-dark.png b/docs/assets/screenshots/settings-cloud-dark.pngindex bdb3762..179f32a 100644Binary files a/docs/assets/screenshots/settings-cloud-dark.png and b/docs/assets/screenshots/settings-cloud-dark.png differdiff --git a/docs/assets/screenshots/settings-lan-dark.png b/docs/assets/screenshots/settings-lan-dark.pngindex 42cdbca..e0cadca 100644Binary files a/docs/assets/screenshots/settings-lan-dark.png and b/docs/assets/screenshots/settings-lan-dark.png differdiff --git a/docs/assets/screenshots/settings.png b/docs/assets/screenshots/settings.pngindex 652076e..79abb40 100644Binary files a/docs/assets/screenshots/settings.png and b/docs/assets/screenshots/settings.png differdiff --git a/docs/assets/screenshots/verify.png b/docs/assets/screenshots/verify.pngindex f109bf9..e36967c 100644Binary files a/docs/assets/screenshots/verify.png and b/docs/assets/screenshots/verify.png differdiff --git a/docs/assets/screenshots/welcome-dark.png b/docs/assets/screenshots/welcome-dark.pngindex 49da71c..426cbe4 100644Binary files a/docs/assets/screenshots/welcome-dark.png and b/docs/assets/screenshots/welcome-dark.png differdiff --git a/docs/assets/screenshots/welcome.png b/docs/assets/screenshots/welcome.pngindex e8e7a30..da168f2 100644Binary files a/docs/assets/screenshots/welcome.png and b/docs/assets/screenshots/welcome.png differdiff --git a/docs/assets/screenshots/zh-hk/devices.png b/docs/assets/screenshots/zh-hk/devices.pngindex 36adea2..2fb1b9a 100644Binary files a/docs/assets/screenshots/zh-hk/devices.png and b/docs/assets/screenshots/zh-hk/devices.png differdiff --git a/docs/assets/screenshots/zh-hk/history-dark.png b/docs/assets/screenshots/zh-hk/history-dark.pngindex 37c08b4..d4817cb 100644Binary files a/docs/assets/screenshots/zh-hk/history-dark.png and b/docs/assets/screenshots/zh-hk/history-dark.png differdiff --git a/docs/assets/screenshots/zh-hk/history.png b/docs/assets/screenshots/zh-hk/history.pngindex daf2a03..55eb433 100644Binary files a/docs/assets/screenshots/zh-hk/history.png and b/docs/assets/screenshots/zh-hk/history.png differdiff --git a/docs/assets/screenshots/zh-hk/nearby-dark.png b/docs/assets/screenshots/zh-hk/nearby-dark.pngindex 756fe33..59afb7c 100644Binary files a/docs/assets/screenshots/zh-hk/nearby-dark.png and b/docs/assets/screenshots/zh-hk/nearby-dark.png differdiff --git a/docs/assets/screenshots/zh-hk/nearby.png b/docs/assets/screenshots/zh-hk/nearby.pngindex c1e41ca..9e6d2de 100644Binary files a/docs/assets/screenshots/zh-hk/nearby.png and b/docs/assets/screenshots/zh-hk/nearby.png differdiff --git a/docs/assets/screenshots/zh-hk/pairing-dark.png b/docs/assets/screenshots/zh-hk/pairing-dark.pngindex 7906bef..dc067d2 100644Binary files a/docs/assets/screenshots/zh-hk/pairing-dark.png and b/docs/assets/screenshots/zh-hk/pairing-dark.png differdiff --git a/docs/assets/screenshots/zh-hk/pairing-join-dark.png b/docs/assets/screenshots/zh-hk/pairing-join-dark.pngindex 66ea826..246882e 100644Binary files a/docs/assets/screenshots/zh-hk/pairing-join-dark.png and b/docs/assets/screenshots/zh-hk/pairing-join-dark.png differdiff --git a/docs/assets/screenshots/zh-hk/pairing-join-ts-dark.png b/docs/assets/screenshots/zh-hk/pairing-join-ts-dark.pngindex 2fc851f..39b6fd5 100644Binary files a/docs/assets/screenshots/zh-hk/pairing-join-ts-dark.png and b/docs/assets/screenshots/zh-hk/pairing-join-ts-dark.png differdiff --git a/docs/assets/screenshots/zh-hk/pairing.png b/docs/assets/screenshots/zh-hk/pairing.pngindex d31b9c7..afff579 100644Binary files a/docs/assets/screenshots/zh-hk/pairing.png and b/docs/assets/screenshots/zh-hk/pairing.png differdiff --git a/docs/assets/screenshots/zh-hk/settings-cloud-dark.png b/docs/assets/screenshots/zh-hk/settings-cloud-dark.pngindex af72773..52a9dd0 100644Binary files a/docs/assets/screenshots/zh-hk/settings-cloud-dark.png and b/docs/assets/screenshots/zh-hk/settings-cloud-dark.png differdiff --git a/docs/assets/screenshots/zh-hk/settings-lan-dark.png b/docs/assets/screenshots/zh-hk/settings-lan-dark.pngindex 867e56f..90c9a85 100644Binary files a/docs/assets/screenshots/zh-hk/settings-lan-dark.png and b/docs/assets/screenshots/zh-hk/settings-lan-dark.png differdiff --git a/docs/assets/screenshots/zh-hk/settings.png b/docs/assets/screenshots/zh-hk/settings.pngindex 4df4be3..f15dbcb 100644Binary files a/docs/assets/screenshots/zh-hk/settings.png and b/docs/assets/screenshots/zh-hk/settings.png differdiff --git a/docs/assets/screenshots/zh-hk/verify.png b/docs/assets/screenshots/zh-hk/verify.pngindex 7c97aec..f2e01cc 100644Binary files a/docs/assets/screenshots/zh-hk/verify.png and b/docs/assets/screenshots/zh-hk/verify.png differdiff --git a/docs/assets/screenshots/zh-hk/welcome-dark.png b/docs/assets/screenshots/zh-hk/welcome-dark.pngindex a30f521..3bac806 100644Binary files a/docs/assets/screenshots/zh-hk/welcome-dark.png and b/docs/assets/screenshots/zh-hk/welcome-dark.png differdiff --git a/docs/assets/screenshots/zh-hk/welcome.png b/docs/assets/screenshots/zh-hk/welcome.pngindex 7e80af9..20d052f 100644Binary files a/docs/assets/screenshots/zh-hk/welcome.png and b/docs/assets/screenshots/zh-hk/welcome.png differdiff --git a/docs/assets/screenshots/zh-tw/devices.png b/docs/assets/screenshots/zh-tw/devices.pngindex bc2b88b..dfb2cb8 100644Binary files a/docs/assets/screenshots/zh-tw/devices.png and b/docs/assets/screenshots/zh-tw/devices.png differdiff --git a/docs/assets/screenshots/zh-tw/history-dark.png b/docs/assets/screenshots/zh-tw/history-dark.pngindex c73308e..0c51022 100644Binary files a/docs/assets/screenshots/zh-tw/history-dark.png and b/docs/assets/screenshots/zh-tw/history-dark.png differdiff --git a/docs/assets/screenshots/zh-tw/history.png b/docs/assets/screenshots/zh-tw/history.pngindex b10c5c4..2649ccf 100644Binary files a/docs/assets/screenshots/zh-tw/history.png and b/docs/assets/screenshots/zh-tw/history.png differdiff --git a/docs/assets/screenshots/zh-tw/nearby-dark.png b/docs/assets/screenshots/zh-tw/nearby-dark.pngindex 665f59a..32a4340 100644Binary files a/docs/assets/screenshots/zh-tw/nearby-dark.png and b/docs/assets/screenshots/zh-tw/nearby-dark.png differdiff --git a/docs/assets/screenshots/zh-tw/nearby.png b/docs/assets/screenshots/zh-tw/nearby.pngindex 8274f54..3fab31f 100644Binary files a/docs/assets/screenshots/zh-tw/nearby.png and b/docs/assets/screenshots/zh-tw/nearby.png differdiff --git a/docs/assets/screenshots/zh-tw/pairing-dark.png b/docs/assets/screenshots/zh-tw/pairing-dark.pngindex b677131..ce99f2b 100644Binary files a/docs/assets/screenshots/zh-tw/pairing-dark.png and b/docs/assets/screenshots/zh-tw/pairing-dark.png differdiff --git a/docs/assets/screenshots/zh-tw/pairing-join-dark.png b/docs/assets/screenshots/zh-tw/pairing-join-dark.pngindex 65f9565..549ea37 100644Binary files a/docs/assets/screenshots/zh-tw/pairing-join-dark.png and b/docs/assets/screenshots/zh-tw/pairing-join-dark.png differdiff --git a/docs/assets/screenshots/zh-tw/pairing-join-ts-dark.png b/docs/assets/screenshots/zh-tw/pairing-join-ts-dark.pngindex 8952df1..3536693 100644Binary files a/docs/assets/screenshots/zh-tw/pairing-join-ts-dark.png and b/docs/assets/screenshots/zh-tw/pairing-join-ts-dark.png differdiff --git a/docs/assets/screenshots/zh-tw/pairing.png b/docs/assets/screenshots/zh-tw/pairing.pngindex 42dab80..7509bc1 100644Binary files a/docs/assets/screenshots/zh-tw/pairing.png and b/docs/assets/screenshots/zh-tw/pairing.png differdiff --git a/docs/assets/screenshots/zh-tw/settings-cloud-dark.png b/docs/assets/screenshots/zh-tw/settings-cloud-dark.pngindex 458a85b..6432279 100644Binary files a/docs/assets/screenshots/zh-tw/settings-cloud-dark.png and b/docs/assets/screenshots/zh-tw/settings-cloud-dark.png differdiff --git a/docs/assets/screenshots/zh-tw/settings-lan-dark.png b/docs/assets/screenshots/zh-tw/settings-lan-dark.pngindex 4f2142d..cdd3d82 100644Binary files a/docs/assets/screenshots/zh-tw/settings-lan-dark.png and b/docs/assets/screenshots/zh-tw/settings-lan-dark.png differdiff --git a/docs/assets/screenshots/zh-tw/settings.png b/docs/assets/screenshots/zh-tw/settings.pngindex f95eada..c95a6db 100644Binary files a/docs/assets/screenshots/zh-tw/settings.png and b/docs/assets/screenshots/zh-tw/settings.png differdiff --git a/docs/assets/screenshots/zh-tw/verify.png b/docs/assets/screenshots/zh-tw/verify.pngindex 3b5d97d..125762b 100644Binary files a/docs/assets/screenshots/zh-tw/verify.png and b/docs/assets/screenshots/zh-tw/verify.png differdiff --git a/docs/assets/screenshots/zh-tw/welcome-dark.png b/docs/assets/screenshots/zh-tw/welcome-dark.pngindex 494425f..a979d68 100644Binary files a/docs/assets/screenshots/zh-tw/welcome-dark.png and b/docs/assets/screenshots/zh-tw/welcome-dark.png differdiff --git a/docs/assets/screenshots/zh-tw/welcome.png b/docs/assets/screenshots/zh-tw/welcome.pngindex 77922be..e7a5093 100644Binary files a/docs/assets/screenshots/zh-tw/welcome.png and b/docs/assets/screenshots/zh-tw/welcome.png differdiff --git a/docs/assets/site.css b/docs/assets/site.cssindex 1e05eca..5683753 100644--- a/docs/assets/site.css+++ b/docs/assets/site.css@@ -1,4 +1,4 @@-/* CopySync 官网。由 tools/site/build.py 生成的页面共用这一份样式。+/* PasteFerry 官网。由 tools/site/build.py 生成的页面共用这一份样式。** 整页一种深色:石墨底,系统蓝只给按钮、链接、直连的线和「被复制的那张纸」。* 区块之间靠留白分开,不再交替换底色。首屏的复制动画是整页唯一的动画。@@ -162,21 +162,6 @@ caption.skip {gap: 1rem;}-/* 顶栏下的改名说明:2026-10 从 CopySync 改名,应用改名发版后去掉 */-.renamed {- margin: 0;- padding: 0.45rem 0;- border-bottom: 1px solid var(--rule);- background: var(--surface);- color: var(--dim);- font-size: 0.8125rem;- line-height: 1.5;-}--.renamed .wrap {- display: block;-}-.brand {display: inline-flex;align-items: center;@@ -964,7 +949,7 @@ td {color: var(--ink-2);}-/* 对比表:CopySync 这一列有一道浅蓝底 */+/* 对比表:PasteFerry 这一列有一道浅蓝底 */.compare {min-width: 40rem;}diff --git a/docs/assets/site.js b/docs/assets/site.jsindex cf060a1..15fe8a5 100644--- a/docs/assets/site.js+++ b/docs/assets/site.js@@ -154,7 +154,7 @@// 选过语言,以后打开首页就直接是这种语言,不再按浏览器语言跳转document.querySelectorAll("a[data-lang]").forEach(function (link) {link.addEventListener("click", function () {- try { localStorage.setItem("copysync-lang", link.dataset.lang); } catch (e) {}+ try { localStorage.setItem("pasteferry-lang", link.dataset.lang); } catch (e) {}});});})();diff --git a/docs/cloud/index.html b/docs/cloud/index.htmlindex e4bff45..2f28273 100644--- a/docs/cloud/index.html+++ b/docs/cloud/index.html@@ -51,7 +51,6 @@</nav></div></header>- <p class="renamed"><span class="wrap">隔空贴原名 CopySync。应用和安装包里暂时还叫 CopySync,下个版本会改过来。</span></p><main id="main"><section class="hero guide-hero">@@ -167,15 +166,15 @@<li>逐行运行,最后一行换成你的公网 IP:<span class="aside">ARM 服务器把 <code>amd64</code> 换成 <code>arm64</code>。</span><div class="code"><button class="copy" type="button" data-done="已复制">复制</button>-<pre><code>curl -LO https://github.com/baiyuze/pasteferry/releases/latest/download/copysync-server-linux-amd64.tar.gz-tar xzf copysync-server-linux-amd64.tar.gz-cd copysync-server-linux-amd64+<pre><code>curl -LO https://github.com/baiyuze/pasteferry/releases/latest/download/pasteferry-server-linux-amd64.tar.gz+tar xzf pasteferry-server-linux-amd64.tar.gz+cd pasteferry-server-linux-amd64sudo ./install.sh 203.0.113.10</code></pre></div></li><li>最后显示的 <code>ws://203.0.113.10:8787/signal</code> 就是客户端要填的地址。</li></ol><ul class="points">- <li><strong>注册为 systemd 服务,</strong>开机自动运行,配置在 <code>/etc/copysync/server.env</code>。</li>+ <li><strong>注册为 systemd 服务,</strong>开机自动运行,配置在 <code>/etc/pasteferry/server.env</code>。</li><li><strong>升级:</strong>下载新版本,解压后再运行 <code>sudo ./install.sh</code>,原来的配置保留。</li><li><strong>也可以用 Docker:</strong>见<a href="https://github.com/baiyuze/pasteferry/blob/main/server/deploy/README.md">服务器部署说明</a>。</li></ul>@@ -186,18 +185,18 @@ sudo ./install.sh 203.0.113.10</code></pre><pre class="t-body"><span class="t-prompt">$</span> sudo ./install.sh 203.0.113.10<span class="t-step">▶ 安装二进制到 /usr/local/bin</span><span class="t-step">▶ 写入 systemd 单元</span>-<span class="t-step">▶ 生成配置 /etc/copysync/server.env(中转地址 203.0.113.10)</span>+<span class="t-step">▶ 生成配置 /etc/pasteferry/server.env(中转地址 203.0.113.10)</span><span class="t-step">▶ 启动</span>✓ 已启动-安装完成:copysync-server 1.7.0-在每台电脑的 CopySync「设置 → 信令服务器地址」填:+安装完成:pasteferry-server 1.7.0+在每台电脑的 PasteFerry「设置 → 信令服务器地址」填:<span class="t-url">ws://203.0.113.10:8787/signal</span>- 配置 /etc/copysync/server.env- 日志 journalctl -u copysync-server -f- 重启 systemctl restart copysync-server+ 配置 /etc/pasteferry/server.env+ 日志 journalctl -u pasteferry-server -f+ 重启 systemctl restart pasteferry-server卸载 sudo ./install.sh uninstall防火墙需放行:TCP 8787(信令)、UDP 3478(STUN 与 TURN)、UDP 32768-60999(中转端口,系统随机分配)</pre>@@ -237,10 +236,10 @@ sudo ./install.sh 203.0.113.10</code></pre><table class="manage"><caption>以后会用到的</caption><tbody>- <tr><th scope="row">状态</th><td><code>systemctl status copysync-server</code></td></tr>- <tr><th scope="row">日志</th><td><code>journalctl -u copysync-server -f</code></td></tr>- <tr><th scope="row">重启</th><td><code>sudo systemctl restart copysync-server</code></td></tr>- <tr><th scope="row">配置</th><td><code>/etc/copysync/server.env</code>,改完重启服务</td></tr>+ <tr><th scope="row">状态</th><td><code>systemctl status pasteferry-server</code></td></tr>+ <tr><th scope="row">日志</th><td><code>journalctl -u pasteferry-server -f</code></td></tr>+ <tr><th scope="row">重启</th><td><code>sudo systemctl restart pasteferry-server</code></td></tr>+ <tr><th scope="row">配置</th><td><code>/etc/pasteferry/server.env</code>,改完重启服务</td></tr><tr><th scope="row">升级</th><td>下载新版本,解压后再运行 <code>sudo ./install.sh</code>,原来的配置保留</td></tr><tr><th scope="row">卸载</th><td><code>sudo ./install.sh uninstall</code></td></tr></tbody>diff --git a/docs/design/lan-mode.html b/docs/design/lan-mode.htmlindex 5dd65d6..1ac9ff3 100644--- a/docs/design/lan-mode.html+++ b/docs/design/lan-mode.html@@ -44,18 +44,18 @@<p>从终端运行的程序不受限制,但同一个程序打包成 App、由 launchd 启动(与后台服务一样)时,往局域网地址发包直接返回 <code>sendto: no route to host</code>。对方先发来的包仍然能收到,也能回复。</p><p>这说明 1.3 的后台服务在 macOS 15 上其实也连不到局域网地址。它和 Windows 虚拟机之间显示「直连」,是因为 Parallels 的 NAT 让虚拟机的包看起来来自 Mac 自己的 IP,恰好绕开了限制。两台 Mac 之间如果都没拿到权限,谁也连不上谁。</p><p>处理办法:</p>-<ul><li>后台服务的 Info.plist 加上 <code>NSLocalNetworkUsageDescription</code>(中英日本地化)与 <code>NSBonjourServices</code>。</li><li>LaunchAgent 写上 <code>AssociatedBundleIdentifiers</code>,让系统知道后台服务属于 CopySync.app(TN3179 的建议)。</li><li>后台服务发现发往本机直连网段的包持续返回 <code>EHOSTUNREACH</code> 时,报告「被系统拦截」,界面提示用户去「系统设置 → 隐私与安全性 → 本地网络」打开。</li><li>但对方不在线时也会得到 <code>EHOSTUNREACH</code>:ARP 解析失败的那一次发送返回它,之后 20 秒(<code>net.link.ether.inet.host_down_time</code>)里返回 <code>EHOSTDOWN</code>。被权限拦下的包到不了 ARP 那一步,立即再发还是 <code>EHOSTUNREACH</code>。所以遇到 <code>EHOSTUNREACH</code> 就立即再发一次,仍是它才算被拦。两种情况都在真机上测过(1.6.0 之后):launchd 启动的新签名程序头 2.5 秒里,在线和不在线的地址都是两次 <code>EHOSTUNREACH</code>;之后发往不在线地址的是 <code>EHOSTUNREACH</code> 加 <code>EHOSTDOWN</code>。</li></ul>+<ul><li>后台服务的 Info.plist 加上 <code>NSLocalNetworkUsageDescription</code>(中英日本地化)与 <code>NSBonjourServices</code>。</li><li>LaunchAgent 写上 <code>AssociatedBundleIdentifiers</code>,让系统知道后台服务属于 PasteFerry.app(TN3179 的建议)。</li><li>后台服务发现发往本机直连网段的包持续返回 <code>EHOSTUNREACH</code> 时,报告「被系统拦截」,界面提示用户去「系统设置 → 隐私与安全性 → 本地网络」打开。</li><li>但对方不在线时也会得到 <code>EHOSTUNREACH</code>:ARP 解析失败的那一次发送返回它,之后 20 秒(<code>net.link.ether.inet.host_down_time</code>)里返回 <code>EHOSTDOWN</code>。被权限拦下的包到不了 ARP 那一步,立即再发还是 <code>EHOSTUNREACH</code>。所以遇到 <code>EHOSTUNREACH</code> 就立即再发一次,仍是它才算被拦。两种情况都在真机上测过(1.6.0 之后):launchd 启动的新签名程序头 2.5 秒里,在线和不在线的地址都是两次 <code>EHOSTUNREACH</code>;之后发往不在线地址的是 <code>EHOSTUNREACH</code> 加 <code>EHOSTDOWN</code>。</li></ul><p>后来用正式打包方式(同样的 Info.plist,由 launchd 带着 <code>AssociatedBundleIdentifiers</code> 启动)在解锁的屏幕上复测:</p>-<ul><li>系统会弹出授权窗,授权记在后台服务自己的 bundle ID 名下,没有因为 <code>AssociatedBundleIdentifiers</code> 算到 CopySync.app 头上。用户允许后,mDNS 与单播都正常。</li><li>换了程序文件(ad-hoc 重新签名)后没有再问,授权仍然有效;但新程序刚启动的几秒到十几秒里,发往局域网的包仍会被拦下,之后自动放行。所以「被系统拦截」要持续 30 秒才报告,否则每次升级都会闪一下提示。</li><li>这段拦截还会让 mDNS 失效:pion/mdns 启动时在哪块网卡上加入组播失败,就再也不用那块网卡。于是启动 mDNS 之前先探测一次,被拦期间每一轮都探测,探测一通过就重启 mDNS。用户后来才在系统设置里允许,也走同一条路恢复。判断拦截解除只认探测包:被拦时,发给先联系过本机的设备照样能成功。</li><li>还没配对任何设备时,后台服务不往局域网发单播,就发现不了自己被拦着。于是在 macOS 上定期往本网段里一个普通地址的丢弃端口发几个字节探测(不用网关:发往网关的包可能不受这项限制)。往本机自己的地址发包也不受限制,不能当作「没被拦」的证据——Parallels 的 NAT 会让虚拟机的包看起来来自本机地址。</li></ul>+<ul><li>系统会弹出授权窗,授权记在后台服务自己的 bundle ID 名下,没有因为 <code>AssociatedBundleIdentifiers</code> 算到 PasteFerry.app 头上。用户允许后,mDNS 与单播都正常。</li><li>换了程序文件(ad-hoc 重新签名)后没有再问,授权仍然有效;但新程序刚启动的几秒到十几秒里,发往局域网的包仍会被拦下,之后自动放行。所以「被系统拦截」要持续 30 秒才报告,否则每次升级都会闪一下提示。</li><li>这段拦截还会让 mDNS 失效:pion/mdns 启动时在哪块网卡上加入组播失败,就再也不用那块网卡。于是启动 mDNS 之前先探测一次,被拦期间每一轮都探测,探测一通过就重启 mDNS。用户后来才在系统设置里允许,也走同一条路恢复。判断拦截解除只认探测包:被拦时,发给先联系过本机的设备照样能成功。</li><li>还没配对任何设备时,后台服务不往局域网发单播,就发现不了自己被拦着。于是在 macOS 上定期往本网段里一个普通地址的丢弃端口发几个字节探测(不用网关:发往网关的包可能不受这项限制)。往本机自己的地址发包也不受限制,不能当作「没被拦」的证据——Parallels 的 NAT 会让虚拟机的包看起来来自本机地址。</li></ul><h2 id="三-方案">三、方案</h2><h3 id="1-两条通道并存">1. 两条通道并存</h3><p><code>peers.Manager</code> 同时持有信令服务器客户端和局域网通道:</p><ul><li><strong>在线</strong>:服务器说在线、局域网里可达、P2P 已连通,任一成立即可。服务器断开只清掉服务器那一半。</li><li><strong>发送信令</strong>:签一次名,局域网可达就走局域网,连着服务器就也经服务器转发。接收方的 <code>signed.Verifier</code> 两条路共用一份 nonce 记录,只处理先到的那份。</li><li><strong>配对结果通用</strong>:配对只是交换公钥,局域网里配好的设备,以后加上服务器照样能跨网络同步。</li></ul><p>签名与校验从信令客户端里抽到 <code>transport/signed</code>,并补上一条检查:<code>to_device_id</code> 必须是本机。服务器按收件人转发,这条检查以前可有可无;局域网里谁都能把截到的消息转发给第三台设备,必须有。</p><h3 id="2-发现">2. 发现</h3>-<ul><li>服务类型 <code>_copysync._udp</code>,实例名每次启动随机(<code>copysync-</code> 加 12 位十六进制),不带设备名。</li><li>TXT:<code>v=1</code>,<code>t=当日令牌</code>,配对码开放期间加 <code>p=1</code>。</li><li>令牌是 <code>sha256("copysync-lan|" + device_id + "|" + UTC 日期)</code> 的前 8 字节。已配对的设备按昨天、今天、明天各算一遍就能认出对方;同一网络里的其他人看到的只是一串每天都变的字符,无法跨天关联。</li><li>Windows 上由系统的 DNS-SD 服务回答查询(见上一节),其他平台由 pion/mdns 回答。网络变化时(本机地址集合变了)重新加入组播、重新广播。</li></ul>+<ul><li>服务类型 <code>_pasteferry._udp</code>,实例名每次启动随机(<code>pasteferry-</code> 加 12 位十六进制),不带设备名。</li><li>TXT:<code>v=1</code>,<code>t=当日令牌</code>,配对码开放期间加 <code>p=1</code>。</li><li>令牌是 <code>sha256("pasteferry-lan|" + device_id + "|" + UTC 日期)</code> 的前 8 字节。已配对的设备按昨天、今天、明天各算一遍就能认出对方;同一网络里的其他人看到的只是一串每天都变的字符,无法跨天关联。</li><li>Windows 上由系统的 DNS-SD 服务回答查询(见上一节),其他平台由 pion/mdns 回答。网络变化时(本机地址集合变了)重新加入组播、重新广播。</li></ul><h3 id="3-局域网信令">3. 局域网信令</h3>-<ul><li>固定 UDP 端口 8788,被占用时(同一台 Mac 上两个用户都登录着)退回随机端口,端口随 mDNS 和地址一起告诉对方。</li><li>每个包是 4 字节魔数 <code>CSL1</code> 加 <code>LanPacket</code>,上限 16 KB,按来源限速。</li><li>已配对设备之间收发的就是服务器转发的那种 <code>Signed</code>。上线通知是 <code>SignalMessage</code> 里新增的 <code>LanHello</code>:自报的地址、要不要回一条、自己多久发一次。</li><li>对每台还没连通的设备,每 10 秒往它可能在的地址发 hello(已连通时 30 秒保活)。候选地址按顺序取:最近一次收到它消息的来源、mDNS 发现的、它自报的、地址簿里的,最多 12 个。</li><li>收到有效消息就记下来源地址,并标记可达;超过对方声明间隔的三倍没收到,视为不可达。</li><li>信令发往对方最近的来源地址,150 毫秒后再补发一次,抵消 UDP 偶尔丢包;重复的那份被 nonce 去重。</li></ul>+<ul><li>固定 UDP 端口 8788,被占用时(同一台 Mac 上两个用户都登录着)退回随机端口,端口随 mDNS 和地址一起告诉对方。</li><li>每个包是 4 字节魔数 <code>PFL1</code>(2.0.0 之前是 <code>CSL1</code>) 加 <code>LanPacket</code>,上限 16 KB,按来源限速。</li><li>已配对设备之间收发的就是服务器转发的那种 <code>Signed</code>。上线通知是 <code>SignalMessage</code> 里新增的 <code>LanHello</code>:自报的地址、要不要回一条、自己多久发一次。</li><li>对每台还没连通的设备,每 10 秒往它可能在的地址发 hello(已连通时 30 秒保活)。候选地址按顺序取:最近一次收到它消息的来源、mDNS 发现的、它自报的、地址簿里的,最多 12 个。</li><li>收到有效消息就记下来源地址,并标记可达;超过对方声明间隔的三倍没收到,视为不可达。</li><li>信令发往对方最近的来源地址,150 毫秒后再补发一次,抵消 UDP 偶尔丢包;重复的那份被 nonce 去重。</li></ul><h3 id="4-地址簿与跨网段">4. 地址簿与跨网段</h3><ul><li>新表 <code>device_addrs(device_id, addr, last_seen)</code>,每台设备最多 8 个,随设备一起删除。</li><li>跨网段时 mDNS 过不去,配对时由用户输入对方配对码下面显示的地址。配对双方都记下对方的地址,之后任意一方换了地址,只要另一方没换,就能重新找到。</li><li>两边都换了地址时,在设备菜单里「输入它的地址」。不做网段扫描:在公司网络里会被当成端口扫描。</li><li>Tailscale 不转发 mDNS,但 100.x 地址就是普通的可达地址:配对时输入它,之后同样靠地址簿。</li></ul><h3 id="5-配对">5. 配对</h3>@@ -67,7 +67,7 @@<p>hello 里带一个每次启动随机生成的启动标识。收到已配对设备的 hello、发现启动标识变了,就知道它重启过:立即丢掉旧的 P2P 连接重建,不必等连接超时。用服务器时,这件事由服务器的上下线通知完成;没有服务器时,没有这一步的话,应答方重启后要等发起方自己发现连接失效(实测约 30 秒)。</p><p>另外,mDNS 里出现已配对设备的新实例名或新地址时,即使还当它可达,也马上打招呼:重启的那台若是没放行防火墙的 Windows,它主动发来的包进不来,要靠本机先发。</p><h3 id="8-其他改动">8. 其他改动</h3>-<ul><li>服务器地址默认为空。1.4.0 之前的默认值 <code>ws://127.0.0.1:8787/signal</code> 其实没有服务器在跑,升级时清空一次(配置文件记 <code>config_version</code>,只迁移一次)。</li><li>没有服务器时不探测公共 STUN:只在局域网里连,探测出口没有用,还会把公网 IP 暴露给公共服务器。</li><li>解除配对时断开 P2P 连接(以前不断开)。</li><li><code>copysync-cli</code>:<code>join CODE [ADDRESS]</code>、<code>address DEVICE ADDR</code>,<code>nat</code> 里加了局域网一节;1.5.0 加了 <code>nearby [NAME]</code>(搜索附近设备,给了 NAME 就在它出现时发起配对)。</li></ul>+<ul><li>服务器地址默认为空。1.4.0 之前的默认值 <code>ws://127.0.0.1:8787/signal</code> 其实没有服务器在跑,升级时清空一次(配置文件记 <code>config_version</code>,只迁移一次)。</li><li>没有服务器时不探测公共 STUN:只在局域网里连,探测出口没有用,还会把公网 IP 暴露给公共服务器。</li><li>解除配对时断开 P2P 连接(以前不断开)。</li><li><code>pasteferry-cli</code>:<code>join CODE [ADDRESS]</code>、<code>address DEVICE ADDR</code>,<code>nat</code> 里加了局域网一节;1.5.0 加了 <code>nearby [NAME]</code>(搜索附近设备,给了 NAME 就在它出现时发起配对)。</li></ul><h3 id="代码位置">代码位置</h3><div class="table-scroll"><table><thead><tr><th scope="col">位置</th><th scope="col">内容</th></tr></thead><tbody><tr><td><code>transport/lan/lan.go</code></td><td>socket、hello、可达状态、地址簿、诊断</td></tr><tr><td><code>transport/lan/pairing.go</code></td><td>局域网配对</td></tr><tr><td><code>transport/lan/nearby.go</code></td><td>搜索附近设备:广播设备名、ping、不带配对码的配对请求</td></tr><tr><td><code>transport/lan/discovery.go</code>、<code>mdns*.go</code></td><td>发现接口、pion/mdns 实现、Windows 的系统 DNS-SD 注册、测试用的内存网络</td></tr><tr><td><code>transport/lan/addrs.go</code></td><td>本机地址、地址解析、令牌</td></tr><tr><td><code>transport/lan/permission_*.go</code></td><td>macOS 打开本地网络设置与探测地址、Windows 用 UAC 放行防火墙</td></tr><tr><td><code>transport/signed/</code></td><td>签名、校验、防重放、收件人检查</td></tr><tr><td><code>peers/manager.go</code></td><td>两条通道合并、配对流程</td></tr><tr><td><code>store/store.go</code></td><td><code>device_addrs</code> 表</td></tr><tr><td><code>config/config.go</code></td><td>默认不用服务器、<code>lan_disabled</code>、一次性迁移</td></tr></tbody></table></div><h2 id="四-能覆盖哪些场景">四、能覆盖哪些场景</h2>@@ -91,7 +91,7 @@<ul><li>Windows 显示配对码、Mac 只输入配对码:2 秒配对成功(Windows 先敲门)。</li><li>文本双向同步。</li><li>只重启 Mac、只重启 Windows:都在 4 秒内恢复,以「复制后对方收到」计时,含每轮约 1 至 2 秒的检测开销。</li><li>新程序刚启动时没有误报「被系统拦截」。</li></ul><p>第三轮用正式安装的 App:Mac 装进 /Applications,Windows 用 CI 构建的安装包覆盖安装,两边都配着服务器,Windows 没放行防火墙:</p><ul><li>Mac 换成新版、Windows 还是旧版(1.1.2 开发版)时,经服务器文本双向同步。</li><li>图片(Mac 上的 PNG 数据、Windows 上的位图)和文件夹(带子目录与中文文件名)双向同步,SHA-256 一致。</li><li>在 Windows 防火墙里挡住到服务器的连接、重启 Windows 的后台服务:只靠局域网,12 秒内重新直连,同步正常;Mac 1.6 秒后就从启动标识察觉对方重启。</li><li>Windows 换 IP:约 32 秒后旧连接被判定失效,4 秒后重连。网卡禁用 15 秒再启用:启用后 8 秒恢复直连。</li><li>Mac 装上新版后,局域网发现正常工作,没有误报「被系统拦截」(修复前见「六、踩过的坑」)。</li><li>没测:睡眠唤醒、Mac 上开关 Wi-Fi、两台 Windows 之间、真实的跨网段与 Tailscale(只在 NAT 打洞实验室里测过)。</li></ul>-<p>第四轮(1.5.0,搜索附近设备):Mac 与 Windows 11 虚拟机各跑一个 <code>-tags fakeclip</code> 的后台服务(独立数据目录,与两边正式安装的 1.4.0 同时运行,局域网端口因此都退回随机端口),Windows 上的程序是新的路径,没有任何防火墙规则,用 <code>copysync-cli nearby</code> 代替界面:</p>+<p>第四轮(1.5.0,搜索附近设备):Mac 与 Windows 11 虚拟机各跑一个 <code>-tags fakeclip</code> 的后台服务(独立数据目录,与两边正式安装的 1.4.0 同时运行,局域网端口因此都退回随机端口),Windows 上的程序是新的路径,没有任何防火墙规则,用 <code>pasteferry-cli nearby</code> 代替界面:</p><ul><li>Mac 打开后立刻看到 Windows,设备名经 Windows 的系统 DNS-SD 服务转发后完好;点它不到 1 秒收到回应,两边指纹一致,确认后直连。没放行防火墙的 Windows 照样收到了请求(它先发过 ping)。</li><li>两边都只打开、不点:Mac 打开后 1 秒内出现在 Windows 的列表里,并认出是已配对的设备;Mac 关掉后 1 秒内从 Windows 的列表里消失(广播里撤下设备名,pion 报了更新)。</li><li>配对后文本双向同步。</li></ul><p>第一轮里「两边重启后约 1 秒重新直连」的结果不可靠:清理测试进程时漏掉了几个,「重启」时旧实例还以同一个身份在运行。第二轮在干净的环境里重测,结果如上。</p><h2 id="六-踩过的坑">六、踩过的坑</h2>diff --git a/docs/design/linux-client.html b/docs/design/linux-client.htmlindex 2afcea5..a9752ab 100644--- a/docs/design/linux-client.html+++ b/docs/design/linux-client.html@@ -27,10 +27,10 @@<article class="article"><p class="crumb"><a href="../">隔空贴</a>的技术方案</p><h1>Linux 客户端</h1>-<blockquote><p>状态:已实现,随 1.6.0 发布</p><p>代码:<code>client-core/internal/clipboard/linux.go</code>(剪贴板)、<code>client-core/cmd/copysyncd/platform_linux.go</code> 与 <code>supervisor.go</code>(后台服务)、<code>ui/linux/</code>(GTK 外壳)、<code>ui/lib/background_service_linux.dart</code>(开机自启)、<code>scripts/package-linux.sh</code> 与 <code>tools/linux/</code>(打包)</p><p>验证:<code>internal/clipboard/linux_test.go</code>(Xvfb + xclip、Wayland + wl-clipboard)、CI 的 Linux 任务(x64 与 ARM64)、Ubuntu 24.04 GNOME(Wayland)虚拟机实测</p><p>相关:<a href="windows-client.html">Windows 客户端</a>、<a href="lan-mode.html">局域网直连</a></p></blockquote>+<blockquote><p>状态:已实现,随 1.6.0 发布</p><p>代码:<code>client-core/internal/clipboard/linux.go</code>(剪贴板)、<code>client-core/cmd/pasteferryd/platform_linux.go</code> 与 <code>supervisor.go</code>(后台服务)、<code>ui/linux/</code>(GTK 外壳)、<code>ui/lib/background_service_linux.dart</code>(开机自启)、<code>scripts/package-linux.sh</code> 与 <code>tools/linux/</code>(打包)</p><p>验证:<code>internal/clipboard/linux_test.go</code>(Xvfb + xclip、Wayland + wl-clipboard)、CI 的 Linux 任务(x64 与 ARM64)、Ubuntu 24.04 GNOME(Wayland)虚拟机实测</p><p>相关:<a href="windows-client.html">Windows 客户端</a>、<a href="lan-mode.html">局域网直连</a></p></blockquote><nav class="toc" aria-label="目录"><strong>目录</strong><ul><li><a href="#一-目标">一、目标</a></li><li><a href="#二-剪贴板">二、剪贴板</a></li><li><a href="#三-后台服务">三、后台服务</a></li><li><a href="#四-界面">四、界面</a></li><li><a href="#五-打包与发布">五、打包与发布</a></li><li><a href="#六-验证">六、验证</a></li><li><a href="#七-局限">七、局限</a></li></ul></nav><h2 id="一-目标">一、目标</h2>-<p>让 Linux 电脑加入 CopySync,与 Mac、Windows 互相同步文本、带格式文本、图片和文件,体验与另外两个平台一致:开机自启、关掉窗口照常同步、崩溃自动拉起,网络行为完全相同。</p>+<p>让 Linux 电脑加入隔空贴,与 Mac、Windows 互相同步文本、带格式文本、图片和文件,体验与另外两个平台一致:开机自启、关掉窗口照常同步、崩溃自动拉起,网络行为完全相同。</p><p>支持:x64 与 ARM64;X11 桌面,或者带 XWayland 的 Wayland 桌面(GNOME、KDE 等主流桌面默认都带);GTK 3。</p><p><strong>不做:</strong></p><div class="table-scroll"><table><thead><tr><th scope="col">不做</th><th scope="col">原因</th></tr></thead><tbody><tr><td>托盘图标</td><td>GNOME 默认不显示托盘图标;与 Mac 一样,从应用菜单打开窗口</td></tr><tr><td>没有 XWayland 的纯 Wayland 桌面</td><td>Wayland 不允许后台程序读剪贴板;wlr-data-control 只有 wlroots 系与 KDE 支持,GNOME 不支持。见第二节</td></tr><tr><td>AppImage、Flatpak、Snap</td><td>AppImage 每次运行挂载到临时目录,开机自启要另行处理;Flatpak 的沙盒拿不到剪贴板。先提供 .deb 与 tar.gz</td></tr><tr><td>HEIC、TIFF 预览</td><td>Mac 上靠系统的 ImageIO 转换,Linux 上没有现成的,按需再做</td></tr></tbody></table></div>@@ -51,14 +51,14 @@<h3 id="4-会话结束">4. 会话结束</h3><p>与 X 服务器的连接断开几乎总是因为用户注销。这时按会话结束处理(与 Windows 收到 WM_ENDSESSION 一样),后台服务正常退出,守护进程见到退出码 0 也随之结束;下次登录由开机自启重新拉起,而不是留下一个连不上新会话的后台服务。</p><h2 id="三-后台服务">三、后台服务</h2>-<div class="table-scroll"><table><thead><tr><th scope="col"></th><th scope="col">Mac</th><th scope="col">Windows</th><th scope="col">Linux</th></tr></thead><tbody><tr><td>开机自启</td><td>LaunchAgent</td><td>HKCU\...\Run</td><td>XDG 自启动项(<code>~/.config/autostart/copysync-daemon.desktop</code>)</td></tr><tr><td>崩溃拉起</td><td>launchd 的 KeepAlive</td><td><code>copysyncd -supervise</code> 守护进程</td><td>同 Windows</td></tr><tr><td>只运行一个</td><td>launchd</td><td>命名互斥量</td><td><code>flock</code>(数据目录下的 daemon.lock、supervisor.lock)</td></tr><tr><td>日志</td><td>launchd 重定向</td><td><code>logs/daemon.log</code>,10 MB 轮转</td><td>同 Windows</td></tr><tr><td>数据目录</td><td><code>~/Library/Application Support/CopySync</code></td><td><code>%LOCALAPPDATA%\CopySync</code></td><td><code>$XDG_DATA_HOME/copysync</code>,默认 <code>~/.local/share/copysync</code></td></tr></tbody></table></div>+<div class="table-scroll"><table><thead><tr><th scope="col"></th><th scope="col">Mac</th><th scope="col">Windows</th><th scope="col">Linux</th></tr></thead><tbody><tr><td>开机自启</td><td>LaunchAgent</td><td>HKCU\...\Run</td><td>XDG 自启动项(<code>~/.config/autostart/pasteferry-daemon.desktop</code>)</td></tr><tr><td>崩溃拉起</td><td>launchd 的 KeepAlive</td><td><code>pasteferryd -supervise</code> 守护进程</td><td>同 Windows</td></tr><tr><td>只运行一个</td><td>launchd</td><td>命名互斥量</td><td><code>flock</code>(数据目录下的 daemon.lock、supervisor.lock)</td></tr><tr><td>日志</td><td>launchd 重定向</td><td><code>logs/daemon.log</code>,10 MB 轮转</td><td>同 Windows</td></tr><tr><td>数据目录</td><td><code>~/Library/Application Support/PasteFerry</code></td><td><code>%LOCALAPPDATA%\PasteFerry</code></td><td><code>$XDG_DATA_HOME/pasteferry</code>,默认 <code>~/.local/share/pasteferry</code></td></tr></tbody></table></div><p>用 XDG 自启动项而不是 systemd 的用户服务:自启动项在登录后的图形会话里启动,带着 DISPLAY、XAUTHORITY,后台服务才连得上剪贴板;systemd 用户服务不一定拿得到这些环境变量,各发行版的做法也不一致。GNOME、KDE、Xfce 都认 XDG 自启动项。</p><p>守护进程与 Windows 共用(<code>supervisor.go</code>)。Linux 上子进程带 <code>Pdeathsig</code>:守护进程被结束时后台服务随之结束,界面重启服务时只要结束守护进程,不会留下没人看着的后台服务。</p><h2 id="四-界面">四、界面</h2>-<ul><li><strong>GTK 外壳</strong>(<code>ui/linux/</code>):应用 ID <code>com.copysync.app</code>(与 Mac 的包名一致,桌面据此把窗口与应用菜单项对应起来,Dock 里显示正确的图标);默认 960×640、最小 760×520;只运行一个实例,再次打开时激活已有的窗口;窗口图标随程序发布。为了在 Ubuntu 22.04(GLib 2.72)上编译,不用 2.74 才有的 <code>G_APPLICATION_DEFAULT_FLAGS</code>。</li><li><strong>开机自启</strong>(<code>background_service_linux.dart</code>):写自启动项,路径按 Desktop Entry 规范加引号转义(文件夹名可能带空格);状态按自启动项里的路径与 <code>pgrep</code> 判断;重启时结束当前用户的 copysyncd 再脱离界面启动守护进程,环境变量随之传下去。</li><li><strong>字体</strong>:主字体跟随系统(fontconfig 默认的无衬线字体);汉字指定 Noto Sans CJK SC 等(日文界面用 JP),理由与 Windows 相同:系统逐字回退时,中日共用的汉字可能落到另一种语言的字形上。等宽字体交给 fontconfig 的 <code>monospace</code> 别名。</li><li><strong>叫法与图标</strong>:与 Windows 一样说「这台电脑」,用 Fluent 图标(线条风格与 GNOME、KDE 的图标接近);打开网址用 <code>xdg-open</code>。</li></ul>+<ul><li><strong>GTK 外壳</strong>(<code>ui/linux/</code>):应用 ID <code>com.pasteferry.app</code>(与 Mac 的包名一致,桌面据此把窗口与应用菜单项对应起来,Dock 里显示正确的图标);默认 960×640、最小 760×520;只运行一个实例,再次打开时激活已有的窗口;窗口图标随程序发布。为了在 Ubuntu 22.04(GLib 2.72)上编译,不用 2.74 才有的 <code>G_APPLICATION_DEFAULT_FLAGS</code>。</li><li><strong>开机自启</strong>(<code>background_service_linux.dart</code>):写自启动项,路径按 Desktop Entry 规范加引号转义(文件夹名可能带空格);状态按自启动项里的路径与 <code>pgrep</code> 判断;重启时结束当前用户的 pasteferryd 再脱离界面启动守护进程,环境变量随之传下去。</li><li><strong>字体</strong>:主字体跟随系统(fontconfig 默认的无衬线字体);汉字指定 Noto Sans CJK SC 等(日文界面用 JP),理由与 Windows 相同:系统逐字回退时,中日共用的汉字可能落到另一种语言的字形上。等宽字体交给 fontconfig 的 <code>monospace</code> 别名。</li><li><strong>叫法与图标</strong>:与 Windows 一样说「这台电脑」,用 Fluent 图标(线条风格与 GNOME、KDE 的图标接近);打开网址用 <code>xdg-open</code>。</li></ul><h2 id="五-打包与发布">五、打包与发布</h2><p><code>scripts/package-linux.sh</code> 在 Linux 上构建后台服务、命令行与界面,产出:</p>-<ul><li><code>CopySync-linux-<arch>.deb</code>:装在 <code>/opt/CopySync</code>,应用菜单项与图标装进系统目录,<code>/usr/bin</code> 下有 <code>copysync</code>、<code>copysync-cli</code>。依赖只写 <code>libgtk-3-0</code>(Ubuntu 24.04 起改名为 libgtk-3-0t64,新包也提供旧名字,两边都能装),推荐 <code>fonts-noto-cjk</code>。卸载时结束正在运行的后台服务。</li><li><code>CopySync-linux-<arch>.tar.gz</code>:解压即用,<code>install.sh</code> 把应用菜单项和图标装进用户目录(不需要 root),<code>uninstall.sh</code> 撤销并停用后台服务。</li></ul>+<ul><li><code>PasteFerry-linux-<arch>.deb</code>:装在 <code>/opt/PasteFerry</code>,应用菜单项与图标装进系统目录,<code>/usr/bin</code> 下有 <code>pasteferry</code>、<code>pasteferry-cli</code>。依赖只写 <code>libgtk-3-0</code>(Ubuntu 24.04 起改名为 libgtk-3-0t64,新包也提供旧名字,两边都能装),推荐 <code>fonts-noto-cjk</code>。卸载时结束正在运行的后台服务。</li><li><code>PasteFerry-linux-<arch>.tar.gz</code>:解压即用,<code>install.sh</code> 把应用菜单项和图标装进用户目录(不需要 root),<code>uninstall.sh</code> 撤销并停用后台服务。</li></ul><p>Flutter 不能交叉编译 Linux 桌面程序,CI 在 GitHub 的 x64 与 ARM64 两种 Ubuntu 22.04 机器上各跑一次:先在 Xvfb 里跑后台服务的全部测试(含 X11 剪贴板),再跑界面测试,最后打包上传。在 22.04 上构建,产物依赖的 glibc 与 GTK 版本较老,新的发行版也能运行。</p><h2 id="六-验证">六、验证</h2><p><strong>单元测试与集成测试</strong>(<code>linux_test.go</code>,CI 在 Xvfb 里用 xclip 扮演别的程序):读写文本(含中文、换行);本机写入后 Peek 看到新的计数、别的程序复制后本机不再持有;约 1.4 MB 的图片两个方向都走 INCR;文件的两种格式与中文文件名、网址不当作文件;HTML;密码管理器的敏感标记;分类规则、UTF-16 的 HTML、Latin-1、BMP 转 PNG、URI 解析。</p>diff --git a/docs/design/nat-traversal.html b/docs/design/nat-traversal.htmlindex 719de5f..71c807a 100644--- a/docs/design/nat-traversal.html+++ b/docs/design/nat-traversal.html@@ -41,7 +41,7 @@<p>结论:公司网络等于 4 个并列的、各自「端点无关映射」的 NAT,按目标 IP 选择走哪一个。单看每一条都很好打洞,难点只在于「发往对端的包走哪一条」事先不知道。</p><p>公司路由器不支持 UPnP 与 NAT-PMP,也没有 IPv6。</p><h3 id="家里这台">家里这台</h3>-<div class="table-scroll"><table><thead><tr><th scope="col">项目</th><th scope="col">结果</th></tr></thead><tbody><tr><td>国内目标</td><td>同一本地端口发往不同服务器,公网地址与端口都相同:端点无关映射,好打洞</td></tr><tr><td>国外目标</td><td>经本机的代理出去,与 CopySync 无关</td></tr><tr><td>路由器</td><td>支持 UPnP,但它自己的外网地址与服务器看到的地址不同:运营商还有一层 NAT,在路由器上映射端口没用</td></tr><tr><td>IPv6</td><td>只有内网地址</td></tr></tbody></table></div>+<div class="table-scroll"><table><thead><tr><th scope="col">项目</th><th scope="col">结果</th></tr></thead><tbody><tr><td>国内目标</td><td>同一本地端口发往不同服务器,公网地址与端口都相同:端点无关映射,好打洞</td></tr><tr><td>国外目标</td><td>经本机的代理出去,与隔空贴无关</td></tr><tr><td>路由器</td><td>支持 UPnP,但它自己的外网地址与服务器看到的地址不同:运营商还有一层 NAT,在路由器上映射端口没用</td></tr><tr><td>IPv6</td><td>只有内网地址</td></tr></tbody></table></div><h3 id="旧版本为什么打不通">旧版本为什么打不通</h3><ol><li><strong>只问了一台服务器</strong>。客户端只从自己的服务器得知本机公网地址,即出口 A,也只把它告诉对端。发往对端的包按目标 IP 很可能从另外三个出口之一出去,对端收到的源地址与告诉它的不一致,被它的路由器当作陌生来源丢弃。</li><li><strong>多配几台 STUN 也没用</strong>。pion 每问一台 STUN 服务器都单独开一个本地端口,问到的地址只对那个端口成立,互相用不上。</li></ol><h2 id="三-方案">三、方案</h2>@@ -55,14 +55,14 @@<p>每个出口的公网地址作为一条 srflx candidate,在 offer 或 answer 之后经信令发给对端,最多 8 条。对端为每条建立 candidate pair 做连通性检查,与实际出口吻合的那一条能打通。</p><ul><li>优先级按 RFC 8445 计算,实测地址排在推算地址之前。</li><li>会改写端口的线路,探测拿到的就是这个端口在该线路上的真实映射,不需要猜。</li><li>首轮探测还没结束时最多等 4 秒,免得刚上线就发一份空结果。这是在发出 offer/answer 之后的后台里等,不耽误握手,但要短于中转的等待时限。</li></ul><h3 id="4-记住见过的出口">4. 记住见过的出口</h3>-<p>某一轮的探测服务器可能恰好都没落到某条线路上(实测出口 D 就时有时无)。本端按「本机各网卡的 IPv4 地址」区分网络,记下每个网络见过的出口 IP 及其是否改写端口,保存 7 天(<code>~/Library/Application Support/CopySync/egress.json</code>)。</p>+<p>某一轮的探测服务器可能恰好都没落到某条线路上(实测出口 D 就时有时无)。本端按「本机各网卡的 IPv4 地址」区分网络,记下每个网络见过的出口 IP 及其是否改写端口,保存 7 天(<code>~/Library/Application Support/PasteFerry/egress.json</code>)。</p><p>不改写端口的线路,地址就是「出口 IP + 本地端口」,这一轮没探测到也可以推算出来补发给对端;会改写端口的线路无法推算,不补。</p><h3 id="5-优先直连">5. 优先直连</h3><p>中转路径经服务器,握手往往比直连快。若不加约束,常常在直连打通之前就选中了中转,之后不再更换。中转路径要等一段时间才允许被选中(<code>SetRelayAcceptanceMinWait</code>):1.1.0 是 3 秒,1.1.1 放宽到 5 秒,见第 8 节。</p><h3 id="6-两端显示一致">6. 两端显示一致</h3><p>只有发送方能确定自己的数据是否走 TURN:对端经中转发来的包,在本端看来可能只是一个普通的 peer-reflexive 地址。连接就绪后两端经控制通道交换 <code>LinkInfo{relayed}</code>,任一端经中转,两端都显示「中转」(1.0.2 引入)。</p><h3 id="7-隐私开关与诊断">7. 隐私开关与诊断</h3>-<ul><li>设置「用公共服务器探测网络出口」,默认开启。公共 STUN 服务器能看到本机公网 IP,与任何 WebRTC 应用相同,看不到内容。关闭后只用自己的服务器探测。配置字段 <code>only_own_stun</code> 刻意设计为「关闭」语义:旧版界面不发这个字段时,默认值 false 不会把功能误关。</li><li><code>copysync-cli nat</code>(后台接口 <code>GetNetwork</code>)显示打洞端口、每个出口的地址与来源,以及各设备当前走直连还是中转。</li></ul>+<ul><li>设置「用公共服务器探测网络出口」,默认开启。公共 STUN 服务器能看到本机公网 IP,与任何 WebRTC 应用相同,看不到内容。关闭后只用自己的服务器探测。配置字段 <code>only_own_stun</code> 刻意设计为「关闭」语义:旧版界面不发这个字段时,默认值 false 不会把功能误关。</li><li><code>pasteferry-cli nat</code>(后台接口 <code>GetNetwork</code>)显示打洞端口、每个出口的地址与来源,以及各设备当前走直连还是中转。</li></ul><h3 id="8-落到中转后-再试直连-1-1-1">8. 落到中转后,再试直连(1.1.1)</h3><p><strong>问题。</strong>1.1.0 实机验收直连之后约 10 分钟,家里那台重启了后台服务,重连后变成了中转,之后一直是中转:</p><pre><code>23:19:42 P2P 连接状态 direct@@ -106,7 +106,7 @@<p><code>p2p/upgrade_test.go</code>(1.1.1):ICE 重启期间两端状态一直是直连、重启中发出的消息照样送达;中转时发起方自己重启并改回直连,礼让方不主动重启;对端换了证书时本端重建连接(去掉这个处理,测试会卡在「连接中」);连接断开时发送报错。信令桩异步、不保序地投递,比真实服务器更苛刻。<code>TestEgressOrder</code>(1.1.2)核对出口地址的收发顺序:初次握手发起方先收到对方的再发自己的,请应答方等的重启反过来;去掉等待,这个测试会失败。</p><p><code>sync/backlog_test.go</code>(1.1.1):连不上的设备在连接恢复后按复制先后收到补发、带补发标记,已送达的不重复;太旧的、已删除的不补发,补发途中又断开的留到下次;收到补发的文件不写进剪贴板。</p><h3 id="nat-打洞实验室">NAT 打洞实验室</h3>-<p><code>tools/natlab/run.sh</code> 用 Linux 网络命名空间与 iptables 搭出真实拓扑,<code>client-core/cmd/natlab</code> 用 CopySync 真实的 P2P 代码扮演两台设备:</p>+<p><code>tools/natlab/run.sh</code> 用 Linux 网络命名空间与 iptables 搭出真实拓扑,<code>client-core/cmd/natlab</code> 用隔空贴真实的 P2P 代码扮演两台设备:</p><pre><code>[a] 192.168.10.2 ── [rA] 出口 10.255.0.11–14 ──┐[inet] 信令 TURN STUN×4[b] 192.168.20.2 ── [rB] 出口 10.254.0.21–22 ──┘</code></pre>diff --git a/docs/design/windows-client.html b/docs/design/windows-client.htmlindex fde0bef..7961004 100644--- a/docs/design/windows-client.html+++ b/docs/design/windows-client.html@@ -30,27 +30,27 @@<blockquote><p>状态:已实现,随 1.2.0 发布(2026-10-09)。实机验证记录见 <a href="https://github.com/baiyuze/pasteferry/blob/main/design/windows-validation-2026-10-09.md">windows-validation-2026-10-09.md</a>(安装、同步、生命周期)与 <a href="https://github.com/baiyuze/pasteferry/blob/main/design/windows-features-validation-2026-10-09.md">windows-features-validation-2026-10-09.md</a>(托盘、配对弹窗、图片预览)</p><p>目标版本:1.2.0(Mac 与 Windows 同时发布)</p><p>相关:<a href="nat-traversal.html">多出口网络的 NAT 打洞</a></p></blockquote><nav class="toc" aria-label="目录"><strong>目录</strong><ul><li><a href="#一-目标">一、目标</a></li><li><a href="#二-现状-哪些能直接用">二、现状:哪些能直接用</a></li><li><a href="#三-总体架构">三、总体架构</a></li><li><a href="#四-剪贴板">四、剪贴板</a></li><li><a href="#五-跨平台内容兼容">五、跨平台内容兼容</a></li><li><a href="#六-后台服务的生命周期">六、后台服务的生命周期</a></li><li><a href="#七-网络">七、网络</a></li><li><a href="#八-界面">八、界面</a></li><li><a href="#九-安全">九、安全</a></li><li><a href="#十-安装-签名与发布">十、安装、签名与发布</a></li><li><a href="#十一-测试与验证">十一、测试与验证</a></li><li><a href="#十二-里程碑">十二、里程碑</a></li><li><a href="#十三-需要拍板的事">十三、需要拍板的事</a></li><li><a href="#附-要改动的代码">附:要改动的代码</a></li></ul></nav><h2 id="一-目标">一、目标</h2>-<p>让 Windows 电脑加入 CopySync:与 Mac、与其他 Windows 电脑互相同步文本、带格式文本、图片和文件,体验与 Mac 版一致。</p>-<ul><li>在一台上 <code>Ctrl+C</code>,另一台上 <code>Ctrl+V</code>(或 <code>⌘V</code>)。粘贴文件时得到的是真实文件,可以直接粘贴进资源管理器、微信、Office。</li><li>开机自启,关掉窗口照常同步,崩溃自动拉起。Windows 安装时创建桌面快捷方式;后台服务持有托盘图标,点击可打开界面,右键可打开界面或退出 CopySync。</li><li>网络行为与 Mac 版完全相同:直连优先、多出口打洞、自动中转、端到端加密。</li><li>与 Mac 版互通,Mac 端不升级也能和 Windows 配对、同步(协议不变)。</li></ul>+<p>让 Windows 电脑加入隔空贴:与 Mac、与其他 Windows 电脑互相同步文本、带格式文本、图片和文件,体验与 Mac 版一致。</p>+<ul><li>在一台上 <code>Ctrl+C</code>,另一台上 <code>Ctrl+V</code>(或 <code>⌘V</code>)。粘贴文件时得到的是真实文件,可以直接粘贴进资源管理器、微信、Office。</li><li>开机自启,关掉窗口照常同步,崩溃自动拉起。Windows 安装时创建桌面快捷方式;后台服务持有托盘图标,点击可打开界面,右键可打开界面或退出隔空贴。</li><li>网络行为与 Mac 版完全相同:直连优先、多出口打洞、自动中转、端到端加密。</li><li>与 Mac 版互通,Mac 端不升级也能和 Windows 配对、同步(协议不变)。</li></ul><p><strong>一期不做:</strong></p><div class="table-scroll"><table><thead><tr><th scope="col">不做</th><th scope="col">原因</th><th scope="col">何时</th></tr></thead><tbody><tr><td>ARM64 原生包</td><td>Flutter 3.47 才正式支持 Windows ARM64,且只能在 ARM 机器上构建;x64 版在 ARM 上可以模拟运行</td><td>二期,用 GitHub 的 ARM Windows 构建机</td></tr><tr><td>虚拟文件(Outlook 附件、压缩包里直接复制的文件)</td><td>剪贴板里没有真实路径,只有流,需要实现 COM 接口</td><td>视需求</td></tr><tr><td>自动更新、微软商店</td><td>先跑通分发与签名</td><td>二期</td></tr></tbody></table></div><p>支持的系统:Windows 10 与 Windows 11,x64,Windows 10 不限版本。Flutter 引擎(<code>flutter_windows.dll</code>)与 Go 1.26 都要求 Windows 10;引擎直接引用的系统函数 Windows 8 就有,按 DPI 缩放这类新接口是运行时查找、找不到就退回。Windows 7、8 装不上。</p><h2 id="二-现状-哪些能直接用">二、现状:哪些能直接用</h2><p>后台服务除剪贴板外全部是纯 Go:数据库用的是纯 Go 的 <code>modernc.org/sqlite</code>,压缩是纯 Go 的 zstd,cgo 只出现在 <code>internal/clipboard/darwin.go</code>。实测在 Mac 上已经可以直接交叉编译出 Windows 版:</p>-<pre><code>CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build ./cmd/... # copysyncd.exe、copysync-cli.exe-CGO_ENABLED=0 GOOS=windows GOARCH=arm64 go build ./cmd/copysyncd</code></pre>-<div class="table-scroll"><table><thead><tr><th scope="col">模块</th><th scope="col">Windows 上</th><th scope="col">说明</th></tr></thead><tbody><tr><td>信令、配对、签名(<code>transport/signaling</code>、<code>peers</code>、<code>identity</code>)</td><td>直接复用</td><td></td></tr><tr><td>P2P、出口探测、打洞、中转(<code>transport/p2p</code>)</td><td>直接复用</td><td>防火墙与虚拟网卡见第七节</td></tr><tr><td>同步引擎、补发、存储、缓存、回收(<code>sync</code>、<code>store</code>、<code>cache</code>、<code>gc</code>)</td><td>直接复用</td><td></td></tr><tr><td>本机接口(<code>rpc</code>,127.0.0.1 + 一次性 token)</td><td>直接复用</td><td></td></tr><tr><td>数据目录(<code>config.DefaultPaths</code>)</td><td>已有 Windows 分支</td><td><code>%LOCALAPPDATA%\CopySync</code></td></tr><tr><td>打包解包(<code>pack</code>)</td><td>要改</td><td>文件名、符号链接,见第五节</td></tr><tr><td>剪贴板(<code>clipboard</code>)</td><td><strong>要新写</strong></td><td>目前是返回「不支持」的占位实现,见第四节</td></tr><tr><td>进程生命周期(<code>cmd/copysyncd</code>)</td><td>要改</td><td>自启、守护、日志、单实例、注销,见第六节</td></tr><tr><td>界面(<code>ui/</code>)</td><td>要改</td><td>已有 Flutter 的 <code>windows/</code> 工程骨架;后台服务管理、窗口外观、文案,见第八节</td></tr><tr><td>构建与发布(<code>scripts/</code>、CI)</td><td>要新写</td><td>Flutter 的 Windows 版只能在 Windows 上构建,见第十节</td></tr></tbody></table></div>+<pre><code>CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build ./cmd/... # pasteferryd.exe、pasteferry-cli.exe+CGO_ENABLED=0 GOOS=windows GOARCH=arm64 go build ./cmd/pasteferryd</code></pre>+<div class="table-scroll"><table><thead><tr><th scope="col">模块</th><th scope="col">Windows 上</th><th scope="col">说明</th></tr></thead><tbody><tr><td>信令、配对、签名(<code>transport/signaling</code>、<code>peers</code>、<code>identity</code>)</td><td>直接复用</td><td></td></tr><tr><td>P2P、出口探测、打洞、中转(<code>transport/p2p</code>)</td><td>直接复用</td><td>防火墙与虚拟网卡见第七节</td></tr><tr><td>同步引擎、补发、存储、缓存、回收(<code>sync</code>、<code>store</code>、<code>cache</code>、<code>gc</code>)</td><td>直接复用</td><td></td></tr><tr><td>本机接口(<code>rpc</code>,127.0.0.1 + 一次性 token)</td><td>直接复用</td><td></td></tr><tr><td>数据目录(<code>config.DefaultPaths</code>)</td><td>已有 Windows 分支</td><td><code>%LOCALAPPDATA%\PasteFerry</code></td></tr><tr><td>打包解包(<code>pack</code>)</td><td>要改</td><td>文件名、符号链接,见第五节</td></tr><tr><td>剪贴板(<code>clipboard</code>)</td><td><strong>要新写</strong></td><td>目前是返回「不支持」的占位实现,见第四节</td></tr><tr><td>进程生命周期(<code>cmd/pasteferryd</code>)</td><td>要改</td><td>自启、守护、日志、单实例、注销,见第六节</td></tr><tr><td>界面(<code>ui/</code>)</td><td>要改</td><td>已有 Flutter 的 <code>windows/</code> 工程骨架;后台服务管理、窗口外观、文案,见第八节</td></tr><tr><td>构建与发布(<code>scripts/</code>、CI)</td><td>要新写</td><td>Flutter 的 Windows 版只能在 Windows 上构建,见第十节</td></tr></tbody></table></div><h2 id="三-总体架构">三、总体架构</h2><p>与 Mac 版同构,三个可执行文件:</p>-<pre><code>CopySync.exe(Flutter 界面)- │ gRPC,127.0.0.1 随机端口 + token(%LOCALAPPDATA%\CopySync\daemon.json)+<pre><code>PasteFerry.exe(Flutter 界面)+ │ gRPC,127.0.0.1 随机端口 + token(%LOCALAPPDATA%\PasteFerry\daemon.json)▼-copysyncd.exe(Go 后台服务,用户会话内运行,无控制台窗口)+pasteferryd.exe(Go 后台服务,用户会话内运行,无控制台窗口)├─ 剪贴板:隐藏的消息窗口 + Win32 剪贴板 API├─ 同步引擎 / 存储 / 缓存└─ 信令(WebSocket)+ P2P(WebRTC)──► 信令服务器 / 对端设备-copysync-cli.exe(命令行,排障用)</code></pre>+pasteferry-cli.exe(命令行,排障用)</code></pre><p>后台服务必须作为<strong>登录用户的普通进程</strong>运行,不能做成 Windows 服务。Windows 服务运行在会话 0,与用户桌面隔离,访问不到用户的剪贴板。这与 Mac 上用 LaunchAgent、不用 LaunchDaemon 是同一个原因。</p><h2 id="四-剪贴板">四、剪贴板</h2><p>这是一期的主要工作量。用纯 Go 实现(<code>golang.org/x/sys/windows</code> 加按需加载的 user32、kernel32、shell32 函数),不用 cgo,这样仍能在 Mac 上交叉编译。</p>@@ -74,7 +74,7 @@ copysync-cli.exe(命令行,排障用)</code></pre><div class="table-scroll"><table><thead><tr><th scope="col">情况</th><th scope="col">例子</th><th scope="col">处理</th></tr></thead><tbody><tr><td>Windows 不允许的字符 `: * ? " < > \</td><td>\`</td><td><code>会议:纪要.txt</code></td><td>换成对应的全角字符(<code>:*?"<>|\</code>),名字仍然可读。冒号还关系到安全:<code>a.txt:stream</code> 会写进 NTFS 的备用数据流</td></tr><tr><td>结尾是点或空格</td><td><code>notes.</code></td><td>末尾加 <code>_</code></td></tr><tr><td>设备保留名</td><td><code>CON</code>、<code>nul.txt</code>、<code>COM1</code></td><td>前面加 <code>_</code></td></tr><tr><td>只差大小写</td><td><code>Readme.md</code> 与 <code>README.md</code></td><td>第二个改名为 <code>README (2).md</code>,不能互相覆盖</td></tr><tr><td>分解形式的 Unicode</td><td>Mac 上的 <code>が</code> 可能是 <code>か</code> + 濁点两个码位</td><td>统一成组合形式(NFC),否则资源管理器里显示成两个字符、搜索也搜不到。中文不受影响</td></tr><tr><td>路径超过 260 个字符</td><td>深层文件夹</td><td>Go 的 <code>os</code> 包会自动加 <code>\\?\</code> 前缀,读写没问题;只是资源管理器对超长路径支持不好,记一条已知限制</td></tr><tr><td>符号链接</td><td>文件夹里的软链接</td><td>普通用户没有创建符号链接的权限(除非开启了开发者模式)。改为跳过并记录,不能让整次解包失败</td></tr><tr><td>系统垃圾文件</td><td><code>.DS_Store</code>、<code>Thumbs.db</code>、<code>desktop.ini</code></td><td>打包时跳过(Mac 版同步修改)</td></tr></tbody></table></div><p><code>pack.safeJoin</code> 的防目录穿越检查保留,在<strong>清洗文件名之后</strong>做;Windows 上额外拒绝驱动器号开头(<code>C:foo</code>)和 <code>\\</code> 开头的路径。</p><h2 id="六-后台服务的生命周期">六、后台服务的生命周期</h2>-<div class="table-scroll"><table><thead><tr><th scope="col">需求</th><th scope="col">Mac 版的做法</th><th scope="col">Windows 版的做法</th></tr></thead><tbody><tr><td>开机自启</td><td>LaunchAgent</td><td><code>HKCU\Software\Microsoft\Windows\CurrentVersion\Run</code> 下写一项。只影响当前用户,不需要管理员权限</td></tr><tr><td>崩溃自动拉起</td><td>launchd <code>KeepAlive</code>,10 秒节流</td><td><code>copysyncd.exe</code> 自带守护模式:父进程拉起子进程,子进程异常退出就 10 秒后重启</td></tr><tr><td>只运行一个</td><td>launchd 保证</td><td>命名互斥量 <code>Local\CopySync.Daemon</code>,第二个实例直接退出</td></tr><tr><td>不弹黑框</td><td>本来就没有</td><td>以 GUI 子系统编译(<code>-ldflags -H=windowsgui</code>)</td></tr><tr><td>日志</td><td>launchd 把标准输出重定向到文件</td><td>自己写 <code>%LOCALAPPDATA%\CopySync\logs\daemon.log</code>,按大小轮转(Mac 版的日志目前不轮转,一并加上)</td></tr><tr><td>注销、关机</td><td>SIGTERM</td><td>隐藏窗口处理 <code>WM_QUERYENDSESSION</code>/<code>WM_ENDSESSION</code>,正常收尾</td></tr><tr><td>睡眠唤醒</td><td>靠重连巡检</td><td>处理 <code>WM_POWERBROADCAST</code>:唤醒后立即重新探测出口、重连,不等巡检</td></tr><tr><td>升级</td><td>打开新版 App 时校正登录项并重启服务</td><td>安装程序借助「重启管理器」关掉旧进程,装完再启动;界面同样校验版本、必要时重启服务</td></tr></tbody></table></div>+<div class="table-scroll"><table><thead><tr><th scope="col">需求</th><th scope="col">Mac 版的做法</th><th scope="col">Windows 版的做法</th></tr></thead><tbody><tr><td>开机自启</td><td>LaunchAgent</td><td><code>HKCU\Software\Microsoft\Windows\CurrentVersion\Run</code> 下写一项。只影响当前用户,不需要管理员权限</td></tr><tr><td>崩溃自动拉起</td><td>launchd <code>KeepAlive</code>,10 秒节流</td><td><code>pasteferryd.exe</code> 自带守护模式:父进程拉起子进程,子进程异常退出就 10 秒后重启</td></tr><tr><td>只运行一个</td><td>launchd 保证</td><td>命名互斥量 <code>Local\PasteFerry.Daemon</code>,第二个实例直接退出</td></tr><tr><td>不弹黑框</td><td>本来就没有</td><td>以 GUI 子系统编译(<code>-ldflags -H=windowsgui</code>)</td></tr><tr><td>日志</td><td>launchd 把标准输出重定向到文件</td><td>自己写 <code>%LOCALAPPDATA%\PasteFerry\logs\daemon.log</code>,按大小轮转(Mac 版的日志目前不轮转,一并加上)</td></tr><tr><td>注销、关机</td><td>SIGTERM</td><td>隐藏窗口处理 <code>WM_QUERYENDSESSION</code>/<code>WM_ENDSESSION</code>,正常收尾</td></tr><tr><td>睡眠唤醒</td><td>靠重连巡检</td><td>处理 <code>WM_POWERBROADCAST</code>:唤醒后立即重新探测出口、重连,不等巡检</td></tr><tr><td>升级</td><td>打开新版 App 时校正登录项并重启服务</td><td>安装程序借助「重启管理器」关掉旧进程,装完再启动;界面同样校验版本、必要时重启服务</td></tr></tbody></table></div><p>也评估过「计划任务」:它自带失败重启,但创建「登录时运行」的任务通常要管理员权限,与「不需要管理员即可安装」的目标冲突,所以不用。</p><h2 id="七-网络">七、网络</h2><p>打洞、多出口探测、中转、补发的代码原样复用。Windows 上要注意三件事:</p>@@ -87,7 +87,7 @@ copysync-cli.exe(命令行,排障用)</code></pre><p>实现上在 <code>theme.dart</code> 加一层平台差异(字体、图标、标题栏高度、圆角),页面结构与交互不变:复制记录、设备、设置三页。</p><h3 id="2-后台服务管理">2. 后台服务管理</h3><p><code>background_service.dart</code> 目前全是 launchd 的逻辑,抽成接口,分 Mac 与 Windows 两个实现。Windows 的状态判定:</p>-<div class="table-scroll"><table><thead><tr><th scope="col">状态</th><th scope="col">判定</th></tr></thead><tbody><tr><td>未安装</td><td><code>Run</code> 下没有 CopySync 项</td></tr><tr><td>指向旧位置</td><td><code>Run</code> 项的路径不是当前这份 <code>copysyncd.exe</code></td></tr><tr><td>已停止</td><td><code>daemon.json</code> 不存在,或其中的进程号已不在运行</td></tr><tr><td>运行中</td><td>能连上,且版本与界面一致(不一致就重启服务)</td></tr></tbody></table></div>+<div class="table-scroll"><table><thead><tr><th scope="col">状态</th><th scope="col">判定</th></tr></thead><tbody><tr><td>未安装</td><td><code>Run</code> 下没有隔空贴项</td></tr><tr><td>指向旧位置</td><td><code>Run</code> 项的路径不是当前这份 <code>pasteferryd.exe</code></td></tr><tr><td>已停止</td><td><code>daemon.json</code> 不存在,或其中的进程号已不在运行</td></tr><tr><td>运行中</td><td>能连上,且版本与界面一致(不一致就重启服务)</td></tr></tbody></table></div><h3 id="3-文案与小处">3. 文案与小处</h3><ul><li>「这台 Mac」「两台 Mac」等十余处文案改为按平台显示(「这台电脑」「两台设备」)。Mac 版同步修改,因为对端可能是 Windows。</li><li>设备列表的平台图标已有 <code>windows</code> 分支,换成 Fluent 图标即可。</li><li>打开网页用 <code>open</code> 命令的地方改为跨平台的写法。</li><li>截图脚本(<code>tools/screenshots</code>)加 Windows 外观的版本,用于 README 与网站。</li></ul><h2 id="九-安全">九、安全</h2>@@ -95,24 +95,24 @@ copysync-cli.exe(命令行,排障用)</code></pre><h2 id="十-安装-签名与发布">十、安装、签名与发布</h2><h3 id="1-安装包">1. 安装包</h3><p>用 Inno Setup 做<strong>按用户安装</strong>的安装包(类似 VS Code 的「用户安装版」):</p>-<ul><li>装到 <code>%LOCALAPPDATA%\Programs\CopySync</code>,不需要管理员权限,不弹 UAC。</li><li>创建开始菜单项;装完直接打开 CopySync,由界面引导「启用后台同步」,流程与 Mac 一致。</li><li>卸载时停掉后台服务、删掉自启项,询问是否保留复制记录与设备身份。</li><li>另出一个 zip 便携版,给不想运行安装程序的人。</li><li>界面程序依赖 VC++ 运行库(<code>msvcp140.dll</code>、<code>vcruntime140.dll</code>、<code>vcruntime140_1.dll</code>),Windows 不一定自带。构建时从 Visual Studio 里取这三个 DLL 放在 <code>CopySync.exe</code> 旁边(微软说的「应用本地部署」),安装包与便携版都带着,不用另装系统级的运行库。</li></ul>+<ul><li>装到 <code>%LOCALAPPDATA%\Programs\PasteFerry</code>,不需要管理员权限,不弹 UAC。</li><li>创建开始菜单项;装完直接打开隔空贴,由界面引导「启用后台同步」,流程与 Mac 一致。</li><li>卸载时停掉后台服务、删掉自启项,询问是否保留复制记录与设备身份。</li><li>另出一个 zip 便携版,给不想运行安装程序的人。</li><li>界面程序依赖 VC++ 运行库(<code>msvcp140.dll</code>、<code>vcruntime140.dll</code>、<code>vcruntime140_1.dll</code>),Windows 不一定自带。构建时从 Visual Studio 里取这三个 DLL 放在 <code>PasteFerry.exe</code> 旁边(微软说的「应用本地部署」),安装包与便携版都带着,不用另装系统级的运行库。</li></ul><p>也评估过 MSIX:好处是安装干净、能自动更新;但要求必须有受信任的签名证书,且应用写入 <code>%LOCALAPPDATA%</code> 的数据会被重定向到包的私有目录,命令行工具与后台服务对不上路径。一期不用。</p><h3 id="2-代码签名">2. 代码签名</h3><p>不签名的安装包在下载、运行时会被 SmartScreen 拦一下(「Windows 已保护你的电脑」→「更多信息」→「仍要运行」),与 Mac 版没经过公证时「仍要打开」是一回事。可选的路子:</p><div class="table-scroll"><table><thead><tr><th scope="col">方案</th><th scope="col">费用</th><th scope="col">效果</th></tr></thead><tbody><tr><td>不签名(一期)</td><td>0</td><td>每个新版本都被 SmartScreen 拦,README 里写清楚怎么放行</td></tr><tr><td>普通代码签名证书(OV)</td><td>每年数百美元起</td><td>有发布者名称;SmartScreen 信誉要随下载量慢慢积累</td></tr><tr><td>微软的云签名服务</td><td>按月计费</td><td>价格低,但对个人开发者有地区限制,需要确认是否可用</td></tr></tbody></table></div><h3 id="3-构建与发布">3. 构建与发布</h3><p>Flutter 的 Windows 版只能在 Windows 上构建,现有的 <code>scripts/package.sh</code> 跑在 Mac 上,所以 Windows 包由 CI 构建:</p>-<ul><li>新增 GitHub Actions 任务(<code>windows-latest</code>):编译 Go(<code>GOOS=windows</code>)→ <code>flutter build windows</code> → Inno Setup 打包 → 上传到同一个 Release。</li><li>发布时在 Mac 上照常运行 <code>package.sh</code> 出 DMG,推送标签后 CI 补上 Windows 包。</li><li>发布资源沿用「不带版本号」的命名,下载直链不会失效:<code>CopySync-Setup.exe</code>、<code>CopySync-windows-x64.zip</code>。</li><li>CI 的常规检查增加 Windows:<code>go vet</code>、<code>go test</code>、<code>flutter analyze</code>、<code>flutter test</code>。</li></ul>+<ul><li>新增 GitHub Actions 任务(<code>windows-latest</code>):编译 Go(<code>GOOS=windows</code>)→ <code>flutter build windows</code> → Inno Setup 打包 → 上传到同一个 Release。</li><li>发布时在 Mac 上照常运行 <code>package.sh</code> 出 DMG,推送标签后 CI 补上 Windows 包。</li><li>发布资源沿用「不带版本号」的命名,下载直链不会失效:<code>PasteFerry-Setup.exe</code>、<code>PasteFerry-windows-x64.zip</code>。</li><li>CI 的常规检查增加 Windows:<code>go vet</code>、<code>go test</code>、<code>flutter analyze</code>、<code>flutter test</code>。</li></ul><h2 id="十一-测试与验证">十一、测试与验证</h2><ol><li><strong>纯函数单测</strong>(任何系统上都能跑):CF_HTML 头部的生成与解析、DIB 与 PNG 互转(含倒序扫描行、透明通道)、<code>DROPFILES</code> 编解码、换行转换、文件名清洗(第五节每一行一个用例)、敏感标记判定。</li><li><strong>Windows 上的集成测试</strong>:真实剪贴板的读写往返(文本、HTML、图片、文件)、跳过本机写入、密码管理器标记。GitHub 的 Windows 构建机能否访问剪贴板需要先验证;不行的话这部分在本地 Windows 机器上跑。</li><li><strong>Mac ↔ Windows 联调清单</strong>:<ul><li>内容:中英文文本;从网页、Word、Excel 复制的带格式文本;截图、带透明背景的 PNG;单个文件、多个文件、深层文件夹、中文与日文文件名、含 <code>:</code> 的文件名;1 GB 大文件按需拉取。</li><li>粘贴目标:资源管理器、微信、Office、记事本。</li><li>网络:同一局域网、公司多出口网络、家用宽带、防火墙弹窗点「取消」、睡眠唤醒、断网恢复。</li><li>生命周期:注销与重启、升级安装、卸载后重装。</li></ul></li><li><strong>NAT 打洞实验室</strong>:网络代码与平台无关,现有 11 个场景继续覆盖。</li></ol><h2 id="十二-里程碑">十二、里程碑</h2><p>按一个人全职估算,约 6 周:</p>-<div class="table-scroll"><table><thead><tr><th scope="col">阶段</th><th scope="col">内容</th><th scope="col">产出</th><th scope="col">估时</th></tr></thead><tbody><tr><td>M1</td><td>剪贴板实现(第四节)与后台服务生命周期(第六节)</td><td><code>copysyncd.exe</code> 在 Windows 上跑通:用 <code>copysync-cli</code> 能与 Mac 配对、互相同步文本与图片</td><td>2 周</td></tr><tr><td>M2</td><td>文件与内容兼容(第五节)、敏感内容过滤</td><td>联调清单里的内容类全部通过</td><td>1 周</td></tr><tr><td>M3</td><td>界面适配(第八节)</td><td>Windows 外观的界面,能启用、管理后台服务</td><td>1.5 周</td></tr><tr><td>M4</td><td>安装包、CI、文档与网站</td><td>Release 里出现 Windows 安装包,README 与网站补上 Windows</td><td>1 周</td></tr><tr><td>M5</td><td>实机联调与修复,发布 1.2.0</td><td></td><td>0.5 周起</td></tr></tbody></table></div>+<div class="table-scroll"><table><thead><tr><th scope="col">阶段</th><th scope="col">内容</th><th scope="col">产出</th><th scope="col">估时</th></tr></thead><tbody><tr><td>M1</td><td>剪贴板实现(第四节)与后台服务生命周期(第六节)</td><td><code>pasteferryd.exe</code> 在 Windows 上跑通:用 <code>pasteferry-cli</code> 能与 Mac 配对、互相同步文本与图片</td><td>2 周</td></tr><tr><td>M2</td><td>文件与内容兼容(第五节)、敏感内容过滤</td><td>联调清单里的内容类全部通过</td><td>1 周</td></tr><tr><td>M3</td><td>界面适配(第八节)</td><td>Windows 外观的界面,能启用、管理后台服务</td><td>1.5 周</td></tr><tr><td>M4</td><td>安装包、CI、文档与网站</td><td>Release 里出现 Windows 安装包,README 与网站补上 Windows</td><td>1 周</td></tr><tr><td>M5</td><td>实机联调与修复,发布 1.2.0</td><td></td><td>0.5 周起</td></tr></tbody></table></div><p>M1 结束时就能验证最大的不确定点:剪贴板方案、防火墙行为、Windows 上的打洞。之后的阶段风险较小。</p><h2 id="十三-需要拍板的事">十三、需要拍板的事</h2><ol><li><strong>代码签名</strong>:一期不签名(推荐,先验证需求),还是一开始就买证书?</li><li><strong>托盘图标</strong>:已按用户需求加入一期,由后台服务持有,随登录自启、关闭主窗口后保留;退出时停止当前后台同步,但保留下次登录的自启设置。</li><li><strong>ARM64</strong>:一期只出 x64(推荐,ARM 机器可以模拟运行),还是同时出 ARM64?</li><li><strong>Mac 版的敏感内容漏洞</strong>(第四节第 3 条):建议马上单独修,发 1.1.3。</li></ol><h2 id="附-要改动的代码">附:要改动的代码</h2>-<div class="table-scroll"><table><thead><tr><th scope="col">位置</th><th scope="col">改动</th></tr></thead><tbody><tr><td><code>client-core/internal/clipboard/windows.go</code>(新)</td><td>Win32 剪贴板实现、消息窗口、格式转换</td></tr><tr><td><code>client-core/internal/clipboard/other.go</code></td><td>构建标签改为排除 darwin 与 windows</td></tr><tr><td><code>client-core/internal/clipboard/sensitive.go</code>(新)</td><td>敏感内容判定(两个平台共用接口)</td></tr><tr><td><code>client-core/internal/pack/pack.go</code></td><td>文件名清洗、符号链接、垃圾文件过滤</td></tr><tr><td><code>client-core/internal/transport/p2p/egress_history.go</code></td><td>网络标识排除虚拟网卡</td></tr><tr><td><code>client-core/internal/identity/identity.go</code></td><td>Windows 上用 DPAPI 保护私钥</td></tr><tr><td><code>client-core/cmd/copysyncd/main.go</code></td><td>守护模式、单实例、日志文件、会话结束与电源事件</td></tr><tr><td><code>ui/lib/background_service.dart</code></td><td>拆成接口与 Mac、Windows 两个实现</td></tr><tr><td><code>ui/lib/theme.dart</code>、<code>ui/lib/main.dart</code></td><td>平台外观、自绘标题栏</td></tr><tr><td><code>ui/windows/runner/</code></td><td>Mica 背景、窗口尺寸记忆、应用图标</td></tr><tr><td><code>scripts/</code>、<code>.github/workflows/</code></td><td>Windows 构建、安装包、发布</td></tr><tr><td><code>tools/installer/</code>(新)</td><td>Inno Setup 脚本</td></tr></tbody></table></div>+<div class="table-scroll"><table><thead><tr><th scope="col">位置</th><th scope="col">改动</th></tr></thead><tbody><tr><td><code>client-core/internal/clipboard/windows.go</code>(新)</td><td>Win32 剪贴板实现、消息窗口、格式转换</td></tr><tr><td><code>client-core/internal/clipboard/other.go</code></td><td>构建标签改为排除 darwin 与 windows</td></tr><tr><td><code>client-core/internal/clipboard/sensitive.go</code>(新)</td><td>敏感内容判定(两个平台共用接口)</td></tr><tr><td><code>client-core/internal/pack/pack.go</code></td><td>文件名清洗、符号链接、垃圾文件过滤</td></tr><tr><td><code>client-core/internal/transport/p2p/egress_history.go</code></td><td>网络标识排除虚拟网卡</td></tr><tr><td><code>client-core/internal/identity/identity.go</code></td><td>Windows 上用 DPAPI 保护私钥</td></tr><tr><td><code>client-core/cmd/pasteferryd/main.go</code></td><td>守护模式、单实例、日志文件、会话结束与电源事件</td></tr><tr><td><code>ui/lib/background_service.dart</code></td><td>拆成接口与 Mac、Windows 两个实现</td></tr><tr><td><code>ui/lib/theme.dart</code>、<code>ui/lib/main.dart</code></td><td>平台外观、自绘标题栏</td></tr><tr><td><code>ui/windows/runner/</code></td><td>Mica 背景、窗口尺寸记忆、应用图标</td></tr><tr><td><code>scripts/</code>、<code>.github/workflows/</code></td><td>Windows 构建、安装包、发布</td></tr><tr><td><code>tools/installer/</code>(新)</td><td>Inno Setup 脚本</td></tr></tbody></table></div></article></main>diff --git a/docs/download/index.html b/docs/download/index.htmlindex 977cd8b..72b5b15 100644--- a/docs/download/index.html+++ b/docs/download/index.html@@ -51,7 +51,6 @@</nav></div></header>- <p class="renamed"><span class="wrap">隔空贴原名 CopySync。应用和安装包里暂时还叫 CopySync,下个版本会改过来。</span></p><main id="main"><section class="hero guide-hero">@@ -76,11 +75,11 @@<div class="os-grid"><div class="os-steps"><div class="dl-row">- <a class="button" href="https://github.com/baiyuze/pasteferry/releases/latest/download/CopySync-Setup.exe"><svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M10 3v10m0 0-4-4m4 4 4-4M4 16h12"/></svg>下载安装程序</a>+ <a class="button" href="https://github.com/baiyuze/pasteferry/releases/latest/download/PasteFerry-Setup.exe"><svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M10 3v10m0 0-4-4m4 4 4-4M4 16h12"/></svg>下载安装程序</a></div>- <p class="small">不想运行安装程序的话,可以下载<a href="https://github.com/baiyuze/pasteferry/releases/latest/download/CopySync-windows-x64.zip">便携版</a>,解压后直接运行。</p>+ <p class="small">不想运行安装程序的话,可以下载<a href="https://github.com/baiyuze/pasteferry/releases/latest/download/PasteFerry-windows-x64.zip">便携版</a>,解压后直接运行。</p><ol class="steps">- <li>运行 CopySync-Setup.exe,装在当前用户目录下,不需要管理员权限。<span class="aside">提示「Windows 已保护你的电脑」时,点「更多信息」,再点「仍要运行」。</span></li>+ <li>运行 PasteFerry-Setup.exe,装在当前用户目录下,不需要管理员权限。<span class="aside">提示「Windows 已保护你的电脑」时,点「更多信息」,再点「仍要运行」。</span></li><li>打开隔空贴,点「启用后台同步」。防火墙询问时选择允许。</li></ol></div>@@ -97,10 +96,10 @@<div class="os-grid"><div class="os-steps"><div class="dl-row" data-mac-chip>- <a class="button" href="https://github.com/baiyuze/pasteferry/releases/latest/download/CopySync-mac-apple-silicon.dmg"><svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M10 3v10m0 0-4-4m4 4 4-4M4 16h12"/></svg>Apple 芯片(M1 及更新)</a>- <a class="button quiet" href="https://github.com/baiyuze/pasteferry/releases/latest/download/CopySync-mac-intel.dmg"><svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M10 3v10m0 0-4-4m4 4 4-4M4 16h12"/></svg>Intel 芯片</a>+ <a class="button" href="https://github.com/baiyuze/pasteferry/releases/latest/download/PasteFerry-mac-apple-silicon.dmg"><svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M10 3v10m0 0-4-4m4 4 4-4M4 16h12"/></svg>Apple 芯片(M1 及更新)</a>+ <a class="button quiet" href="https://github.com/baiyuze/pasteferry/releases/latest/download/PasteFerry-mac-intel.dmg"><svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M10 3v10m0 0-4-4m4 4 4-4M4 16h12"/></svg>Intel 芯片</a></div>- <p class="small">两种芯片都能用的<a href="https://github.com/baiyuze/pasteferry/releases/latest/download/CopySync.dmg">通用版</a>也在,体积大一倍。</p>+ <p class="small">两种芯片都能用的<a href="https://github.com/baiyuze/pasteferry/releases/latest/download/PasteFerry.dmg">通用版</a>也在,体积大一倍。</p><ol class="steps"><li>打开下载的 DMG,把隔空贴拖进「应用程序」。</li><li>从「应用程序」里打开。<span class="aside">第一次会提示「无法验证开发者」:到「系统设置 → 隐私与安全性」,点页面下方的「仍要打开」。</span></li>@@ -125,28 +124,28 @@<div class="os-steps"><h4>Ubuntu、Debian 及其衍生版</h4><div class="dl-row">- <a class="button" href="https://github.com/baiyuze/pasteferry/releases/latest/download/CopySync-linux-amd64.deb"><svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M10 3v10m0 0-4-4m4 4 4-4M4 16h12"/></svg>x64</a>- <a class="button quiet" href="https://github.com/baiyuze/pasteferry/releases/latest/download/CopySync-linux-arm64.deb"><svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M10 3v10m0 0-4-4m4 4 4-4M4 16h12"/></svg>ARM64</a>+ <a class="button" href="https://github.com/baiyuze/pasteferry/releases/latest/download/PasteFerry-linux-amd64.deb"><svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M10 3v10m0 0-4-4m4 4 4-4M4 16h12"/></svg>x64</a>+ <a class="button quiet" href="https://github.com/baiyuze/pasteferry/releases/latest/download/PasteFerry-linux-arm64.deb"><svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M10 3v10m0 0-4-4m4 4 4-4M4 16h12"/></svg>ARM64</a></div><div class="code"><button class="copy" type="button" data-done="已复制">复制</button>-<pre><code>sudo apt install ./CopySync-linux-amd64.deb</code></pre>+<pre><code>sudo apt install ./PasteFerry-linux-amd64.deb</code></pre></div><h4>其他发行版</h4><div class="dl-row">- <a class="button quiet" href="https://github.com/baiyuze/pasteferry/releases/latest/download/CopySync-linux-amd64.tar.gz"><svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M10 3v10m0 0-4-4m4 4 4-4M4 16h12"/></svg>x64</a>- <a class="button quiet" href="https://github.com/baiyuze/pasteferry/releases/latest/download/CopySync-linux-arm64.tar.gz"><svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M10 3v10m0 0-4-4m4 4 4-4M4 16h12"/></svg>ARM64</a>+ <a class="button quiet" href="https://github.com/baiyuze/pasteferry/releases/latest/download/PasteFerry-linux-amd64.tar.gz"><svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M10 3v10m0 0-4-4m4 4 4-4M4 16h12"/></svg>x64</a>+ <a class="button quiet" href="https://github.com/baiyuze/pasteferry/releases/latest/download/PasteFerry-linux-arm64.tar.gz"><svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M10 3v10m0 0-4-4m4 4 4-4M4 16h12"/></svg>ARM64</a></div><div class="code"><button class="copy" type="button" data-done="已复制">复制</button>-<pre><code>tar xzf CopySync-linux-amd64.tar.gz-./CopySync/install.sh</code></pre>+<pre><code>tar xzf PasteFerry-linux-amd64.tar.gz+./PasteFerry/install.sh</code></pre></div></div><ul class="points"><li>需要图形桌面:X11,或者带 XWayland 的 Wayland 桌面,GNOME、KDE 等主流桌面默认都带。</li><li>不确定是 x64 还是 ARM64:在终端运行 <code>uname -m</code>,显示 <code>x86_64</code> 是 x64,<code>aarch64</code> 是 ARM64。</li>- <li>.deb 装在 /opt/CopySync,出现在应用菜单里。tar.gz 解压到哪里都能运行,<code>install.sh</code> 把它加进应用菜单。</li>+ <li>.deb 装在 /opt/PasteFerry,出现在应用菜单里。tar.gz 解压到哪里都能运行,<code>install.sh</code> 把它加进应用菜单。</li><li>打开后点「启用后台同步」,之后随登录自动启动。GNOME 默认不显示托盘图标,从应用菜单打开窗口。</li><li>需要 GTK 3。在 Ubuntu 24.04 的 GNOME(Wayland)上实测过。</li></ul>diff --git a/docs/en/cloud/index.html b/docs/en/cloud/index.htmlindex b57a478..11e34b8 100644--- a/docs/en/cloud/index.html+++ b/docs/en/cloud/index.html@@ -51,7 +51,6 @@</nav></div></header>- <p class="renamed"><span class="wrap">PasteFerry used to be called CopySync. The app and the downloads keep the old name until the next version.</span></p><main id="main"><section class="hero guide-hero">@@ -167,15 +166,15 @@<li>Run these lines, with your public IP on the last one:<span class="aside">On ARM, replace <code>amd64</code> with <code>arm64</code>.</span><div class="code"><button class="copy" type="button" data-done="Copied">Copy</button>-<pre><code>curl -LO https://github.com/baiyuze/pasteferry/releases/latest/download/copysync-server-linux-amd64.tar.gz-tar xzf copysync-server-linux-amd64.tar.gz-cd copysync-server-linux-amd64+<pre><code>curl -LO https://github.com/baiyuze/pasteferry/releases/latest/download/pasteferry-server-linux-amd64.tar.gz+tar xzf pasteferry-server-linux-amd64.tar.gz+cd pasteferry-server-linux-amd64sudo ./install.sh 203.0.113.10</code></pre></div></li><li>The <code>ws://203.0.113.10:8787/signal</code> address at the end is what you enter in the apps.</li></ol><ul class="points">- <li><strong>Registers a systemd service</strong> that starts on boot; the config is <code>/etc/copysync/server.env</code>.</li>+ <li><strong>Registers a systemd service</strong> that starts on boot; the config is <code>/etc/pasteferry/server.env</code>.</li><li><strong>Upgrade:</strong> download the new version, extract it and run <code>sudo ./install.sh</code> again; your config is kept.</li><li><strong>Docker works too:</strong> see the <a href="https://github.com/baiyuze/pasteferry/blob/main/server/deploy/README.md">server deployment guide</a>.</li></ul>@@ -186,18 +185,18 @@ sudo ./install.sh 203.0.113.10</code></pre><pre class="t-body"><span class="t-prompt">$</span> sudo ./install.sh 203.0.113.10<span class="t-step">▶ Installing the binary to /usr/local/bin</span><span class="t-step">▶ Writing the systemd unit</span>-<span class="t-step">▶ Writing /etc/copysync/server.env (relay address 203.0.113.10)</span>+<span class="t-step">▶ Writing /etc/pasteferry/server.env (relay address 203.0.113.10)</span><span class="t-step">▶ Starting</span>✓ Running-Installed: copysync-server 1.7.0-In CopySync on each computer, set Settings → Signaling server to:+Installed: pasteferry-server 1.7.0+In PasteFerry on each computer, set Settings → Signaling server to:<span class="t-url">ws://203.0.113.10:8787/signal</span>- Config /etc/copysync/server.env- Logs journalctl -u copysync-server -f- Restart systemctl restart copysync-server+ Config /etc/pasteferry/server.env+ Logs journalctl -u pasteferry-server -f+ Restart systemctl restart pasteferry-serverUninstall sudo ./install.sh uninstallOpen in your firewall: TCP 8787 (signaling), UDP 3478 (STUN and TURN), UDP 32768-60999 (relay ports, assigned by the OS)</pre>@@ -237,10 +236,10 @@ Open in your firewall: TCP 8787 (signaling), UDP 3478 (STUN and TURN), UDP 32768<table class="manage"><caption>For later</caption><tbody>- <tr><th scope="row">Status</th><td><code>systemctl status copysync-server</code></td></tr>- <tr><th scope="row">Logs</th><td><code>journalctl -u copysync-server -f</code></td></tr>- <tr><th scope="row">Restart</th><td><code>sudo systemctl restart copysync-server</code></td></tr>- <tr><th scope="row">Config</th><td><code>/etc/copysync/server.env</code>; restart the service after editing</td></tr>+ <tr><th scope="row">Status</th><td><code>systemctl status pasteferry-server</code></td></tr>+ <tr><th scope="row">Logs</th><td><code>journalctl -u pasteferry-server -f</code></td></tr>+ <tr><th scope="row">Restart</th><td><code>sudo systemctl restart pasteferry-server</code></td></tr>+ <tr><th scope="row">Config</th><td><code>/etc/pasteferry/server.env</code>; restart the service after editing</td></tr><tr><th scope="row">Upgrade</th><td>Download the new version, extract it and run <code>sudo ./install.sh</code> again; your config is kept</td></tr><tr><th scope="row">Uninstall</th><td><code>sudo ./install.sh uninstall</code></td></tr></tbody>diff --git a/docs/en/download/index.html b/docs/en/download/index.htmlindex 54256fe..661c893 100644--- a/docs/en/download/index.html+++ b/docs/en/download/index.html@@ -51,7 +51,6 @@</nav></div></header>- <p class="renamed"><span class="wrap">PasteFerry used to be called CopySync. The app and the downloads keep the old name until the next version.</span></p><main id="main"><section class="hero guide-hero">@@ -76,11 +75,11 @@<div class="os-grid"><div class="os-steps"><div class="dl-row">- <a class="button" href="https://github.com/baiyuze/pasteferry/releases/latest/download/CopySync-Setup.exe"><svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M10 3v10m0 0-4-4m4 4 4-4M4 16h12"/></svg>Download the installer</a>+ <a class="button" href="https://github.com/baiyuze/pasteferry/releases/latest/download/PasteFerry-Setup.exe"><svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M10 3v10m0 0-4-4m4 4 4-4M4 16h12"/></svg>Download the installer</a></div>- <p class="small">Rather not run an installer? Get the <a href="https://github.com/baiyuze/pasteferry/releases/latest/download/CopySync-windows-x64.zip">portable zip</a>, extract it and run PasteFerry from there.</p>+ <p class="small">Rather not run an installer? Get the <a href="https://github.com/baiyuze/pasteferry/releases/latest/download/PasteFerry-windows-x64.zip">portable zip</a>, extract it and run PasteFerry from there.</p><ol class="steps">- <li>Run CopySync-Setup.exe. It installs for the current user, no administrator rights needed.<span class="aside">If you see "Windows protected your PC", click More info, then Run anyway.</span></li>+ <li>Run PasteFerry-Setup.exe. It installs for the current user, no administrator rights needed.<span class="aside">If you see "Windows protected your PC", click More info, then Run anyway.</span></li><li>Open PasteFerry and click Turn on background sync. Allow it if Windows Firewall asks.</li></ol></div>@@ -97,10 +96,10 @@<div class="os-grid"><div class="os-steps"><div class="dl-row" data-mac-chip>- <a class="button" href="https://github.com/baiyuze/pasteferry/releases/latest/download/CopySync-mac-apple-silicon.dmg"><svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M10 3v10m0 0-4-4m4 4 4-4M4 16h12"/></svg>Apple silicon (M1 and later)</a>- <a class="button quiet" href="https://github.com/baiyuze/pasteferry/releases/latest/download/CopySync-mac-intel.dmg"><svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M10 3v10m0 0-4-4m4 4 4-4M4 16h12"/></svg>Intel</a>+ <a class="button" href="https://github.com/baiyuze/pasteferry/releases/latest/download/PasteFerry-mac-apple-silicon.dmg"><svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M10 3v10m0 0-4-4m4 4 4-4M4 16h12"/></svg>Apple silicon (M1 and later)</a>+ <a class="button quiet" href="https://github.com/baiyuze/pasteferry/releases/latest/download/PasteFerry-mac-intel.dmg"><svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M10 3v10m0 0-4-4m4 4 4-4M4 16h12"/></svg>Intel</a></div>- <p class="small">A <a href="https://github.com/baiyuze/pasteferry/releases/latest/download/CopySync.dmg">universal version</a> that runs on both is also available, at twice the size.</p>+ <p class="small">A <a href="https://github.com/baiyuze/pasteferry/releases/latest/download/PasteFerry.dmg">universal version</a> that runs on both is also available, at twice the size.</p><ol class="steps"><li>Open the DMG you downloaded and drag PasteFerry into Applications.</li><li>Open it from Applications.<span class="aside">The first time, macOS says it can't verify the developer: go to System Settings → Privacy & Security and click Open Anyway near the bottom.</span></li>@@ -125,28 +124,28 @@<div class="os-steps"><h4>Ubuntu, Debian and derivatives</h4><div class="dl-row">- <a class="button" href="https://github.com/baiyuze/pasteferry/releases/latest/download/CopySync-linux-amd64.deb"><svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M10 3v10m0 0-4-4m4 4 4-4M4 16h12"/></svg>x64</a>- <a class="button quiet" href="https://github.com/baiyuze/pasteferry/releases/latest/download/CopySync-linux-arm64.deb"><svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M10 3v10m0 0-4-4m4 4 4-4M4 16h12"/></svg>ARM64</a>+ <a class="button" href="https://github.com/baiyuze/pasteferry/releases/latest/download/PasteFerry-linux-amd64.deb"><svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M10 3v10m0 0-4-4m4 4 4-4M4 16h12"/></svg>x64</a>+ <a class="button quiet" href="https://github.com/baiyuze/pasteferry/releases/latest/download/PasteFerry-linux-arm64.deb"><svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M10 3v10m0 0-4-4m4 4 4-4M4 16h12"/></svg>ARM64</a></div><div class="code"><button class="copy" type="button" data-done="Copied">Copy</button>-<pre><code>sudo apt install ./CopySync-linux-amd64.deb</code></pre>+<pre><code>sudo apt install ./PasteFerry-linux-amd64.deb</code></pre></div><h4>Other distributions</h4><div class="dl-row">- <a class="button quiet" href="https://github.com/baiyuze/pasteferry/releases/latest/download/CopySync-linux-amd64.tar.gz"><svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M10 3v10m0 0-4-4m4 4 4-4M4 16h12"/></svg>x64</a>- <a class="button quiet" href="https://github.com/baiyuze/pasteferry/releases/latest/download/CopySync-linux-arm64.tar.gz"><svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M10 3v10m0 0-4-4m4 4 4-4M4 16h12"/></svg>ARM64</a>+ <a class="button quiet" href="https://github.com/baiyuze/pasteferry/releases/latest/download/PasteFerry-linux-amd64.tar.gz"><svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M10 3v10m0 0-4-4m4 4 4-4M4 16h12"/></svg>x64</a>+ <a class="button quiet" href="https://github.com/baiyuze/pasteferry/releases/latest/download/PasteFerry-linux-arm64.tar.gz"><svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M10 3v10m0 0-4-4m4 4 4-4M4 16h12"/></svg>ARM64</a></div><div class="code"><button class="copy" type="button" data-done="Copied">Copy</button>-<pre><code>tar xzf CopySync-linux-amd64.tar.gz-./CopySync/install.sh</code></pre>+<pre><code>tar xzf PasteFerry-linux-amd64.tar.gz+./PasteFerry/install.sh</code></pre></div></div><ul class="points"><li>Needs a graphical desktop: X11, or Wayland with XWayland, which GNOME, KDE and other major desktops include by default.</li><li>Not sure whether you have x64 or ARM64? Run <code>uname -m</code> in a terminal: <code>x86_64</code> means x64, <code>aarch64</code> means ARM64.</li>- <li>The .deb installs to /opt/CopySync and adds PasteFerry to the app menu. The tar.gz runs from wherever you extract it, and <code>install.sh</code> adds it to the app menu.</li>+ <li>The .deb installs to /opt/PasteFerry and adds PasteFerry to the app menu. The tar.gz runs from wherever you extract it, and <code>install.sh</code> adds it to the app menu.</li><li>Once it's open, click Turn on background sync; from then on it starts when you log in. GNOME shows no tray icon by default, so open the window from the app menu.</li><li>Needs GTK 3. Tested on Ubuntu 24.04 with GNOME (Wayland).</li></ul>diff --git a/docs/en/index.html b/docs/en/index.htmlindex e45d2b9..bcae49b 100644--- a/docs/en/index.html+++ b/docs/en/index.html@@ -132,7 +132,7 @@"name": "Both computers are on the same network. Why can't they find each other?","acceptedAnswer": {"@type": "Answer",- "text": "Check that they're really on the same subnet: wired and Wi‑Fi in many offices, guest networks, and Wi‑Fi with client isolation don't let devices see each other. In that case, on the computer entering the code, click On a different subnet? and enter the address shown under the other computer's code. On Windows, allow PasteFerry when the firewall asks on first run; if you clicked Cancel, click Allow under Settings → Local network. On a Mac, turn on CopySync Daemon in System Settings → Privacy & Security → Local Network. More in the same network guide."+ "text": "Check that they're really on the same subnet: wired and Wi‑Fi in many offices, guest networks, and Wi‑Fi with client isolation don't let devices see each other. In that case, on the computer entering the code, click On a different subnet? and enter the address shown under the other computer's code. On Windows, allow PasteFerry when the firewall asks on first run; if you clicked Cancel, click Allow under Settings → Local network. On a Mac, turn on PasteFerry Daemon in System Settings → Privacy & Security → Local Network. More in the same network guide."}},{@@ -199,7 +199,6 @@</nav></div></header>- <p class="renamed"><span class="wrap">PasteFerry used to be called CopySync. The app and the downloads keep the old name until the next version.</span></p><main id="main"><section class="hero">@@ -462,7 +461,7 @@<div><h3><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linejoin="round" aria-hidden="true"><rect x="3" y="4" width="18" height="12" rx="1.5"/><path d="M9 20h6M12 16v4"/></svg>Windows</h3><ol>- <li>Run CopySync-Setup.exe. It installs for the current user, no administrator rights needed.<span class="aside">PasteFerry isn't code-signed yet, so Windows says "Windows protected your PC": click More info, then Run anyway. To skip the installer, get the <a href="https://github.com/baiyuze/pasteferry/releases/latest/download/CopySync-windows-x64.zip">portable zip</a>.</span></li>+ <li>Run PasteFerry-Setup.exe. It installs for the current user, no administrator rights needed.<span class="aside">PasteFerry isn't code-signed yet, so Windows says "Windows protected your PC": click More info, then Run anyway. To skip the installer, get the <a href="https://github.com/baiyuze/pasteferry/releases/latest/download/PasteFerry-windows-x64.zip">portable zip</a>.</span></li><li>Open PasteFerry and click Turn on background sync. Allow it if Windows Firewall asks. After you close the window it keeps running in the notification area.</li><li>To sync across networks, enter your server address in Settings and press Enter. On the same network, leave it empty.</li></ol>@@ -471,7 +470,7 @@<div><h3><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linejoin="round" aria-hidden="true"><rect x="3" y="4" width="18" height="12" rx="1.5"/><path d="M9 20h6M12 16v4"/></svg>Linux</h3><ol>- <li>On Ubuntu, Debian and similar, download the .deb and run <code>sudo apt install ./CopySync-linux-amd64.deb</code>; on other distributions, download the tar.gz, extract it and run <code>./CopySync/install.sh</code>.</li>+ <li>On Ubuntu, Debian and similar, download the .deb and run <code>sudo apt install ./PasteFerry-linux-amd64.deb</code>; on other distributions, download the tar.gz, extract it and run <code>./PasteFerry/install.sh</code>.</li><li>Open PasteFerry from the app menu and click Turn on background sync. From then on it starts when you log in.</li><li>To sync across networks, enter your server address in Settings and press Enter. On the same network, leave it empty.</li></ol>@@ -549,7 +548,7 @@</details><details><summary>Both computers are on the same network. Why can't they find each other?</summary>- <div class="answer"><p>Check that they're really on the same subnet: wired and Wi‑Fi in many offices, guest networks, and Wi‑Fi with client isolation don't let devices see each other. In that case, on the computer entering the code, click On a different subnet? and enter the address shown under the other computer's code.</p><p>On Windows, allow PasteFerry when the firewall asks on first run; if you clicked Cancel, click Allow under Settings → Local network. On a Mac, turn on CopySync Daemon in System Settings → Privacy & Security → Local Network. More in the <a href="lan/#faq">same network guide</a>.</p></div>+ <div class="answer"><p>Check that they're really on the same subnet: wired and Wi‑Fi in many offices, guest networks, and Wi‑Fi with client isolation don't let devices see each other. In that case, on the computer entering the code, click On a different subnet? and enter the address shown under the other computer's code.</p><p>On Windows, allow PasteFerry when the firewall asks on first run; if you clicked Cancel, click Allow under Settings → Local network. On a Mac, turn on PasteFerry Daemon in System Settings → Privacy & Security → Local Network. More in the <a href="lan/#faq">same network guide</a>.</p></div></details><details><summary>Windows? Linux? iPhone?</summary>diff --git a/docs/en/lan/index.html b/docs/en/lan/index.htmlindex ab8c456..413b51e 100644--- a/docs/en/lan/index.html+++ b/docs/en/lan/index.html@@ -51,7 +51,6 @@</nav></div></header>- <p class="renamed"><span class="wrap">PasteFerry used to be called CopySync. The app and the downloads keep the old name until the next version.</span></p><main id="main"><section class="hero guide-hero">@@ -107,7 +106,7 @@<dl class="fallbacks"><div><dt>The same network</dt><dd>Both computers behind the same router; Wi‑Fi and wired can mix. Guest networks and Wi‑Fi with client isolation keep devices apart, and in many offices wired and Wi‑Fi are separate subnets: see <a href="#subnet">different subnets</a> below.</dd></div><div><dt>Windows Firewall</dt><dd>On first run, Windows asks whether PasteFerry may get through the firewall; allow it. If you clicked Cancel, click Allow under Settings → Local network in PasteFerry, which asks for administrator approval once.</dd></div>- <div><dt>Local Network on macOS</dt><dd>From macOS 15, the first time it reaches a device on your network, macOS asks whether CopySync Daemon may find devices on your local network; allow it. If you declined, turn it on in System Settings → Privacy & Security → Local Network.</dd></div>+ <div><dt>Local Network on macOS</dt><dd>From macOS 15, the first time it reaches a device on your network, macOS asks whether PasteFerry Daemon may find devices on your local network; allow it. If you declined, turn it on in System Settings → Privacy & Security → Local Network.</dd></div><div><dt>No server address</dt><dd>Leave the server field in Settings empty. To sync across networks later, add a server or use Tailscale; paired devices stay paired.</dd></div></dl></div>@@ -176,7 +175,7 @@<div class="faq"><details><summary>The other computer can't be found</summary>- <div class="answer"><p>Make sure both are on the network with background sync on. Then try entering the other computer's address on the one entering the code: if that works, they're on different subnets, or the network blocks mDNS.</p><p>Still nothing? Check the other computer's firewall. On Windows, click Allow under Settings → Local network; on a Mac, make sure CopySync Daemon is on under System Settings → Privacy & Security → Local Network and the macOS firewall isn't blocking it.</p></div>+ <div class="answer"><p>Make sure both are on the network with background sync on. Then try entering the other computer's address on the one entering the code: if that works, they're on different subnets, or the network blocks mDNS.</p><p>Still nothing? Check the other computer's firewall. On Windows, click Allow under Settings → Local network; on a Mac, make sure PasteFerry Daemon is on under System Settings → Privacy & Security → Local Network and the macOS firewall isn't blocking it.</p></div></details><details><summary>Does it sync away from this network?</summary>diff --git a/docs/en/server/index.html b/docs/en/server/index.htmlindex 6dac96c..c50ea87 100644--- a/docs/en/server/index.html+++ b/docs/en/server/index.html@@ -51,7 +51,6 @@</nav></div></header>- <p class="renamed"><span class="wrap">PasteFerry used to be called CopySync. The app and the downloads keep the old name until the next version.</span></p><main id="main"><section class="hero guide-hero">@@ -141,23 +140,23 @@<div class="os-grid"><div class="os-steps"><ol class="steps">- <li>Download <a href="https://github.com/baiyuze/pasteferry/releases/latest/download/copysync-server-windows-amd64.zip">copysync-server-windows-amd64.zip</a> and choose Extract All.</li>+ <li>Download <a href="https://github.com/baiyuze/pasteferry/releases/latest/download/pasteferry-server-windows-amd64.zip">pasteferry-server-windows-amd64.zip</a> and choose Extract All.</li><li>Open the extracted folder and double-click <code>install.cmd</code>.<span class="aside">If you see "Windows protected your PC", click More info, then Run anyway; when User Account Control asks, click Yes. The server isn't code-signed yet, which is why Windows asks once.</span></li><li>Installation continues in a new window. The <code>ws://…/signal</code> address at the end is what you enter in the apps.</li></ol>- <a class="button" href="https://github.com/baiyuze/pasteferry/releases/latest/download/copysync-server-windows-amd64.zip"><svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M10 3v10m0 0-4-4m4 4 4-4M4 16h12"/></svg>Download the Windows server</a>+ <a class="button" href="https://github.com/baiyuze/pasteferry/releases/latest/download/pasteferry-server-windows-amd64.zip"><svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M10 3v10m0 0-4-4m4 4 4-4M4 16h12"/></svg>Download the Windows server</a><ul class="points">- <li><strong>Runs as a Windows service:</strong> starts with Windows, no sign-in needed, no window. It appears as CopySync Server in Services.</li>- <li><strong>Firewall already allowed:</strong> the script adds an inbound rule for copysync-server.exe only, so there are no ports to open.</li>+ <li><strong>Runs as a Windows service:</strong> starts with Windows, no sign-in needed, no window. It appears as PasteFerry Server in Services.</li>+ <li><strong>Firewall already allowed:</strong> the script adds an inbound rule for pasteferry-server.exe only, so there are no ports to open.</li><li><strong>Wrong address picked</strong> (several network adapters, say from a VM or VPN): type <code>cmd</code> in the address bar of the extracted folder, press Enter and run <code>install.cmd 192.168.1.20</code> with your address.</li><li>Windows 10 and 11, x64.</li></ul></div><div class="os-figures">- <figure class="explorer" role="img" aria-label="The extracted folder holds copysync-server.exe, install.cmd, install.ps1, README.md and uninstall.cmd; double-click install.cmd">- <div class="t-bar win"><span class="t-tab folder">copysync-server-windows-amd64</span><span class="t-ctl" aria-hidden="true"><i></i><i></i><i></i></span></div>+ <figure class="explorer" role="img" aria-label="The extracted folder holds pasteferry-server.exe, install.cmd, install.ps1, README.md and uninstall.cmd; double-click install.cmd">+ <div class="t-bar win"><span class="t-tab folder">pasteferry-server-windows-amd64</span><span class="t-ctl" aria-hidden="true"><i></i><i></i><i></i></span></div><ul class="files">- <li><span class="f-icon exe" aria-hidden="true"></span><span class="f-name">copysync-server.exe</span></li>+ <li><span class="f-icon exe" aria-hidden="true"></span><span class="f-name">pasteferry-server.exe</span></li><li class="hl"><span class="f-icon cmd" aria-hidden="true"></span><span class="f-name">install.cmd</span><em>Double-click</em></li><li><span class="f-icon doc" aria-hidden="true"></span><span class="f-name">install.ps1</span></li><li><span class="f-icon doc" aria-hidden="true"></span><span class="f-name">README.md</span></li>@@ -167,20 +166,20 @@<figure class="term" role="img" aria-label="The window after install.cmd finishes: it stops the old version, installs, registers the service, allows it through the firewall and starts it, then prints the address ws://192.168.1.20:8787/signal"><div class="t-bar win"><span class="t-tab"><svg viewBox="0 0 24 24" fill="currentColor" aria-hidden="true"><path d="M3 5.5 10.5 4.5v7H3zM11.5 4.4 21 3v8.5h-9.5zM3 12.5h7.5v7L3 18.5zM11.5 12.5H21V21l-9.5-1.4z"/></svg>Administrator: Windows PowerShell</span><span class="t-ctl" aria-hidden="true"><i></i><i></i><i></i></span></div><pre class="t-body"><span class="t-step">> Stopping the running version</span>-<span class="t-step">> Installing to C:\Program Files\CopySync Server</span>-<span class="t-step">> Registering the service CopySyncServer (relay address 192.168.1.20)</span>+<span class="t-step">> Installing to C:\Program Files\PasteFerry Server</span>+<span class="t-step">> Registering the service PasteFerryServer (relay address 192.168.1.20)</span><span class="t-step">> Allowing it through Windows Firewall</span><span class="t-step">> Starting</span>√ Running-Installed: copysync-server 1.7.0. It runs as a Windows service and starts with Windows.-In CopySync on each computer, set Settings > Signaling server to:+Installed: pasteferry-server 1.7.0. It runs as a Windows service and starts with Windows.+In PasteFerry on each computer, set Settings > Signaling server to:<span class="t-url">ws://192.168.1.20:8787/signal</span>- Program C:\Program Files\CopySync Server- Logs C:\ProgramData\CopySync Server\server.log- Restart Restart-Service CopySyncServer (in an administrator PowerShell)+ Program C:\Program Files\PasteFerry Server+ Logs C:\ProgramData\PasteFerry Server\server.log+ Restart Restart-Service PasteFerryServer (in an administrator PowerShell)Uninstall double-click uninstall.cmd</pre></figure></div>@@ -189,9 +188,9 @@ In CopySync on each computer, set Settings > Signaling server to:<table class="manage"><caption>For later</caption><tbody>- <tr><th scope="row">Status</th><td><code>Get-Service CopySyncServer</code> in an administrator PowerShell, or find CopySync Server in Services</td></tr>- <tr><th scope="row">Logs</th><td><code>C:\ProgramData\CopySync Server\server.log</code></td></tr>- <tr><th scope="row">Restart</th><td><code>Restart-Service CopySyncServer</code> in an administrator PowerShell</td></tr>+ <tr><th scope="row">Status</th><td><code>Get-Service PasteFerryServer</code> in an administrator PowerShell, or find PasteFerry Server in Services</td></tr>+ <tr><th scope="row">Logs</th><td><code>C:\ProgramData\PasteFerry Server\server.log</code></td></tr>+ <tr><th scope="row">Restart</th><td><code>Restart-Service PasteFerryServer</code> in an administrator PowerShell</td></tr><tr><th scope="row">Upgrade</th><td>Download the new version, extract it and double-click <code>install.cmd</code> again; your settings are kept</td></tr><tr><th scope="row">Uninstall</th><td>Double-click <code>uninstall.cmd</code>; it removes the service, the firewall rule and the files</td></tr></tbody>@@ -207,9 +206,9 @@ In CopySync on each computer, set Settings > Signaling server to:<li>Open Terminal and run these lines:<div class="code"><button class="copy" type="button" data-done="Copied">Copy</button>-<pre><code>curl -LO https://github.com/baiyuze/pasteferry/releases/latest/download/copysync-server-macos.tar.gz-tar xzf copysync-server-macos.tar.gz-cd copysync-server-macos+<pre><code>curl -LO https://github.com/baiyuze/pasteferry/releases/latest/download/pasteferry-server-macos.tar.gz+tar xzf pasteferry-server-macos.tar.gz+cd pasteferry-server-macos./install.sh</code></pre></div></li><li>The <code>ws://…/signal</code> address at the end is what you enter in the apps.</li>@@ -217,27 +216,27 @@ cd copysync-server-macos<ul class="points"><li><strong>No administrator rights needed.</strong> It runs in the background whenever you're logged in, and macOS restarts it if it exits.</li><li><strong>Keep this Mac awake:</strong> in System Settings → Energy (Battery → Options on a laptop), turn on the option that prevents automatic sleep.</li>- <li><strong>If the macOS firewall is on,</strong> the script ends with the command to allow copysync-server.</li>+ <li><strong>If the macOS firewall is on,</strong> the script ends with the command to allow pasteferry-server.</li><li>Intel and Apple silicon, macOS 13 or later.</li></ul></div><div class="os-figures"><figure class="term" role="img" aria-label="Output of ./install.sh in Terminal: it installs, writes the LaunchAgent and starts the server, then prints the address ws://192.168.1.20:8787/signal">- <div class="t-bar mac"><span class="t-lights" aria-hidden="true"><i></i><i></i><i></i></span><span class="t-title">copysync-server-macos — zsh</span></div>+ <div class="t-bar mac"><span class="t-lights" aria-hidden="true"><i></i><i></i><i></i></span><span class="t-title">pasteferry-server-macos — zsh</span></div><pre class="t-body"><span class="t-prompt">%</span> ./install.sh<span class="t-step">▶ Stopping the running version</span>-<span class="t-step">▶ Installing to /Users/me/Library/Application Support/CopySync Server</span>+<span class="t-step">▶ Installing to /Users/me/Library/Application Support/PasteFerry Server</span><span class="t-step">▶ Writing the LaunchAgent (relay address 192.168.1.20)</span><span class="t-step">▶ Starting</span>✓ Running-Installed: copysync-server 1.7.0. It starts whenever you log in to this Mac.-In CopySync on each computer, set Settings → Signaling server to:+Installed: pasteferry-server 1.7.0. It starts whenever you log in to this Mac.+In PasteFerry on each computer, set Settings → Signaling server to:<span class="t-url">ws://192.168.1.20:8787/signal</span>- Logs /Users/me/Library/Logs/CopySync/server.log- Restart launchctl kickstart -k gui/501/com.copysync.server+ Logs /Users/me/Library/Logs/PasteFerry/server.log+ Restart launchctl kickstart -k gui/501/com.pasteferry.serverUninstall ./install.sh uninstall</pre></figure></div>@@ -246,8 +245,8 @@ In CopySync on each computer, set Settings → Signaling server to:<table class="manage"><caption>For later</caption><tbody>- <tr><th scope="row">Logs</th><td><code>~/Library/Logs/CopySync/server.log</code></td></tr>- <tr><th scope="row">Restart</th><td><code>launchctl kickstart -k gui/$(id -u)/com.copysync.server</code></td></tr>+ <tr><th scope="row">Logs</th><td><code>~/Library/Logs/PasteFerry/server.log</code></td></tr>+ <tr><th scope="row">Restart</th><td><code>launchctl kickstart -k gui/$(id -u)/com.pasteferry.server</code></td></tr><tr><th scope="row">Upgrade</th><td>Download the new version, extract it and run <code>./install.sh</code> again; your settings are kept</td></tr><tr><th scope="row">Uninstall</th><td><code>./install.sh uninstall</code></td></tr></tbody>@@ -263,9 +262,9 @@ In CopySync on each computer, set Settings → Signaling server to:<li>On the machine itself, or over ssh, run these lines:<span class="aside">On ARM, such as a Raspberry Pi with a 64-bit OS, replace <code>amd64</code> with <code>arm64</code>.</span><div class="code"><button class="copy" type="button" data-done="Copied">Copy</button>-<pre><code>curl -LO https://github.com/baiyuze/pasteferry/releases/latest/download/copysync-server-linux-amd64.tar.gz-tar xzf copysync-server-linux-amd64.tar.gz-cd copysync-server-linux-amd64+<pre><code>curl -LO https://github.com/baiyuze/pasteferry/releases/latest/download/pasteferry-server-linux-amd64.tar.gz+tar xzf pasteferry-server-linux-amd64.tar.gz+cd pasteferry-server-linux-amd64sudo ./install.sh</code></pre></div></li><li>The <code>ws://…/signal</code> address at the end is what you enter in the apps.</li>@@ -282,18 +281,18 @@ sudo ./install.sh</code></pre><pre class="t-body"><span class="t-prompt">$</span> sudo ./install.sh<span class="t-step">▶ Installing the binary to /usr/local/bin</span><span class="t-step">▶ Writing the systemd unit</span>-<span class="t-step">▶ Writing /etc/copysync/server.env (relay address 192.168.1.20)</span>+<span class="t-step">▶ Writing /etc/pasteferry/server.env (relay address 192.168.1.20)</span><span class="t-step">▶ Starting</span>✓ Running-Installed: copysync-server 1.7.0-In CopySync on each computer, set Settings → Signaling server to:+Installed: pasteferry-server 1.7.0+In PasteFerry on each computer, set Settings → Signaling server to:<span class="t-url">ws://192.168.1.20:8787/signal</span>- Config /etc/copysync/server.env- Logs journalctl -u copysync-server -f- Restart systemctl restart copysync-server+ Config /etc/pasteferry/server.env+ Logs journalctl -u pasteferry-server -f+ Restart systemctl restart pasteferry-serverUninstall sudo ./install.sh uninstallOpen in your firewall: TCP 8787 (signaling), UDP 3478 (STUN and TURN), UDP 32768-60999 (relay ports, assigned by the OS)</pre>@@ -304,10 +303,10 @@ Open in your firewall: TCP 8787 (signaling), UDP 3478 (STUN and TURN), UDP 32768<table class="manage"><caption>For later</caption><tbody>- <tr><th scope="row">Status</th><td><code>systemctl status copysync-server</code></td></tr>- <tr><th scope="row">Logs</th><td><code>journalctl -u copysync-server -f</code></td></tr>- <tr><th scope="row">Restart</th><td><code>sudo systemctl restart copysync-server</code></td></tr>- <tr><th scope="row">Config</th><td><code>/etc/copysync/server.env</code>; restart the service after editing</td></tr>+ <tr><th scope="row">Status</th><td><code>systemctl status pasteferry-server</code></td></tr>+ <tr><th scope="row">Logs</th><td><code>journalctl -u pasteferry-server -f</code></td></tr>+ <tr><th scope="row">Restart</th><td><code>sudo systemctl restart pasteferry-server</code></td></tr>+ <tr><th scope="row">Config</th><td><code>/etc/pasteferry/server.env</code>; restart the service after editing</td></tr><tr><th scope="row">Upgrade</th><td>Download the new version, extract it and run <code>sudo ./install.sh</code> again; your config is kept</td></tr><tr><th scope="row">Uninstall</th><td><code>sudo ./install.sh uninstall</code></td></tr></tbody>@@ -359,7 +358,7 @@ Open in your firewall: TCP 8787 (signaling), UDP 3478 (STUN and TURN), UDP 32768</details><details><summary>The server's address changed</summary>- <div class="answer"><p>Run the script again with the new address: <code>install.cmd new-address</code> on Windows, <code>./install.sh new-address</code> on a Mac. On Linux, edit <code>-turn-ip</code> in <code>/etc/copysync/server.env</code> and restart the service. Then update the address on each computer.</p><p>Reserving the address in your router avoids this.</p></div>+ <div class="answer"><p>Run the script again with the new address: <code>install.cmd new-address</code> on Windows, <code>./install.sh new-address</code> on a Mac. On Linux, edit <code>-turn-ip</code> in <code>/etc/pasteferry/server.env</code> and restart the service. Then update the address on each computer.</p><p>Reserving the address in your router avoids this.</p></div></details><details><summary>Does it sync away from the LAN?</summary>diff --git a/docs/en/start/index.html b/docs/en/start/index.htmlindex c53d99a..e20fec8 100644--- a/docs/en/start/index.html+++ b/docs/en/start/index.html@@ -51,7 +51,6 @@</nav></div></header>- <p class="renamed"><span class="wrap">PasteFerry used to be called CopySync. The app and the downloads keep the old name until the next version.</span></p><main id="main"><section class="hero guide-hero">@@ -86,7 +85,7 @@<div class="qs-app"><h3><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linejoin="round" aria-hidden="true"><rect x="3" y="4" width="18" height="12" rx="1.5"/><path d="M9 20h6M12 16v4"/></svg>Windows</h3><ol class="steps">- <li>Run CopySync-Setup.exe; no administrator rights needed.<span class="aside">If you see "Windows protected your PC", click More info, then Run anyway.</span></li>+ <li>Run PasteFerry-Setup.exe; no administrator rights needed.<span class="aside">If you see "Windows protected your PC", click More info, then Run anyway.</span></li><li>Open PasteFerry and click Turn on background sync. Allow it if Windows Firewall asks. After you close the window it keeps running in the notification area.</li></ol><a class="button" href="../../en/download/#windows"><svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M10 3v10m0 0-4-4m4 4 4-4M4 16h12"/></svg>Download for Windows</a>diff --git a/docs/en/tailscale/index.html b/docs/en/tailscale/index.htmlindex 16b8261..bb373ed 100644--- a/docs/en/tailscale/index.html+++ b/docs/en/tailscale/index.html@@ -51,7 +51,6 @@</nav></div></header>- <p class="renamed"><span class="wrap">PasteFerry used to be called CopySync. The app and the downloads keep the old name until the next version.</span></p><main id="main"><section class="hero guide-hero">@@ -196,7 +195,7 @@</details><details><summary>Pairing can't find the other computer</summary>- <div class="answer"><p>First make sure Tailscale is connected on both: run <code>tailscale ping other-address</code> and try again once it answers.</p><p>If ping works but pairing doesn't, the other computer's firewall is likely blocking it. On Windows, click Allow under Settings → Local network in PasteFerry; on a Mac, turn on CopySync Daemon under System Settings → Privacy & Security → Local Network.</p></div>+ <div class="answer"><p>First make sure Tailscale is connected on both: run <code>tailscale ping other-address</code> and try again once it answers.</p><p>If ping works but pairing doesn't, the other computer's firewall is likely blocking it. On Windows, click Allow under Settings → Local network in PasteFerry; on a Mac, turn on PasteFerry Daemon under System Settings → Privacy & Security → Local Network.</p></div></details><details><summary>Does every computer need Tailscale?</summary>diff --git a/docs/index.html b/docs/index.htmlindex ba781d3..de68a88 100644--- a/docs/index.html+++ b/docs/index.html@@ -36,7 +36,7 @@(function () {try {var paths = {"zh": "", "zh-tw": "zh-tw/", "zh-hk": "zh-hk/", "en": "en/", "ja": "ja/"};- var pick = localStorage.getItem("copysync-lang");+ var pick = localStorage.getItem("pasteferry-lang");if (!paths.hasOwnProperty(pick)) {pick = "";if (/bot|crawl|spider|slurp|lighthouse/i.test(navigator.userAgent)) return;@@ -156,7 +156,7 @@"name": "在同一个网络里,为什么找不到另一台?","acceptedAnswer": {"@type": "Answer",- "text": "先看两台是不是真的在同一个网段:公司里有线和无线、访客网络、开了「AP 隔离」的 Wi‑Fi 常常不互通,局域网发现过不去。这时在输入配对码的那台点「不在同一网段?」,填上另一台配对码下面显示的地址。 Windows 上,第一次运行时防火墙会询问,要选允许;点过取消的话,在「设置 → 局域网」里点「放行」。Mac 上,要在「系统设置 → 隐私与安全性 → 本地网络」里打开 CopySync Daemon。更多见同一网络教程。"+ "text": "先看两台是不是真的在同一个网段:公司里有线和无线、访客网络、开了「AP 隔离」的 Wi‑Fi 常常不互通,局域网发现过不去。这时在输入配对码的那台点「不在同一网段?」,填上另一台配对码下面显示的地址。 Windows 上,第一次运行时防火墙会询问,要选允许;点过取消的话,在「设置 → 局域网」里点「放行」。Mac 上,要在「系统设置 → 隐私与安全性 → 本地网络」里打开 PasteFerry Daemon。更多见同一网络教程。"}},{@@ -223,7 +223,6 @@</nav></div></header>- <p class="renamed"><span class="wrap">隔空贴原名 CopySync。应用和安装包里暂时还叫 CopySync,下个版本会改过来。</span></p><main id="main"><section class="hero">@@ -486,7 +485,7 @@<div><h3><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linejoin="round" aria-hidden="true"><rect x="3" y="4" width="18" height="12" rx="1.5"/><path d="M9 20h6M12 16v4"/></svg>Windows</h3><ol>- <li>运行 CopySync-Setup.exe。装在当前用户目录下,不需要管理员权限。<span class="aside">隔空贴还没有代码签名,Windows 会提示「Windows 已保护你的电脑」:点「更多信息」,再点「仍要运行」。不想运行安装程序的话,可以下载<a href="https://github.com/baiyuze/pasteferry/releases/latest/download/CopySync-windows-x64.zip">便携版</a>。</span></li>+ <li>运行 PasteFerry-Setup.exe。装在当前用户目录下,不需要管理员权限。<span class="aside">隔空贴还没有代码签名,Windows 会提示「Windows 已保护你的电脑」:点「更多信息」,再点「仍要运行」。不想运行安装程序的话,可以下载<a href="https://github.com/baiyuze/pasteferry/releases/latest/download/PasteFerry-windows-x64.zip">便携版</a>。</span></li><li>打开隔空贴,点「启用后台同步」。关掉窗口后它在右下角的托盘里继续运行。防火墙询问时选择允许。</li><li>跨网络同步时,在「设置」里填入服务器地址,按回车;同一个网络里不用填。</li></ol>@@ -495,7 +494,7 @@<div><h3><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linejoin="round" aria-hidden="true"><rect x="3" y="4" width="18" height="12" rx="1.5"/><path d="M9 20h6M12 16v4"/></svg>Linux</h3><ol>- <li>Ubuntu、Debian 等下载 .deb,运行 <code>sudo apt install ./CopySync-linux-amd64.deb</code>;其他发行版下载 tar.gz,解压后运行 <code>./CopySync/install.sh</code>。</li>+ <li>Ubuntu、Debian 等下载 .deb,运行 <code>sudo apt install ./PasteFerry-linux-amd64.deb</code>;其他发行版下载 tar.gz,解压后运行 <code>./PasteFerry/install.sh</code>。</li><li>从应用菜单里打开隔空贴,点「启用后台同步」。之后它随登录自动启动。</li><li>跨网络同步时,在「设置」里填入服务器地址,按回车;同一个网络里不用填。</li></ol>@@ -573,7 +572,7 @@</details><details><summary>在同一个网络里,为什么找不到另一台?</summary>- <div class="answer"><p>先看两台是不是真的在同一个网段:公司里有线和无线、访客网络、开了「AP 隔离」的 Wi‑Fi 常常不互通,局域网发现过不去。这时在输入配对码的那台点「不在同一网段?」,填上另一台配对码下面显示的地址。</p><p>Windows 上,第一次运行时防火墙会询问,要选允许;点过取消的话,在「设置 → 局域网」里点「放行」。Mac 上,要在「系统设置 → 隐私与安全性 → 本地网络」里打开 CopySync Daemon。更多见<a href="lan/#faq">同一网络教程</a>。</p></div>+ <div class="answer"><p>先看两台是不是真的在同一个网段:公司里有线和无线、访客网络、开了「AP 隔离」的 Wi‑Fi 常常不互通,局域网发现过不去。这时在输入配对码的那台点「不在同一网段?」,填上另一台配对码下面显示的地址。</p><p>Windows 上,第一次运行时防火墙会询问,要选允许;点过取消的话,在「设置 → 局域网」里点「放行」。Mac 上,要在「系统设置 → 隐私与安全性 → 本地网络」里打开 PasteFerry Daemon。更多见<a href="lan/#faq">同一网络教程</a>。</p></div></details><details><summary>支持 Windows 和 Linux 吗?iPhone 呢?</summary>diff --git a/docs/ja/cloud/index.html b/docs/ja/cloud/index.htmlindex c577fc6..0c1f5ca 100644--- a/docs/ja/cloud/index.html+++ b/docs/ja/cloud/index.html@@ -51,7 +51,6 @@</nav></div></header>- <p class="renamed"><span class="wrap">PasteFerry の旧名は CopySync です。次のバージョンまで、アプリとインストーラーには CopySync と表示されます。</span></p><main id="main"><section class="hero guide-hero">@@ -167,15 +166,15 @@<li>次の行を順に実行します。最後の行はあなたのグローバル IP に置き換えます:<span class="aside">ARM では <code>amd64</code> を <code>arm64</code> に置き換えます。</span><div class="code"><button class="copy" type="button" data-done="コピーしました">コピー</button>-<pre><code>curl -LO https://github.com/baiyuze/pasteferry/releases/latest/download/copysync-server-linux-amd64.tar.gz-tar xzf copysync-server-linux-amd64.tar.gz-cd copysync-server-linux-amd64+<pre><code>curl -LO https://github.com/baiyuze/pasteferry/releases/latest/download/pasteferry-server-linux-amd64.tar.gz+tar xzf pasteferry-server-linux-amd64.tar.gz+cd pasteferry-server-linux-amd64sudo ./install.sh 203.0.113.10</code></pre></div></li><li>最後に表示される <code>ws://203.0.113.10:8787/signal</code> がアプリに入力するアドレスです。</li></ol><ul class="points">- <li><strong>systemd サービスとして登録</strong>され、起動時に立ち上がります。設定は <code>/etc/copysync/server.env</code>。</li>+ <li><strong>systemd サービスとして登録</strong>され、起動時に立ち上がります。設定は <code>/etc/pasteferry/server.env</code>。</li><li><strong>更新:</strong>新しいバージョンをダウンロードして展開し、もう一度 <code>sudo ./install.sh</code> を実行。設定は引き継がれます。</li><li><strong>Docker でも動かせます:</strong><a href="https://github.com/baiyuze/pasteferry/blob/main/server/deploy/README.md">サーバーの構築手順</a>(英語・中国語)をご覧ください。</li></ul>@@ -186,18 +185,18 @@ sudo ./install.sh 203.0.113.10</code></pre><pre class="t-body"><span class="t-prompt">$</span> sudo ./install.sh 203.0.113.10<span class="t-step">▶ Installing the binary to /usr/local/bin</span><span class="t-step">▶ Writing the systemd unit</span>-<span class="t-step">▶ Writing /etc/copysync/server.env (relay address 203.0.113.10)</span>+<span class="t-step">▶ Writing /etc/pasteferry/server.env (relay address 203.0.113.10)</span><span class="t-step">▶ Starting</span>✓ Running-Installed: copysync-server 1.7.0-In CopySync on each computer, set Settings → Signaling server to:+Installed: pasteferry-server 1.7.0+In PasteFerry on each computer, set Settings → Signaling server to:<span class="t-url">ws://203.0.113.10:8787/signal</span>- Config /etc/copysync/server.env- Logs journalctl -u copysync-server -f- Restart systemctl restart copysync-server+ Config /etc/pasteferry/server.env+ Logs journalctl -u pasteferry-server -f+ Restart systemctl restart pasteferry-serverUninstall sudo ./install.sh uninstallOpen in your firewall: TCP 8787 (signaling), UDP 3478 (STUN and TURN), UDP 32768-60999 (relay ports, assigned by the OS)</pre>@@ -237,10 +236,10 @@ Open in your firewall: TCP 8787 (signaling), UDP 3478 (STUN and TURN), UDP 32768<table class="manage"><caption>あとで使うもの</caption><tbody>- <tr><th scope="row">状態</th><td><code>systemctl status copysync-server</code></td></tr>- <tr><th scope="row">ログ</th><td><code>journalctl -u copysync-server -f</code></td></tr>- <tr><th scope="row">再起動</th><td><code>sudo systemctl restart copysync-server</code></td></tr>- <tr><th scope="row">設定</th><td><code>/etc/copysync/server.env</code>。編集したらサービスを再起動</td></tr>+ <tr><th scope="row">状態</th><td><code>systemctl status pasteferry-server</code></td></tr>+ <tr><th scope="row">ログ</th><td><code>journalctl -u pasteferry-server -f</code></td></tr>+ <tr><th scope="row">再起動</th><td><code>sudo systemctl restart pasteferry-server</code></td></tr>+ <tr><th scope="row">設定</th><td><code>/etc/pasteferry/server.env</code>。編集したらサービスを再起動</td></tr><tr><th scope="row">更新</th><td>新しいバージョンをダウンロードして展開し、もう一度 <code>sudo ./install.sh</code> を実行。設定は引き継がれます</td></tr><tr><th scope="row">アンインストール</th><td><code>sudo ./install.sh uninstall</code></td></tr></tbody>diff --git a/docs/ja/download/index.html b/docs/ja/download/index.htmlindex a960445..9e2a0a4 100644--- a/docs/ja/download/index.html+++ b/docs/ja/download/index.html@@ -51,7 +51,6 @@</nav></div></header>- <p class="renamed"><span class="wrap">PasteFerry の旧名は CopySync です。次のバージョンまで、アプリとインストーラーには CopySync と表示されます。</span></p><main id="main"><section class="hero guide-hero">@@ -76,11 +75,11 @@<div class="os-grid"><div class="os-steps"><div class="dl-row">- <a class="button" href="https://github.com/baiyuze/pasteferry/releases/latest/download/CopySync-Setup.exe"><svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M10 3v10m0 0-4-4m4 4 4-4M4 16h12"/></svg>インストーラーをダウンロード</a>+ <a class="button" href="https://github.com/baiyuze/pasteferry/releases/latest/download/PasteFerry-Setup.exe"><svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M10 3v10m0 0-4-4m4 4 4-4M4 16h12"/></svg>インストーラーをダウンロード</a></div>- <p class="small">インストーラーを使いたくない場合は、<a href="https://github.com/baiyuze/pasteferry/releases/latest/download/CopySync-windows-x64.zip">ポータブル版</a>をダウンロードし、展開してそのまま実行できます。</p>+ <p class="small">インストーラーを使いたくない場合は、<a href="https://github.com/baiyuze/pasteferry/releases/latest/download/PasteFerry-windows-x64.zip">ポータブル版</a>をダウンロードし、展開してそのまま実行できます。</p><ol class="steps">- <li>CopySync-Setup.exe を実行します。現在のユーザーのフォルダにインストールされ、管理者権限は要りません。<span class="aside">「Windows によって PC が保護されました」と出たら、「詳細情報」を押してから「実行」を押します。</span></li>+ <li>PasteFerry-Setup.exe を実行します。現在のユーザーのフォルダにインストールされ、管理者権限は要りません。<span class="aside">「Windows によって PC が保護されました」と出たら、「詳細情報」を押してから「実行」を押します。</span></li><li>PasteFerry を開き、「バックグラウンド同期を有効にする」をクリックします。ファイアウォールに聞かれたら許可します。</li></ol></div>@@ -97,10 +96,10 @@<div class="os-grid"><div class="os-steps"><div class="dl-row" data-mac-chip>- <a class="button" href="https://github.com/baiyuze/pasteferry/releases/latest/download/CopySync-mac-apple-silicon.dmg"><svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M10 3v10m0 0-4-4m4 4 4-4M4 16h12"/></svg>Apple シリコン(M1 以降)</a>- <a class="button quiet" href="https://github.com/baiyuze/pasteferry/releases/latest/download/CopySync-mac-intel.dmg"><svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M10 3v10m0 0-4-4m4 4 4-4M4 16h12"/></svg>Intel プロセッサ</a>+ <a class="button" href="https://github.com/baiyuze/pasteferry/releases/latest/download/PasteFerry-mac-apple-silicon.dmg"><svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M10 3v10m0 0-4-4m4 4 4-4M4 16h12"/></svg>Apple シリコン(M1 以降)</a>+ <a class="button quiet" href="https://github.com/baiyuze/pasteferry/releases/latest/download/PasteFerry-mac-intel.dmg"><svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M10 3v10m0 0-4-4m4 4 4-4M4 16h12"/></svg>Intel プロセッサ</a></div>- <p class="small">両方で動く<a href="https://github.com/baiyuze/pasteferry/releases/latest/download/CopySync.dmg">ユニバーサル版</a>もあります。サイズは 2 倍です。</p>+ <p class="small">両方で動く<a href="https://github.com/baiyuze/pasteferry/releases/latest/download/PasteFerry.dmg">ユニバーサル版</a>もあります。サイズは 2 倍です。</p><ol class="steps"><li>ダウンロードした DMG を開き、PasteFerry を「アプリケーション」にドラッグします。</li><li>「アプリケーション」から開きます。<span class="aside">初回は「開発元を検証できません」と表示されます。「システム設定 → プライバシーとセキュリティ」を開き、ページ下部の「このまま開く」をクリックします。</span></li>@@ -125,28 +124,28 @@<div class="os-steps"><h4>Ubuntu、Debian とその派生ディストリビューション</h4><div class="dl-row">- <a class="button" href="https://github.com/baiyuze/pasteferry/releases/latest/download/CopySync-linux-amd64.deb"><svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M10 3v10m0 0-4-4m4 4 4-4M4 16h12"/></svg>x64</a>- <a class="button quiet" href="https://github.com/baiyuze/pasteferry/releases/latest/download/CopySync-linux-arm64.deb"><svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M10 3v10m0 0-4-4m4 4 4-4M4 16h12"/></svg>ARM64</a>+ <a class="button" href="https://github.com/baiyuze/pasteferry/releases/latest/download/PasteFerry-linux-amd64.deb"><svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M10 3v10m0 0-4-4m4 4 4-4M4 16h12"/></svg>x64</a>+ <a class="button quiet" href="https://github.com/baiyuze/pasteferry/releases/latest/download/PasteFerry-linux-arm64.deb"><svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M10 3v10m0 0-4-4m4 4 4-4M4 16h12"/></svg>ARM64</a></div><div class="code"><button class="copy" type="button" data-done="コピーしました">コピー</button>-<pre><code>sudo apt install ./CopySync-linux-amd64.deb</code></pre>+<pre><code>sudo apt install ./PasteFerry-linux-amd64.deb</code></pre></div><h4>ほかのディストリビューション</h4><div class="dl-row">- <a class="button quiet" href="https://github.com/baiyuze/pasteferry/releases/latest/download/CopySync-linux-amd64.tar.gz"><svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M10 3v10m0 0-4-4m4 4 4-4M4 16h12"/></svg>x64</a>- <a class="button quiet" href="https://github.com/baiyuze/pasteferry/releases/latest/download/CopySync-linux-arm64.tar.gz"><svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M10 3v10m0 0-4-4m4 4 4-4M4 16h12"/></svg>ARM64</a>+ <a class="button quiet" href="https://github.com/baiyuze/pasteferry/releases/latest/download/PasteFerry-linux-amd64.tar.gz"><svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M10 3v10m0 0-4-4m4 4 4-4M4 16h12"/></svg>x64</a>+ <a class="button quiet" href="https://github.com/baiyuze/pasteferry/releases/latest/download/PasteFerry-linux-arm64.tar.gz"><svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M10 3v10m0 0-4-4m4 4 4-4M4 16h12"/></svg>ARM64</a></div><div class="code"><button class="copy" type="button" data-done="コピーしました">コピー</button>-<pre><code>tar xzf CopySync-linux-amd64.tar.gz-./CopySync/install.sh</code></pre>+<pre><code>tar xzf PasteFerry-linux-amd64.tar.gz+./PasteFerry/install.sh</code></pre></div></div><ul class="points"><li>グラフィカルなデスクトップが必要です。X11、または XWayland 付きの Wayland デスクトップで動きます。GNOME、KDE などの主要なデスクトップには標準で入っています。</li><li>x64 か ARM64 かわからないときは、ターミナルで <code>uname -m</code> を実行します。<code>x86_64</code> なら x64、<code>aarch64</code> なら ARM64 です。</li>- <li>.deb は /opt/CopySync にインストールされ、アプリケーションメニューに表示されます。tar.gz はどこに展開しても動き、<code>install.sh</code> でアプリケーションメニューに追加できます。</li>+ <li>.deb は /opt/PasteFerry にインストールされ、アプリケーションメニューに表示されます。tar.gz はどこに展開しても動き、<code>install.sh</code> でアプリケーションメニューに追加できます。</li><li>開いたら「バックグラウンド同期を有効にする」をクリックします。以後はログイン時に自動で起動します。GNOME は標準ではトレイアイコンを表示しないので、ウィンドウはアプリケーションメニューから開きます。</li><li>GTK 3 が必要です。Ubuntu 24.04 の GNOME(Wayland)で動作を確認しています。</li></ul>diff --git a/docs/ja/index.html b/docs/ja/index.htmlindex 1ec0953..1fa7894 100644--- a/docs/ja/index.html+++ b/docs/ja/index.html@@ -132,7 +132,7 @@"name": "同じネットワークなのに、もう一台が見つからないのはなぜ?","acceptedAnswer": {"@type": "Answer",- "text": "まず本当に同じサブネットか確認してください。会社の有線と Wi‑Fi、ゲストネットワーク、クライアント分離が有効な Wi‑Fi では、デバイス同士が見えないことがよくあります。その場合は、コードを入力する側で「別のサブネットにありますか?」をクリックし、相手のコードの下に表示されたアドレスを入力します。 Windows では初回起動時にファイアウォールに聞かれたら許可してください。キャンセルした場合は「設定 → ローカルネットワーク」で「許可」をクリックします。Mac では「システム設定 → プライバシーとセキュリティ → ローカルネットワーク」で CopySync Daemon をオンにします。詳しくは同じネットワークでの手順を。"+ "text": "まず本当に同じサブネットか確認してください。会社の有線と Wi‑Fi、ゲストネットワーク、クライアント分離が有効な Wi‑Fi では、デバイス同士が見えないことがよくあります。その場合は、コードを入力する側で「別のサブネットにありますか?」をクリックし、相手のコードの下に表示されたアドレスを入力します。 Windows では初回起動時にファイアウォールに聞かれたら許可してください。キャンセルした場合は「設定 → ローカルネットワーク」で「許可」をクリックします。Mac では「システム設定 → プライバシーとセキュリティ → ローカルネットワーク」で PasteFerry Daemon をオンにします。詳しくは同じネットワークでの手順を。"}},{@@ -199,7 +199,6 @@</nav></div></header>- <p class="renamed"><span class="wrap">PasteFerry の旧名は CopySync です。次のバージョンまで、アプリとインストーラーには CopySync と表示されます。</span></p><main id="main"><section class="hero">@@ -462,7 +461,7 @@<div><h3><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linejoin="round" aria-hidden="true"><rect x="3" y="4" width="18" height="12" rx="1.5"/><path d="M9 20h6M12 16v4"/></svg>Windows</h3><ol>- <li>CopySync-Setup.exe を実行します。現在のユーザーのフォルダにインストールされ、管理者権限は要りません。<span class="aside">PasteFerry はまだコード署名されていないため、「Windows によって PC が保護されました」と表示されます。「詳細情報」を押してから「実行」を押してください。インストーラーを使いたくない場合は<a href="https://github.com/baiyuze/pasteferry/releases/latest/download/CopySync-windows-x64.zip">ポータブル版</a>もあります。</span></li>+ <li>PasteFerry-Setup.exe を実行します。現在のユーザーのフォルダにインストールされ、管理者権限は要りません。<span class="aside">PasteFerry はまだコード署名されていないため、「Windows によって PC が保護されました」と表示されます。「詳細情報」を押してから「実行」を押してください。インストーラーを使いたくない場合は<a href="https://github.com/baiyuze/pasteferry/releases/latest/download/PasteFerry-windows-x64.zip">ポータブル版</a>もあります。</span></li><li>PasteFerry を開き、「バックグラウンド同期を有効にする」をクリックします。ファイアウォールに聞かれたら許可します。ウィンドウを閉じても、画面右下の通知領域で動き続けます。</li><li>ネットワークをまたいで同期するときは、「設定」でサーバーのアドレスを入力して Enter を押します。同じネットワークなら空欄のままです。</li></ol>@@ -471,7 +470,7 @@<div><h3><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linejoin="round" aria-hidden="true"><rect x="3" y="4" width="18" height="12" rx="1.5"/><path d="M9 20h6M12 16v4"/></svg>Linux</h3><ol>- <li>Ubuntu や Debian などでは .deb をダウンロードし、<code>sudo apt install ./CopySync-linux-amd64.deb</code> を実行します。ほかのディストリビューションでは tar.gz をダウンロードして展開し、<code>./CopySync/install.sh</code> を実行します。</li>+ <li>Ubuntu や Debian などでは .deb をダウンロードし、<code>sudo apt install ./PasteFerry-linux-amd64.deb</code> を実行します。ほかのディストリビューションでは tar.gz をダウンロードして展開し、<code>./PasteFerry/install.sh</code> を実行します。</li><li>アプリケーションメニューから PasteFerry を開き、「バックグラウンド同期を有効にする」をクリックします。以後はログイン時に自動で起動します。</li><li>ネットワークをまたいで同期するときは、「設定」でサーバーのアドレスを入力して Enter を押します。同じネットワークなら空欄のままです。</li></ol>@@ -549,7 +548,7 @@</details><details><summary>同じネットワークなのに、もう一台が見つからないのはなぜ?</summary>- <div class="answer"><p>まず本当に同じサブネットか確認してください。会社の有線と Wi‑Fi、ゲストネットワーク、クライアント分離が有効な Wi‑Fi では、デバイス同士が見えないことがよくあります。その場合は、コードを入力する側で「別のサブネットにありますか?」をクリックし、相手のコードの下に表示されたアドレスを入力します。</p><p>Windows では初回起動時にファイアウォールに聞かれたら許可してください。キャンセルした場合は「設定 → ローカルネットワーク」で「許可」をクリックします。Mac では「システム設定 → プライバシーとセキュリティ → ローカルネットワーク」で CopySync Daemon をオンにします。詳しくは<a href="lan/#faq">同じネットワークでの手順</a>を。</p></div>+ <div class="answer"><p>まず本当に同じサブネットか確認してください。会社の有線と Wi‑Fi、ゲストネットワーク、クライアント分離が有効な Wi‑Fi では、デバイス同士が見えないことがよくあります。その場合は、コードを入力する側で「別のサブネットにありますか?」をクリックし、相手のコードの下に表示されたアドレスを入力します。</p><p>Windows では初回起動時にファイアウォールに聞かれたら許可してください。キャンセルした場合は「設定 → ローカルネットワーク」で「許可」をクリックします。Mac では「システム設定 → プライバシーとセキュリティ → ローカルネットワーク」で PasteFerry Daemon をオンにします。詳しくは<a href="lan/#faq">同じネットワークでの手順</a>を。</p></div></details><details><summary>Windows や Linux に対応していますか?iPhone は?</summary>diff --git a/docs/ja/lan/index.html b/docs/ja/lan/index.htmlindex 29fc134..48e15e4 100644--- a/docs/ja/lan/index.html+++ b/docs/ja/lan/index.html@@ -51,7 +51,6 @@</nav></div></header>- <p class="renamed"><span class="wrap">PasteFerry の旧名は CopySync です。次のバージョンまで、アプリとインストーラーには CopySync と表示されます。</span></p><main id="main"><section class="hero guide-hero">@@ -107,7 +106,7 @@<dl class="fallbacks"><div><dt>同じネットワーク</dt><dd>2 台が同じルーターにつながっていれば大丈夫です。Wi‑Fi と有線が混ざっていてもかまいません。ゲストネットワークやクライアント分離が有効な Wi‑Fi ではデバイス同士が見えず、会社では有線と Wi‑Fi のサブネットが分かれていることもよくあります。その場合は下の<a href="#subnet">別のサブネット</a>へ。</dd></div><div><dt>Windows ファイアウォール</dt><dd>初回起動時に、PasteFerry がファイアウォールを通ってよいか Windows が聞いてくるので、許可します。キャンセルした場合は、PasteFerry の「設定 → ローカルネットワーク」で「許可」をクリックします。管理者の承認を一度だけ求められます。</dd></div>- <div><dt>macOS のローカルネットワーク</dt><dd>macOS 15 以降、LAN 上のデバイスに初めて接続するとき、CopySync Daemon がローカルネットワーク上のデバイスを探してよいか聞かれるので、許可します。拒否した場合は「システム設定 → プライバシーとセキュリティ → ローカルネットワーク」でオンにします。</dd></div>+ <div><dt>macOS のローカルネットワーク</dt><dd>macOS 15 以降、LAN 上のデバイスに初めて接続するとき、PasteFerry Daemon がローカルネットワーク上のデバイスを探してよいか聞かれるので、許可します。拒否した場合は「システム設定 → プライバシーとセキュリティ → ローカルネットワーク」でオンにします。</dd></div><div><dt>サーバーの入力は不要</dt><dd>「設定」のサーバーのアドレスは空欄のままにします。あとでネットワークをまたいで同期したくなったら、サーバーを追加するか Tailscale を使います。ペアリングはそのままです。</dd></div></dl></div>@@ -176,7 +175,7 @@<div class="faq"><details><summary>もう一台が見つからない</summary>- <div class="answer"><p>まず 2 台が同じネットワークにあり、どちらもバックグラウンド同期が有効か確認します。次に、コードを入力する側で相手のアドレスを入力してみてください。それで見つかるなら、サブネットが違うか、ネットワークが mDNS を通していません。</p><p>それでも見つからなければ、相手のファイアウォールを確認します。Windows なら「設定 → ローカルネットワーク」で「許可」をクリック、Mac なら「システム設定 → プライバシーとセキュリティ → ローカルネットワーク」で CopySync Daemon がオンになっていて、macOS のファイアウォールに止められていないかを確かめます。</p></div>+ <div class="answer"><p>まず 2 台が同じネットワークにあり、どちらもバックグラウンド同期が有効か確認します。次に、コードを入力する側で相手のアドレスを入力してみてください。それで見つかるなら、サブネットが違うか、ネットワークが mDNS を通していません。</p><p>それでも見つからなければ、相手のファイアウォールを確認します。Windows なら「設定 → ローカルネットワーク」で「許可」をクリック、Mac なら「システム設定 → プライバシーとセキュリティ → ローカルネットワーク」で PasteFerry Daemon がオンになっていて、macOS のファイアウォールに止められていないかを確かめます。</p></div></details><details><summary>このネットワークの外でも同期できますか?</summary>diff --git a/docs/ja/server/index.html b/docs/ja/server/index.htmlindex 4c1bd10..f97bbc2 100644--- a/docs/ja/server/index.html+++ b/docs/ja/server/index.html@@ -51,7 +51,6 @@</nav></div></header>- <p class="renamed"><span class="wrap">PasteFerry の旧名は CopySync です。次のバージョンまで、アプリとインストーラーには CopySync と表示されます。</span></p><main id="main"><section class="hero guide-hero">@@ -141,23 +140,23 @@<div class="os-grid"><div class="os-steps"><ol class="steps">- <li><a href="https://github.com/baiyuze/pasteferry/releases/latest/download/copysync-server-windows-amd64.zip">copysync-server-windows-amd64.zip</a> をダウンロードし、右クリックで「すべて展開」します。</li>+ <li><a href="https://github.com/baiyuze/pasteferry/releases/latest/download/pasteferry-server-windows-amd64.zip">pasteferry-server-windows-amd64.zip</a> をダウンロードし、右クリックで「すべて展開」します。</li><li>展開したフォルダーを開き、<code>install.cmd</code> をダブルクリックします。<span class="aside">「Windows によって PC が保護されました」と出たら「詳細情報」から「実行」を、ユーザーアカウント制御が出たら「はい」を押します。サーバーはまだコード署名していないため、一度だけ確認されます。</span></li><li>インストールは新しく開くウィンドウで進みます。最後に表示される <code>ws://…/signal</code> がアプリに入力するアドレスです。</li></ol>- <a class="button" href="https://github.com/baiyuze/pasteferry/releases/latest/download/copysync-server-windows-amd64.zip"><svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M10 3v10m0 0-4-4m4 4 4-4M4 16h12"/></svg>Windows 版サーバーをダウンロード</a>+ <a class="button" href="https://github.com/baiyuze/pasteferry/releases/latest/download/pasteferry-server-windows-amd64.zip"><svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M10 3v10m0 0-4-4m4 4 4-4M4 16h12"/></svg>Windows 版サーバーをダウンロード</a><ul class="points">- <li><strong>Windows サービスとして動作:</strong>Windows の起動とともに立ち上がり、サインイン不要で、ウィンドウも出ません。「サービス」では CopySync Server と表示されます。</li>- <li><strong>ファイアウォールは設定済み:</strong>copysync-server.exe だけを対象にした受信規則をスクリプトが追加するので、ポートを開ける必要はありません。</li>+ <li><strong>Windows サービスとして動作:</strong>Windows の起動とともに立ち上がり、サインイン不要で、ウィンドウも出ません。「サービス」では PasteFerry Server と表示されます。</li>+ <li><strong>ファイアウォールは設定済み:</strong>pasteferry-server.exe だけを対象にした受信規則をスクリプトが追加するので、ポートを開ける必要はありません。</li><li><strong>アドレスが違うものになった</strong>(仮想マシンや VPN でネットワークアダプターが複数あるなど):展開したフォルダーのアドレスバーに <code>cmd</code> と入力して Enter を押し、<code>install.cmd 192.168.1.20</code> のようにアドレスを指定して実行します。</li><li>Windows 10・11、x64 に対応。</li></ul></div><div class="os-figures">- <figure class="explorer" role="img" aria-label="展開したフォルダーには copysync-server.exe、install.cmd、install.ps1、README.md、uninstall.cmd があり、install.cmd をダブルクリックする">- <div class="t-bar win"><span class="t-tab folder">copysync-server-windows-amd64</span><span class="t-ctl" aria-hidden="true"><i></i><i></i><i></i></span></div>+ <figure class="explorer" role="img" aria-label="展開したフォルダーには pasteferry-server.exe、install.cmd、install.ps1、README.md、uninstall.cmd があり、install.cmd をダブルクリックする">+ <div class="t-bar win"><span class="t-tab folder">pasteferry-server-windows-amd64</span><span class="t-ctl" aria-hidden="true"><i></i><i></i><i></i></span></div><ul class="files">- <li><span class="f-icon exe" aria-hidden="true"></span><span class="f-name">copysync-server.exe</span></li>+ <li><span class="f-icon exe" aria-hidden="true"></span><span class="f-name">pasteferry-server.exe</span></li><li class="hl"><span class="f-icon cmd" aria-hidden="true"></span><span class="f-name">install.cmd</span><em>ダブルクリック</em></li><li><span class="f-icon doc" aria-hidden="true"></span><span class="f-name">install.ps1</span></li><li><span class="f-icon doc" aria-hidden="true"></span><span class="f-name">README.md</span></li>@@ -167,20 +166,20 @@<figure class="term" role="img" aria-label="install.cmd の実行後のウィンドウ:旧バージョンの停止、インストール、サービス登録、ファイアウォール許可、起動のあと、アドレス ws://192.168.1.20:8787/signal を表示"><div class="t-bar win"><span class="t-tab"><svg viewBox="0 0 24 24" fill="currentColor" aria-hidden="true"><path d="M3 5.5 10.5 4.5v7H3zM11.5 4.4 21 3v8.5h-9.5zM3 12.5h7.5v7L3 18.5zM11.5 12.5H21V21l-9.5-1.4z"/></svg>管理者: Windows PowerShell</span><span class="t-ctl" aria-hidden="true"><i></i><i></i><i></i></span></div><pre class="t-body"><span class="t-step">> Stopping the running version</span>-<span class="t-step">> Installing to C:\Program Files\CopySync Server</span>-<span class="t-step">> Registering the service CopySyncServer (relay address 192.168.1.20)</span>+<span class="t-step">> Installing to C:\Program Files\PasteFerry Server</span>+<span class="t-step">> Registering the service PasteFerryServer (relay address 192.168.1.20)</span><span class="t-step">> Allowing it through Windows Firewall</span><span class="t-step">> Starting</span>√ Running-Installed: copysync-server 1.7.0. It runs as a Windows service and starts with Windows.-In CopySync on each computer, set Settings > Signaling server to:+Installed: pasteferry-server 1.7.0. It runs as a Windows service and starts with Windows.+In PasteFerry on each computer, set Settings > Signaling server to:<span class="t-url">ws://192.168.1.20:8787/signal</span>- Program C:\Program Files\CopySync Server- Logs C:\ProgramData\CopySync Server\server.log- Restart Restart-Service CopySyncServer (in an administrator PowerShell)+ Program C:\Program Files\PasteFerry Server+ Logs C:\ProgramData\PasteFerry Server\server.log+ Restart Restart-Service PasteFerryServer (in an administrator PowerShell)Uninstall double-click uninstall.cmd</pre></figure></div>@@ -189,9 +188,9 @@ In CopySync on each computer, set Settings > Signaling server to:<table class="manage"><caption>あとで使うもの</caption><tbody>- <tr><th scope="row">状態</th><td>管理者の PowerShell で <code>Get-Service CopySyncServer</code>、または「サービス」で CopySync Server を確認</td></tr>- <tr><th scope="row">ログ</th><td><code>C:\ProgramData\CopySync Server\server.log</code></td></tr>- <tr><th scope="row">再起動</th><td>管理者の PowerShell で <code>Restart-Service CopySyncServer</code></td></tr>+ <tr><th scope="row">状態</th><td>管理者の PowerShell で <code>Get-Service PasteFerryServer</code>、または「サービス」で PasteFerry Server を確認</td></tr>+ <tr><th scope="row">ログ</th><td><code>C:\ProgramData\PasteFerry Server\server.log</code></td></tr>+ <tr><th scope="row">再起動</th><td>管理者の PowerShell で <code>Restart-Service PasteFerryServer</code></td></tr><tr><th scope="row">更新</th><td>新しいバージョンをダウンロードして展開し、もう一度 <code>install.cmd</code> をダブルクリック。設定は引き継がれます</td></tr><tr><th scope="row">アンインストール</th><td><code>uninstall.cmd</code> をダブルクリック。サービス、ファイアウォール規則、ファイルをすべて削除します</td></tr></tbody>@@ -207,9 +206,9 @@ In CopySync on each computer, set Settings > Signaling server to:<li>「ターミナル」を開き、次の行を順に実行します:<div class="code"><button class="copy" type="button" data-done="コピーしました">コピー</button>-<pre><code>curl -LO https://github.com/baiyuze/pasteferry/releases/latest/download/copysync-server-macos.tar.gz-tar xzf copysync-server-macos.tar.gz-cd copysync-server-macos+<pre><code>curl -LO https://github.com/baiyuze/pasteferry/releases/latest/download/pasteferry-server-macos.tar.gz+tar xzf pasteferry-server-macos.tar.gz+cd pasteferry-server-macos./install.sh</code></pre></div></li><li>最後に表示される <code>ws://…/signal</code> がアプリに入力するアドレスです。</li>@@ -217,27 +216,27 @@ cd copysync-server-macos<ul class="points"><li><strong>管理者権限は不要です。</strong>ログインしているあいだバックグラウンドで動き、終了しても macOS が再起動します。</li><li><strong>この Mac はスリープさせないでください:</strong>「システム設定 → エネルギー」(ノートは「バッテリー → オプション」)で自動スリープを防ぐ項目をオンにします。</li>- <li><strong>macOS のファイアウォールがオンなら、</strong>スクリプトの最後に copysync-server を許可するコマンドが表示されます。</li>+ <li><strong>macOS のファイアウォールがオンなら、</strong>スクリプトの最後に pasteferry-server を許可するコマンドが表示されます。</li><li>Intel と Apple シリコンの両方に対応、macOS 13 以降。</li></ul></div><div class="os-figures"><figure class="term" role="img" aria-label="ターミナルで ./install.sh を実行した出力:インストール、LaunchAgent の作成、起動のあと、アドレス ws://192.168.1.20:8787/signal を表示">- <div class="t-bar mac"><span class="t-lights" aria-hidden="true"><i></i><i></i><i></i></span><span class="t-title">copysync-server-macos — zsh</span></div>+ <div class="t-bar mac"><span class="t-lights" aria-hidden="true"><i></i><i></i><i></i></span><span class="t-title">pasteferry-server-macos — zsh</span></div><pre class="t-body"><span class="t-prompt">%</span> ./install.sh<span class="t-step">▶ Stopping the running version</span>-<span class="t-step">▶ Installing to /Users/me/Library/Application Support/CopySync Server</span>+<span class="t-step">▶ Installing to /Users/me/Library/Application Support/PasteFerry Server</span><span class="t-step">▶ Writing the LaunchAgent (relay address 192.168.1.20)</span><span class="t-step">▶ Starting</span>✓ Running-Installed: copysync-server 1.7.0. It starts whenever you log in to this Mac.-In CopySync on each computer, set Settings → Signaling server to:+Installed: pasteferry-server 1.7.0. It starts whenever you log in to this Mac.+In PasteFerry on each computer, set Settings → Signaling server to:<span class="t-url">ws://192.168.1.20:8787/signal</span>- Logs /Users/me/Library/Logs/CopySync/server.log- Restart launchctl kickstart -k gui/501/com.copysync.server+ Logs /Users/me/Library/Logs/PasteFerry/server.log+ Restart launchctl kickstart -k gui/501/com.pasteferry.serverUninstall ./install.sh uninstall</pre></figure></div>@@ -246,8 +245,8 @@ In CopySync on each computer, set Settings → Signaling server to:<table class="manage"><caption>あとで使うもの</caption><tbody>- <tr><th scope="row">ログ</th><td><code>~/Library/Logs/CopySync/server.log</code></td></tr>- <tr><th scope="row">再起動</th><td><code>launchctl kickstart -k gui/$(id -u)/com.copysync.server</code></td></tr>+ <tr><th scope="row">ログ</th><td><code>~/Library/Logs/PasteFerry/server.log</code></td></tr>+ <tr><th scope="row">再起動</th><td><code>launchctl kickstart -k gui/$(id -u)/com.pasteferry.server</code></td></tr><tr><th scope="row">更新</th><td>新しいバージョンをダウンロードして展開し、もう一度 <code>./install.sh</code> を実行。設定は引き継がれます</td></tr><tr><th scope="row">アンインストール</th><td><code>./install.sh uninstall</code></td></tr></tbody>@@ -263,9 +262,9 @@ In CopySync on each computer, set Settings → Signaling server to:<li>そのマシン上で(または ssh でログインして)次の行を順に実行します:<span class="aside">ARM(64 ビット OS の Raspberry Pi など)では <code>amd64</code> を <code>arm64</code> に置き換えます。</span><div class="code"><button class="copy" type="button" data-done="コピーしました">コピー</button>-<pre><code>curl -LO https://github.com/baiyuze/pasteferry/releases/latest/download/copysync-server-linux-amd64.tar.gz-tar xzf copysync-server-linux-amd64.tar.gz-cd copysync-server-linux-amd64+<pre><code>curl -LO https://github.com/baiyuze/pasteferry/releases/latest/download/pasteferry-server-linux-amd64.tar.gz+tar xzf pasteferry-server-linux-amd64.tar.gz+cd pasteferry-server-linux-amd64sudo ./install.sh</code></pre></div></li><li>最後に表示される <code>ws://…/signal</code> がアプリに入力するアドレスです。</li>@@ -282,18 +281,18 @@ sudo ./install.sh</code></pre><pre class="t-body"><span class="t-prompt">$</span> sudo ./install.sh<span class="t-step">▶ Installing the binary to /usr/local/bin</span><span class="t-step">▶ Writing the systemd unit</span>-<span class="t-step">▶ Writing /etc/copysync/server.env (relay address 192.168.1.20)</span>+<span class="t-step">▶ Writing /etc/pasteferry/server.env (relay address 192.168.1.20)</span><span class="t-step">▶ Starting</span>✓ Running-Installed: copysync-server 1.7.0-In CopySync on each computer, set Settings → Signaling server to:+Installed: pasteferry-server 1.7.0+In PasteFerry on each computer, set Settings → Signaling server to:<span class="t-url">ws://192.168.1.20:8787/signal</span>- Config /etc/copysync/server.env- Logs journalctl -u copysync-server -f- Restart systemctl restart copysync-server+ Config /etc/pasteferry/server.env+ Logs journalctl -u pasteferry-server -f+ Restart systemctl restart pasteferry-serverUninstall sudo ./install.sh uninstallOpen in your firewall: TCP 8787 (signaling), UDP 3478 (STUN and TURN), UDP 32768-60999 (relay ports, assigned by the OS)</pre>@@ -304,10 +303,10 @@ Open in your firewall: TCP 8787 (signaling), UDP 3478 (STUN and TURN), UDP 32768<table class="manage"><caption>あとで使うもの</caption><tbody>- <tr><th scope="row">状態</th><td><code>systemctl status copysync-server</code></td></tr>- <tr><th scope="row">ログ</th><td><code>journalctl -u copysync-server -f</code></td></tr>- <tr><th scope="row">再起動</th><td><code>sudo systemctl restart copysync-server</code></td></tr>- <tr><th scope="row">設定</th><td><code>/etc/copysync/server.env</code>。編集したらサービスを再起動</td></tr>+ <tr><th scope="row">状態</th><td><code>systemctl status pasteferry-server</code></td></tr>+ <tr><th scope="row">ログ</th><td><code>journalctl -u pasteferry-server -f</code></td></tr>+ <tr><th scope="row">再起動</th><td><code>sudo systemctl restart pasteferry-server</code></td></tr>+ <tr><th scope="row">設定</th><td><code>/etc/pasteferry/server.env</code>。編集したらサービスを再起動</td></tr><tr><th scope="row">更新</th><td>新しいバージョンをダウンロードして展開し、もう一度 <code>sudo ./install.sh</code> を実行。設定は引き継がれます</td></tr><tr><th scope="row">アンインストール</th><td><code>sudo ./install.sh uninstall</code></td></tr></tbody>@@ -359,7 +358,7 @@ Open in your firewall: TCP 8787 (signaling), UDP 3478 (STUN and TURN), UDP 32768</details><details><summary>サーバーのアドレスが変わった</summary>- <div class="answer"><p>新しいアドレスを付けてスクリプトをもう一度実行します。Windows は <code>install.cmd 新しいアドレス</code>、Mac は <code>./install.sh 新しいアドレス</code>。Linux では <code>/etc/copysync/server.env</code> の <code>-turn-ip</code> を書き換えてサービスを再起動します。そのあと各コンピューターのアドレスも変更してください。</p><p>ルーターでアドレスを固定しておけば、こうしたことは起きません。</p></div>+ <div class="answer"><p>新しいアドレスを付けてスクリプトをもう一度実行します。Windows は <code>install.cmd 新しいアドレス</code>、Mac は <code>./install.sh 新しいアドレス</code>。Linux では <code>/etc/pasteferry/server.env</code> の <code>-turn-ip</code> を書き換えてサービスを再起動します。そのあと各コンピューターのアドレスも変更してください。</p><p>ルーターでアドレスを固定しておけば、こうしたことは起きません。</p></div></details><details><summary>LAN の外でも同期できますか?</summary>diff --git a/docs/ja/start/index.html b/docs/ja/start/index.htmlindex 88ef69f..3323155 100644--- a/docs/ja/start/index.html+++ b/docs/ja/start/index.html@@ -51,7 +51,6 @@</nav></div></header>- <p class="renamed"><span class="wrap">PasteFerry の旧名は CopySync です。次のバージョンまで、アプリとインストーラーには CopySync と表示されます。</span></p><main id="main"><section class="hero guide-hero">@@ -86,7 +85,7 @@<div class="qs-app"><h3><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linejoin="round" aria-hidden="true"><rect x="3" y="4" width="18" height="12" rx="1.5"/><path d="M9 20h6M12 16v4"/></svg>Windows</h3><ol class="steps">- <li>CopySync-Setup.exe を実行します。管理者権限は要りません。<span class="aside">「Windows によって PC が保護されました」と出たら、「詳細情報」を押してから「実行」を押します。</span></li>+ <li>PasteFerry-Setup.exe を実行します。管理者権限は要りません。<span class="aside">「Windows によって PC が保護されました」と出たら、「詳細情報」を押してから「実行」を押します。</span></li><li>PasteFerry を開き、「バックグラウンド同期を有効にする」をクリックします。ファイアウォールに聞かれたら許可します。ウィンドウを閉じても通知領域で動き続けます。</li></ol><a class="button" href="../../ja/download/#windows"><svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M10 3v10m0 0-4-4m4 4 4-4M4 16h12"/></svg>Windows 版をダウンロード</a>diff --git a/docs/ja/tailscale/index.html b/docs/ja/tailscale/index.htmlindex 0f12b41..8602269 100644--- a/docs/ja/tailscale/index.html+++ b/docs/ja/tailscale/index.html@@ -51,7 +51,6 @@</nav></div></header>- <p class="renamed"><span class="wrap">PasteFerry の旧名は CopySync です。次のバージョンまで、アプリとインストーラーには CopySync と表示されます。</span></p><main id="main"><section class="hero guide-hero">@@ -196,7 +195,7 @@</details><details><summary>ペアリングで相手が見つからない</summary>- <div class="answer"><p>まず両方で Tailscale がつながっているか確かめます。ターミナルで <code>tailscale ping 相手のアドレス</code> を実行し、応答があれば再度試してください。</p><p>ping は通るのに見つからないなら、相手のファイアウォールが止めている可能性が高いです。相手が Windows なら PasteFerry の「設定 → ローカルネットワーク」で「許可」をクリック、Mac なら「システム設定 → プライバシーとセキュリティ → ローカルネットワーク」で CopySync Daemon をオンにします。</p></div>+ <div class="answer"><p>まず両方で Tailscale がつながっているか確かめます。ターミナルで <code>tailscale ping 相手のアドレス</code> を実行し、応答があれば再度試してください。</p><p>ping は通るのに見つからないなら、相手のファイアウォールが止めている可能性が高いです。相手が Windows なら PasteFerry の「設定 → ローカルネットワーク」で「許可」をクリック、Mac なら「システム設定 → プライバシーとセキュリティ → ローカルネットワーク」で PasteFerry Daemon をオンにします。</p></div></details><details><summary>すべてのコンピューターに Tailscale が必要ですか?</summary>diff --git a/docs/lan/index.html b/docs/lan/index.htmlindex 68aba30..777b1e6 100644--- a/docs/lan/index.html+++ b/docs/lan/index.html@@ -51,7 +51,6 @@</nav></div></header>- <p class="renamed"><span class="wrap">隔空贴原名 CopySync。应用和安装包里暂时还叫 CopySync,下个版本会改过来。</span></p><main id="main"><section class="hero guide-hero">@@ -107,7 +106,7 @@<dl class="fallbacks"><div><dt>在同一个网络里</dt><dd>两台电脑连着同一个路由器就行,Wi‑Fi 与有线混用也可以。访客网络、开了「AP 隔离」的 Wi‑Fi 不让设备互相访问;公司里有线和无线常常不在一个网段,这时看下面的<a href="#subnet">不在同一网段</a>。</dd></div><div><dt>Windows 防火墙</dt><dd>第一次运行时,Windows 会问是否允许隔空贴通过防火墙,选允许。点过取消的话,在隔空贴的「设置 → 局域网」里点「放行」,会请求一次管理员权限。</dd></div>- <div><dt>macOS 的本地网络权限</dt><dd>macOS 15 起,第一次连接局域网里的设备时,系统会问是否允许 CopySync Daemon 查找本地网络上的设备,选允许。拒绝过的话,到「系统设置 → 隐私与安全性 → 本地网络」里打开它。</dd></div>+ <div><dt>macOS 的本地网络权限</dt><dd>macOS 15 起,第一次连接局域网里的设备时,系统会问是否允许 PasteFerry Daemon 查找本地网络上的设备,选允许。拒绝过的话,到「系统设置 → 隐私与安全性 → 本地网络」里打开它。</dd></div><div><dt>不用填服务器</dt><dd>「设置」里的服务器地址留空就行。以后要跨网络同步,再填上服务器或者改用 Tailscale,已经配对的设备不用重新配对。</dd></div></dl></div>@@ -176,7 +175,7 @@<div class="faq"><details><summary>找不到另一台电脑?</summary>- <div class="answer"><p>先确认两台连着同一个网络、都启用了后台同步。再试试在输入配对码的那台填上对方的地址:这样能找到的话,说明两台不在同一网段,或者网络挡住了 mDNS。</p><p>还是找不到,就看对方的防火墙:对方是 Windows 的话,在它的「设置 → 局域网」里点「放行」;是 Mac 的话,确认「系统设置 → 隐私与安全性 → 本地网络」里打开了 CopySync Daemon,系统防火墙也没有拦着它。</p></div>+ <div class="answer"><p>先确认两台连着同一个网络、都启用了后台同步。再试试在输入配对码的那台填上对方的地址:这样能找到的话,说明两台不在同一网段,或者网络挡住了 mDNS。</p><p>还是找不到,就看对方的防火墙:对方是 Windows 的话,在它的「设置 → 局域网」里点「放行」;是 Mac 的话,确认「系统设置 → 隐私与安全性 → 本地网络」里打开了 PasteFerry Daemon,系统防火墙也没有拦着它。</p></div></details><details><summary>离开这个网络后还能同步吗?</summary>diff --git a/docs/llms.txt b/docs/llms.txtindex db8192c..f1d6d59 100644--- a/docs/llms.txt+++ b/docs/llms.txt@@ -1,21 +1,21 @@-# PasteFerry (隔空贴, formerly CopySync)+# PasteFerry (隔空贴)> PasteFerry is a free, open-source (GNU AGPL-3.0) app for macOS, Windows and Linux that syncs the clipboard and files between computers: copy on one, paste on another, in any combination of Mac, Windows and Linux. It works across different accounts and different networks. On the same network no server is needed: devices find each other over mDNS and pair with a code. Across networks, a server the user hosts (or Tailscale) introduces them. Devices connect peer-to-peer over WebRTC with end-to-end DTLS encryption; when a direct connection fails, traffic is relayed through the user's TURN server. The server stores no accounts and cannot read clipboard content.>> 隔空贴是一款免费开源(GNU AGPL-3.0)的 macOS、Windows 与 Linux 工具,在两台电脑之间同步剪贴板与文件:一台复制,另一台直接粘贴,Mac、Windows、Linux 互通。不要求同一个账号,跨网络可用。同一网络里不需要服务器,设备靠 mDNS 互相发现、用配对码配对;跨网络时由用户自建的服务器或 Tailscale 牵线。设备间 WebRTC 直连、DTLS 端到端加密,打不通时经用户服务器的 TURN 中转;服务器不存账号,看不到复制内容。-Name: PasteFerry in English, 隔空贴 in Chinese. Until October 2026 it was called CopySync; the app, installers (CopySync-*.dmg, CopySync-Setup.exe, …) and internal identifiers still use the old name until the next version.+Name: PasteFerry in English, 隔空贴 in Chinese. Versions before 2.0.0 (October 2026) were called CopySync.Key facts:- Current version: 1.7.0, released 2026-10-13. Search the history by text or file name; the app and website in Traditional Chinese for Taiwan and Hong Kong; Settings > Report a problem shows a diagnostics report with names, server address, public IPs and file names replaced, to paste into a GitHub issue, plus detailed logging that turns itself off after 30 minutes. 1.6.4: on a Mac, the background service no longer leaks memory while it watches the clipboard (it grew by about 1 GB a day). 1.6.3: the Windows app ships the Visual C++ runtime it needs, so it starts on computers without the Visual C++ Redistributable. 1.6.2: the Windows installer runs on every Windows 10 version, not only 21H2 and later. 1.6.1: on a Mac, network discovery no longer restarts every minute or two while a paired computer is offline. 1.6.0 added the Linux client (x64 and ARM64, .deb and tar.gz), separate Mac downloads for Apple silicon and Intel, and a download page on the website. 1.5.0: Search nearby: open it on two computers on the same network and click the other one to pair without a code; a computer broadcasts its name only while the window is open. Windows now shows Chinese text in one consistent font. 1.4.0: computers on the same network pair and sync without a server (mDNS discovery, pairing code); on another subnet, enter the address shown under the pairing code; over Tailscale, enter the 100.x address. The server becomes optional and is only needed across networks. 1.3.4 added a quick start and step-by-step guides for the three ways to run the server (public server, LAN, LAN + Tailscale) on the website. 1.3.3: the server installs on Windows (as a service) and on a Mac (as a LaunchAgent) as well as Linux, and the website has a step-by-step guide for running it on a LAN. 1.3.2 stopped UU Remote placeholder files from looping through the history. 1.3.1: click a history item to preview images, including copied image files (PNG, JPEG, GIF, WebP, BMP; HEIC and TIFF on Mac), with arrows to step through several. 1.3.0 added an English and Japanese interface (follows the system language, switchable in Settings) and moves to the GNU AGPL-3.0. 1.2.0 added the Windows client.-- Mac client: macOS 13 Ventura or later. Distributed as a DMG for Apple silicon (CopySync-mac-apple-silicon.dmg), one for Intel (CopySync-mac-intel.dmg), and a universal one (CopySync.dmg); not notarized by Apple, so the first launch needs "Open Anyway" in System Settings → Privacy & Security.-- Windows client: Windows 10 and Windows 11, x64. Per-user installer (CopySync-Setup.exe, no admin rights) or portable zip; not code-signed, so SmartScreen needs "More info → Run anyway" once. Runs in the notification area; pasted files are real files usable in Explorer, WeChat and Office. Skips content that password managers mark as sensitive.-- Linux client: x64 and ARM64, GTK 3; X11 desktops, or Wayland desktops with XWayland (GNOME and KDE include it by default). Tested on Ubuntu 24.04 GNOME. A .deb for Debian, Ubuntu and derivatives (installs to /opt/CopySync and adds a menu entry), or a tar.gz for other distributions (run install.sh to add a menu entry). The background service starts at login through an XDG autostart entry; data lives in ~/.local/share/copysync. No tray icon; reopen the window from the app menu. Skips content that password managers mark as sensitive.-- Local network mode (no server): devices on the same subnet find each other over mDNS (`_copysync._udp`, broadcasting only an anonymous token that changes daily) and exchange signed signaling over UDP 8788. On a different subnet, the user enters the address shown under the pairing code; addresses are remembered afterwards. Over Tailscale, the user enters the other computer's 100.x address when pairing. On Windows, Settings → Local network → Allow adds a firewall rule (one UAC prompt); on macOS 15, the background service needs the Local Network permission.+- Mac client: macOS 13 Ventura or later. Distributed as a DMG for Apple silicon (PasteFerry-mac-apple-silicon.dmg), one for Intel (PasteFerry-mac-intel.dmg), and a universal one (PasteFerry.dmg); not notarized by Apple, so the first launch needs "Open Anyway" in System Settings → Privacy & Security.+- Windows client: Windows 10 and Windows 11, x64. Per-user installer (PasteFerry-Setup.exe, no admin rights) or portable zip; not code-signed, so SmartScreen needs "More info → Run anyway" once. Runs in the notification area; pasted files are real files usable in Explorer, WeChat and Office. Skips content that password managers mark as sensitive.+- Linux client: x64 and ARM64, GTK 3; X11 desktops, or Wayland desktops with XWayland (GNOME and KDE include it by default). Tested on Ubuntu 24.04 GNOME. A .deb for Debian, Ubuntu and derivatives (installs to /opt/PasteFerry and adds a menu entry), or a tar.gz for other distributions (run install.sh to add a menu entry). The background service starts at login through an XDG autostart entry; data lives in ~/.local/share/pasteferry. No tray icon; reopen the window from the app menu. Skips content that password managers mark as sensitive.+- Local network mode (no server): devices on the same subnet find each other over mDNS (`_pasteferry._udp`, broadcasting only an anonymous token that changes daily) and exchange signed signaling over UDP 8788. On a different subnet, the user enters the address shown under the pairing code; addresses are remembered afterwards. Over Tailscale, the user enters the other computer's 100.x address when pairing. On Windows, Settings → Local network → Allow adds a firewall rule (one UAC prompt); on macOS 15, the background service needs the Local Network permission.- Server (optional; only to sync across networks): a single static Go binary for Linux (x86_64, ARM64), macOS or Windows 10/11 x64. Install scripts register it as a systemd service (Linux), a LaunchAgent (macOS) or a Windows service with a firewall rule (Windows), and default to the machine's LAN address; Docker Compose also works on Linux. The three ways to connect are: the same network (no server), a public server (a cloud VM with a public IP; reachable from any network), or Tailscale (no server; pair by Tailscale address). A server on a LAN is still useful when two subnets can't reach each other. Ports: 8787/tcp (signaling), 3478/udp (STUN/TURN), plus OS-assigned UDP relay ports. In mainland China, cloud providers intercept plain HTTP (including the WebSocket handshake) for domains without an ICP filing, so clients should use the server's IP.- Content synced: plain text, rich text (HTML plus a plain-text copy), images, files, folders.-- Works on multi-uplink networks (e.g. offices with two ISPs) that pick an uplink per destination: the client probes several STUN servers from one shared port to learn its address on every uplink and sends all of them to the peer. Diagnose with `copysync-cli nat`. If a connection lands on the relay first, the client retries the direct path with an ICE restart while idle.+- Works on multi-uplink networks (e.g. offices with two ISPs) that pick an uplink per destination: the client probes several STUN servers from one shared port to learn its address on every uplink and sends all of them to the peer. Diagnose with `pasteferry-cli nat`. If a connection lands on the relay first, the client retries the direct path with an ICE restart while idle.- Items under 50 MB (adjustable 1 MB–1 GB) are pushed on copy; larger files sync as a record and are pulled on demand.- History keeps 3 days by default (adjustable 1 hour–30 days).- Pairing: 6-character code valid for 5 minutes (matched on the LAN, or through the server), plus a human check that both devices show the same two fingerprints (one per device's Ed25519 public key), which prevents man-in-the-middle attacks by the server.@@ -44,5 +44,5 @@ Key facts:## Download-- [Latest release](https://github.com/baiyuze/pasteferry/releases/latest): DMGs for macOS (Apple silicon, Intel, universal), CopySync-Setup.exe and a portable zip for Windows, .deb and tar.gz packages for Linux (x64, ARM64), and server packages for Linux, macOS and Windows+- [Latest release](https://github.com/baiyuze/pasteferry/releases/latest): DMGs for macOS (Apple silicon, Intel, universal), PasteFerry-Setup.exe and a portable zip for Windows, .deb and tar.gz packages for Linux (x64, ARM64), and server packages for Linux, macOS and Windows- [Source code](https://github.com/baiyuze/pasteferry)diff --git a/docs/server/index.html b/docs/server/index.htmlindex 4956711..8f16871 100644--- a/docs/server/index.html+++ b/docs/server/index.html@@ -51,7 +51,6 @@</nav></div></header>- <p class="renamed"><span class="wrap">隔空贴原名 CopySync。应用和安装包里暂时还叫 CopySync,下个版本会改过来。</span></p><main id="main"><section class="hero guide-hero">@@ -141,23 +140,23 @@<div class="os-grid"><div class="os-steps"><ol class="steps">- <li>下载 <a href="https://github.com/baiyuze/pasteferry/releases/latest/download/copysync-server-windows-amd64.zip">copysync-server-windows-amd64.zip</a>,右键选「全部解压缩」。</li>+ <li>下载 <a href="https://github.com/baiyuze/pasteferry/releases/latest/download/pasteferry-server-windows-amd64.zip">pasteferry-server-windows-amd64.zip</a>,右键选「全部解压缩」。</li><li>打开解压出的文件夹,双击 <code>install.cmd</code>。<span class="aside">提示「Windows 已保护你的电脑」时,点「更多信息」,再点「仍要运行」;弹出用户账户控制时点「是」。服务器还没有代码签名,所以会这样问一次。</span></li><li>安装在新打开的窗口里进行。最后显示的 <code>ws://…/signal</code> 就是客户端要填的地址。</li></ol>- <a class="button" href="https://github.com/baiyuze/pasteferry/releases/latest/download/copysync-server-windows-amd64.zip"><svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M10 3v10m0 0-4-4m4 4 4-4M4 16h12"/></svg>下载 Windows 版服务器</a>+ <a class="button" href="https://github.com/baiyuze/pasteferry/releases/latest/download/pasteferry-server-windows-amd64.zip"><svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M10 3v10m0 0-4-4m4 4 4-4M4 16h12"/></svg>下载 Windows 版服务器</a><ul class="points">- <li><strong>作为 Windows 服务运行:</strong>开机就启动,不用登录,也没有窗口。在「服务」里叫 CopySync Server。</li>- <li><strong>防火墙已经放行:</strong>脚本添加了一条只针对 copysync-server.exe 的入站规则,不用自己开端口。</li>+ <li><strong>作为 Windows 服务运行:</strong>开机就启动,不用登录,也没有窗口。在「服务」里叫 PasteFerry Server。</li>+ <li><strong>防火墙已经放行:</strong>脚本添加了一条只针对 pasteferry-server.exe 的入站规则,不用自己开端口。</li><li><strong>地址认错了</strong>(比如装了虚拟机或 VPN,有好几块网卡):在解压出的文件夹的地址栏里输入 <code>cmd</code> 回车,运行 <code>install.cmd 192.168.1.20</code>,换成你的地址。</li><li>支持 Windows 10、11,x64。</li></ul></div><div class="os-figures">- <figure class="explorer" role="img" aria-label="解压出的文件夹里有 copysync-server.exe、install.cmd、install.ps1、README.md、uninstall.cmd,双击其中的 install.cmd">- <div class="t-bar win"><span class="t-tab folder">copysync-server-windows-amd64</span><span class="t-ctl" aria-hidden="true"><i></i><i></i><i></i></span></div>+ <figure class="explorer" role="img" aria-label="解压出的文件夹里有 pasteferry-server.exe、install.cmd、install.ps1、README.md、uninstall.cmd,双击其中的 install.cmd">+ <div class="t-bar win"><span class="t-tab folder">pasteferry-server-windows-amd64</span><span class="t-ctl" aria-hidden="true"><i></i><i></i><i></i></span></div><ul class="files">- <li><span class="f-icon exe" aria-hidden="true"></span><span class="f-name">copysync-server.exe</span></li>+ <li><span class="f-icon exe" aria-hidden="true"></span><span class="f-name">pasteferry-server.exe</span></li><li class="hl"><span class="f-icon cmd" aria-hidden="true"></span><span class="f-name">install.cmd</span><em>双击</em></li><li><span class="f-icon doc" aria-hidden="true"></span><span class="f-name">install.ps1</span></li><li><span class="f-icon doc" aria-hidden="true"></span><span class="f-name">README.md</span></li>@@ -167,20 +166,20 @@<figure class="term" role="img" aria-label="install.cmd 运行完的窗口:依次停止旧版本、安装、注册服务、放行防火墙、启动,最后显示客户端要填的地址 ws://192.168.1.20:8787/signal"><div class="t-bar win"><span class="t-tab"><svg viewBox="0 0 24 24" fill="currentColor" aria-hidden="true"><path d="M3 5.5 10.5 4.5v7H3zM11.5 4.4 21 3v8.5h-9.5zM3 12.5h7.5v7L3 18.5zM11.5 12.5H21V21l-9.5-1.4z"/></svg>管理员: Windows PowerShell</span><span class="t-ctl" aria-hidden="true"><i></i><i></i><i></i></span></div><pre class="t-body"><span class="t-step">> 停止旧版本</span>-<span class="t-step">> 安装到 C:\Program Files\CopySync Server</span>-<span class="t-step">> 注册服务 CopySyncServer(中转地址 192.168.1.20)</span>+<span class="t-step">> 安装到 C:\Program Files\PasteFerry Server</span>+<span class="t-step">> 注册服务 PasteFerryServer(中转地址 192.168.1.20)</span><span class="t-step">> 在 Windows 防火墙里放行</span><span class="t-step">> 启动</span>√ 已启动-安装完成:copysync-server 1.7.0,作为 Windows 服务开机自动运行-在每台电脑的 CopySync「设置 → 信令服务器地址」填:+安装完成:pasteferry-server 1.7.0,作为 Windows 服务开机自动运行+在每台电脑的 PasteFerry「设置 → 信令服务器地址」填:<span class="t-url">ws://192.168.1.20:8787/signal</span>- 程序 C:\Program Files\CopySync Server- 日志 C:\ProgramData\CopySync Server\server.log- 重启 Restart-Service CopySyncServer(管理员 PowerShell)+ 程序 C:\Program Files\PasteFerry Server+ 日志 C:\ProgramData\PasteFerry Server\server.log+ 重启 Restart-Service PasteFerryServer(管理员 PowerShell)卸载 双击 uninstall.cmd</pre></figure></div>@@ -189,9 +188,9 @@<table class="manage"><caption>以后会用到的</caption><tbody>- <tr><th scope="row">状态</th><td>管理员 PowerShell 里运行 <code>Get-Service CopySyncServer</code>,或者在「服务」里找 CopySync Server</td></tr>- <tr><th scope="row">日志</th><td><code>C:\ProgramData\CopySync Server\server.log</code></td></tr>- <tr><th scope="row">重启</th><td>管理员 PowerShell 里运行 <code>Restart-Service CopySyncServer</code></td></tr>+ <tr><th scope="row">状态</th><td>管理员 PowerShell 里运行 <code>Get-Service PasteFerryServer</code>,或者在「服务」里找 PasteFerry Server</td></tr>+ <tr><th scope="row">日志</th><td><code>C:\ProgramData\PasteFerry Server\server.log</code></td></tr>+ <tr><th scope="row">重启</th><td>管理员 PowerShell 里运行 <code>Restart-Service PasteFerryServer</code></td></tr><tr><th scope="row">升级</th><td>下载新版本,解压后再双击 <code>install.cmd</code>,原来的设置保留</td></tr><tr><th scope="row">卸载</th><td>双击 <code>uninstall.cmd</code>,服务、防火墙规则和文件一并删除</td></tr></tbody>@@ -207,9 +206,9 @@<li>打开「终端」,逐行运行:<div class="code"><button class="copy" type="button" data-done="已复制">复制</button>-<pre><code>curl -LO https://github.com/baiyuze/pasteferry/releases/latest/download/copysync-server-macos.tar.gz-tar xzf copysync-server-macos.tar.gz-cd copysync-server-macos+<pre><code>curl -LO https://github.com/baiyuze/pasteferry/releases/latest/download/pasteferry-server-macos.tar.gz+tar xzf pasteferry-server-macos.tar.gz+cd pasteferry-server-macos./install.sh</code></pre></div></li><li>最后显示的 <code>ws://…/signal</code> 就是客户端要填的地址。</li>@@ -217,27 +216,27 @@ cd copysync-server-macos<ul class="points"><li><strong>不需要管理员权限。</strong>登录这台 Mac 后自动在后台运行,意外退出会被系统重新拉起。</li><li><strong>这台 Mac 不能睡眠:</strong>在「系统设置 → 能耗」(笔记本在「电池 → 选项」)里打开防止自动进入睡眠的选项。</li>- <li><strong>开着系统防火墙的话,</strong>脚本最后会给出放行 copysync-server 的命令。</li>+ <li><strong>开着系统防火墙的话,</strong>脚本最后会给出放行 pasteferry-server 的命令。</li><li>Intel 与 Apple 芯片通用,macOS 13 及以上。</li></ul></div><div class="os-figures"><figure class="term" role="img" aria-label="在终端里运行 ./install.sh 的输出:安装、写入 LaunchAgent、启动,最后显示客户端要填的地址 ws://192.168.1.20:8787/signal">- <div class="t-bar mac"><span class="t-lights" aria-hidden="true"><i></i><i></i><i></i></span><span class="t-title">copysync-server-macos — zsh</span></div>+ <div class="t-bar mac"><span class="t-lights" aria-hidden="true"><i></i><i></i><i></i></span><span class="t-title">pasteferry-server-macos — zsh</span></div><pre class="t-body"><span class="t-prompt">%</span> ./install.sh<span class="t-step">▶ 停止旧版本</span>-<span class="t-step">▶ 安装到 /Users/me/Library/Application Support/CopySync Server</span>+<span class="t-step">▶ 安装到 /Users/me/Library/Application Support/PasteFerry Server</span><span class="t-step">▶ 写入 LaunchAgent(中转地址 192.168.1.20)</span><span class="t-step">▶ 启动</span>✓ 已启动-安装完成:copysync-server 1.7.0,登录这台 Mac 后自动运行-在每台电脑的 CopySync「设置 → 信令服务器地址」填:+安装完成:pasteferry-server 1.7.0,登录这台 Mac 后自动运行+在每台电脑的 PasteFerry「设置 → 信令服务器地址」填:<span class="t-url">ws://192.168.1.20:8787/signal</span>- 日志 /Users/me/Library/Logs/CopySync/server.log- 重启 launchctl kickstart -k gui/501/com.copysync.server+ 日志 /Users/me/Library/Logs/PasteFerry/server.log+ 重启 launchctl kickstart -k gui/501/com.pasteferry.server卸载 ./install.sh uninstall</pre></figure></div>@@ -246,8 +245,8 @@ cd copysync-server-macos<table class="manage"><caption>以后会用到的</caption><tbody>- <tr><th scope="row">日志</th><td><code>~/Library/Logs/CopySync/server.log</code></td></tr>- <tr><th scope="row">重启</th><td><code>launchctl kickstart -k gui/$(id -u)/com.copysync.server</code></td></tr>+ <tr><th scope="row">日志</th><td><code>~/Library/Logs/PasteFerry/server.log</code></td></tr>+ <tr><th scope="row">重启</th><td><code>launchctl kickstart -k gui/$(id -u)/com.pasteferry.server</code></td></tr><tr><th scope="row">升级</th><td>下载新版本,解压后再运行 <code>./install.sh</code>,原来的设置保留</td></tr><tr><th scope="row">卸载</th><td><code>./install.sh uninstall</code></td></tr></tbody>@@ -263,9 +262,9 @@ cd copysync-server-macos<li>在这台机器上(或者 ssh 登录后)逐行运行:<span class="aside">ARM 设备,比如装了 64 位系统的树莓派,把 <code>amd64</code> 换成 <code>arm64</code>。</span><div class="code"><button class="copy" type="button" data-done="已复制">复制</button>-<pre><code>curl -LO https://github.com/baiyuze/pasteferry/releases/latest/download/copysync-server-linux-amd64.tar.gz-tar xzf copysync-server-linux-amd64.tar.gz-cd copysync-server-linux-amd64+<pre><code>curl -LO https://github.com/baiyuze/pasteferry/releases/latest/download/pasteferry-server-linux-amd64.tar.gz+tar xzf pasteferry-server-linux-amd64.tar.gz+cd pasteferry-server-linux-amd64sudo ./install.sh</code></pre></div></li><li>最后显示的 <code>ws://…/signal</code> 就是客户端要填的地址。</li>@@ -282,18 +281,18 @@ sudo ./install.sh</code></pre><pre class="t-body"><span class="t-prompt">$</span> sudo ./install.sh<span class="t-step">▶ 安装二进制到 /usr/local/bin</span><span class="t-step">▶ 写入 systemd 单元</span>-<span class="t-step">▶ 生成配置 /etc/copysync/server.env(中转地址 192.168.1.20)</span>+<span class="t-step">▶ 生成配置 /etc/pasteferry/server.env(中转地址 192.168.1.20)</span><span class="t-step">▶ 启动</span>✓ 已启动-安装完成:copysync-server 1.7.0-在每台电脑的 CopySync「设置 → 信令服务器地址」填:+安装完成:pasteferry-server 1.7.0+在每台电脑的 PasteFerry「设置 → 信令服务器地址」填:<span class="t-url">ws://192.168.1.20:8787/signal</span>- 配置 /etc/copysync/server.env- 日志 journalctl -u copysync-server -f- 重启 systemctl restart copysync-server+ 配置 /etc/pasteferry/server.env+ 日志 journalctl -u pasteferry-server -f+ 重启 systemctl restart pasteferry-server卸载 sudo ./install.sh uninstall防火墙需放行:TCP 8787(信令)、UDP 3478(STUN 与 TURN)、UDP 32768-60999(中转端口,系统随机分配)</pre>@@ -304,10 +303,10 @@ sudo ./install.sh</code></pre><table class="manage"><caption>以后会用到的</caption><tbody>- <tr><th scope="row">状态</th><td><code>systemctl status copysync-server</code></td></tr>- <tr><th scope="row">日志</th><td><code>journalctl -u copysync-server -f</code></td></tr>- <tr><th scope="row">重启</th><td><code>sudo systemctl restart copysync-server</code></td></tr>- <tr><th scope="row">配置</th><td><code>/etc/copysync/server.env</code>,改完重启服务</td></tr>+ <tr><th scope="row">状态</th><td><code>systemctl status pasteferry-server</code></td></tr>+ <tr><th scope="row">日志</th><td><code>journalctl -u pasteferry-server -f</code></td></tr>+ <tr><th scope="row">重启</th><td><code>sudo systemctl restart pasteferry-server</code></td></tr>+ <tr><th scope="row">配置</th><td><code>/etc/pasteferry/server.env</code>,改完重启服务</td></tr><tr><th scope="row">升级</th><td>下载新版本,解压后再运行 <code>sudo ./install.sh</code>,原来的配置保留</td></tr><tr><th scope="row">卸载</th><td><code>sudo ./install.sh uninstall</code></td></tr></tbody>@@ -359,7 +358,7 @@ sudo ./install.sh</code></pre></details><details><summary>服务器的地址变了怎么办?</summary>- <div class="answer"><p>带上新地址再运行一次安装脚本:Windows 上是 <code>install.cmd 新地址</code>,Mac 上是 <code>./install.sh 新地址</code>;Linux 上编辑 <code>/etc/copysync/server.env</code> 里的 <code>-turn-ip</code>,再重启服务。然后在每台电脑上改掉服务器地址。</p><p>在路由器里给它固定一个地址,就不会再遇到这件事。</p></div>+ <div class="answer"><p>带上新地址再运行一次安装脚本:Windows 上是 <code>install.cmd 新地址</code>,Mac 上是 <code>./install.sh 新地址</code>;Linux 上编辑 <code>/etc/pasteferry/server.env</code> 里的 <code>-turn-ip</code>,再重启服务。然后在每台电脑上改掉服务器地址。</p><p>在路由器里给它固定一个地址,就不会再遇到这件事。</p></div></details><details><summary>离开局域网以后还能同步吗?</summary>diff --git a/docs/start/index.html b/docs/start/index.htmlindex c0efde0..f6159a6 100644--- a/docs/start/index.html+++ b/docs/start/index.html@@ -51,7 +51,6 @@</nav></div></header>- <p class="renamed"><span class="wrap">隔空贴原名 CopySync。应用和安装包里暂时还叫 CopySync,下个版本会改过来。</span></p><main id="main"><section class="hero guide-hero">@@ -86,7 +85,7 @@<div class="qs-app"><h3><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linejoin="round" aria-hidden="true"><rect x="3" y="4" width="18" height="12" rx="1.5"/><path d="M9 20h6M12 16v4"/></svg>Windows</h3><ol class="steps">- <li>运行 CopySync-Setup.exe,不需要管理员权限。<span class="aside">提示「Windows 已保护你的电脑」时,点「更多信息」,再点「仍要运行」。</span></li>+ <li>运行 PasteFerry-Setup.exe,不需要管理员权限。<span class="aside">提示「Windows 已保护你的电脑」时,点「更多信息」,再点「仍要运行」。</span></li><li>打开隔空贴,点「启用后台同步」。防火墙询问时选择允许。关掉窗口后它在右下角的托盘里继续运行。</li></ol><a class="button" href="../download/#windows"><svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M10 3v10m0 0-4-4m4 4 4-4M4 16h12"/></svg>下载 Windows 版</a>diff --git a/docs/tailscale/index.html b/docs/tailscale/index.htmlindex 95f1a88..f2d563f 100644--- a/docs/tailscale/index.html+++ b/docs/tailscale/index.html@@ -51,7 +51,6 @@</nav></div></header>- <p class="renamed"><span class="wrap">隔空贴原名 CopySync。应用和安装包里暂时还叫 CopySync,下个版本会改过来。</span></p><main id="main"><section class="hero guide-hero">@@ -196,7 +195,7 @@</details><details><summary>配对时找不到对方?</summary>- <div class="answer"><p>先确认两台的 Tailscale 都已连接:在终端里运行 <code>tailscale ping 对方的地址</code>,能 ping 通再试。</p><p>能 ping 通还找不到,多半是对方的防火墙挡住了:对方是 Windows 的话,在它的隔空贴「设置 → 局域网」里点「放行」;是 Mac 的话,确认「系统设置 → 隐私与安全性 → 本地网络」里打开了 CopySync Daemon。</p></div>+ <div class="answer"><p>先确认两台的 Tailscale 都已连接:在终端里运行 <code>tailscale ping 对方的地址</code>,能 ping 通再试。</p><p>能 ping 通还找不到,多半是对方的防火墙挡住了:对方是 Windows 的话,在它的隔空贴「设置 → 局域网」里点「放行」;是 Mac 的话,确认「系统设置 → 隐私与安全性 → 本地网络」里打开了 PasteFerry Daemon。</p></div></details><details><summary>一定要每台电脑都装 Tailscale 吗?</summary>diff --git a/docs/zh-hk/cloud/index.html b/docs/zh-hk/cloud/index.htmlindex 1c6c68a..a9d7386 100644--- a/docs/zh-hk/cloud/index.html+++ b/docs/zh-hk/cloud/index.html@@ -51,7 +51,6 @@</nav></div></header>- <p class="renamed"><span class="wrap">隔空貼原名 CopySync。App 和安裝檔裡暫時還叫 CopySync,下個版本會改過來。</span></p><main id="main"><section class="hero guide-hero">@@ -167,15 +166,15 @@<li>逐行執行,最後一行換成你的公網 IP:<span class="aside">ARM 伺服器請把 <code>amd64</code> 換成 <code>arm64</code>。</span><div class="code"><button class="copy" type="button" data-done="已複製">複製</button>-<pre><code>curl -LO https://github.com/baiyuze/pasteferry/releases/latest/download/copysync-server-linux-amd64.tar.gz-tar xzf copysync-server-linux-amd64.tar.gz-cd copysync-server-linux-amd64+<pre><code>curl -LO https://github.com/baiyuze/pasteferry/releases/latest/download/pasteferry-server-linux-amd64.tar.gz+tar xzf pasteferry-server-linux-amd64.tar.gz+cd pasteferry-server-linux-amd64sudo ./install.sh 203.0.113.10</code></pre></div></li><li>最後顯示的 <code>ws://203.0.113.10:8787/signal</code> 就是用戶端要填的地址。</li></ol><ul class="points">- <li><strong>註冊為 systemd 服務,</strong>開機自動執行,設定檔在 <code>/etc/copysync/server.env</code>。</li>+ <li><strong>註冊為 systemd 服務,</strong>開機自動執行,設定檔在 <code>/etc/pasteferry/server.env</code>。</li><li><strong>升級:</strong>下載新版本,解壓後再執行 <code>sudo ./install.sh</code>,原有設定會保留。</li><li><strong>也可以用 Docker:</strong>見<a href="https://github.com/baiyuze/pasteferry/blob/main/server/deploy/README.md">伺服器部署說明</a>。</li></ul>@@ -186,18 +185,18 @@ sudo ./install.sh 203.0.113.10</code></pre><pre class="t-body"><span class="t-prompt">$</span> sudo ./install.sh 203.0.113.10<span class="t-step">▶ 安装二进制到 /usr/local/bin</span><span class="t-step">▶ 写入 systemd 单元</span>-<span class="t-step">▶ 生成配置 /etc/copysync/server.env(中转地址 203.0.113.10)</span>+<span class="t-step">▶ 生成配置 /etc/pasteferry/server.env(中转地址 203.0.113.10)</span><span class="t-step">▶ 启动</span>✓ 已启动-安装完成:copysync-server 1.7.0-在每台电脑的 CopySync「设置 → 信令服务器地址」填:+安装完成:pasteferry-server 1.7.0+在每台电脑的 PasteFerry「设置 → 信令服务器地址」填:<span class="t-url">ws://203.0.113.10:8787/signal</span>- 配置 /etc/copysync/server.env- 日志 journalctl -u copysync-server -f- 重启 systemctl restart copysync-server+ 配置 /etc/pasteferry/server.env+ 日志 journalctl -u pasteferry-server -f+ 重启 systemctl restart pasteferry-server卸载 sudo ./install.sh uninstall防火墙需放行:TCP 8787(信令)、UDP 3478(STUN 与 TURN)、UDP 32768-60999(中转端口,系统随机分配)</pre>@@ -237,10 +236,10 @@ sudo ./install.sh 203.0.113.10</code></pre><table class="manage"><caption>日後會用到的</caption><tbody>- <tr><th scope="row">狀態</th><td><code>systemctl status copysync-server</code></td></tr>- <tr><th scope="row">日誌</th><td><code>journalctl -u copysync-server -f</code></td></tr>- <tr><th scope="row">重新啟動</th><td><code>sudo systemctl restart copysync-server</code></td></tr>- <tr><th scope="row">設定</th><td><code>/etc/copysync/server.env</code>,改完要重新啟動服務</td></tr>+ <tr><th scope="row">狀態</th><td><code>systemctl status pasteferry-server</code></td></tr>+ <tr><th scope="row">日誌</th><td><code>journalctl -u pasteferry-server -f</code></td></tr>+ <tr><th scope="row">重新啟動</th><td><code>sudo systemctl restart pasteferry-server</code></td></tr>+ <tr><th scope="row">設定</th><td><code>/etc/pasteferry/server.env</code>,改完要重新啟動服務</td></tr><tr><th scope="row">升級</th><td>下載新版本,解壓後再執行 <code>sudo ./install.sh</code>,原有設定會保留</td></tr><tr><th scope="row">解除安裝</th><td><code>sudo ./install.sh uninstall</code></td></tr></tbody>diff --git a/docs/zh-hk/download/index.html b/docs/zh-hk/download/index.htmlindex 37579ce..047b8f2 100644--- a/docs/zh-hk/download/index.html+++ b/docs/zh-hk/download/index.html@@ -51,7 +51,6 @@</nav></div></header>- <p class="renamed"><span class="wrap">隔空貼原名 CopySync。App 和安裝檔裡暫時還叫 CopySync,下個版本會改過來。</span></p><main id="main"><section class="hero guide-hero">@@ -76,11 +75,11 @@<div class="os-grid"><div class="os-steps"><div class="dl-row">- <a class="button" href="https://github.com/baiyuze/pasteferry/releases/latest/download/CopySync-Setup.exe"><svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M10 3v10m0 0-4-4m4 4 4-4M4 16h12"/></svg>下載安裝程式</a>+ <a class="button" href="https://github.com/baiyuze/pasteferry/releases/latest/download/PasteFerry-Setup.exe"><svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M10 3v10m0 0-4-4m4 4 4-4M4 16h12"/></svg>下載安裝程式</a></div>- <p class="small">不想執行安裝程式的話,可以下載<a href="https://github.com/baiyuze/pasteferry/releases/latest/download/CopySync-windows-x64.zip">免安裝版</a>,解壓後直接執行。</p>+ <p class="small">不想執行安裝程式的話,可以下載<a href="https://github.com/baiyuze/pasteferry/releases/latest/download/PasteFerry-windows-x64.zip">免安裝版</a>,解壓後直接執行。</p><ol class="steps">- <li>執行 CopySync-Setup.exe,它會安裝在目前用戶的目錄下,不需要管理員權限。<span class="aside">提示「Windows 已保護您的電腦」時,按「其他資訊」,再按「仍要執行」。</span></li>+ <li>執行 PasteFerry-Setup.exe,它會安裝在目前用戶的目錄下,不需要管理員權限。<span class="aside">提示「Windows 已保護您的電腦」時,按「其他資訊」,再按「仍要執行」。</span></li><li>開啟隔空貼,按「啟用背景同步」。防火牆詢問時選擇允許。</li></ol></div>@@ -97,10 +96,10 @@<div class="os-grid"><div class="os-steps"><div class="dl-row" data-mac-chip>- <a class="button" href="https://github.com/baiyuze/pasteferry/releases/latest/download/CopySync-mac-apple-silicon.dmg"><svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M10 3v10m0 0-4-4m4 4 4-4M4 16h12"/></svg>Apple 晶片(M1 或更新)</a>- <a class="button quiet" href="https://github.com/baiyuze/pasteferry/releases/latest/download/CopySync-mac-intel.dmg"><svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M10 3v10m0 0-4-4m4 4 4-4M4 16h12"/></svg>Intel 處理器</a>+ <a class="button" href="https://github.com/baiyuze/pasteferry/releases/latest/download/PasteFerry-mac-apple-silicon.dmg"><svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M10 3v10m0 0-4-4m4 4 4-4M4 16h12"/></svg>Apple 晶片(M1 或更新)</a>+ <a class="button quiet" href="https://github.com/baiyuze/pasteferry/releases/latest/download/PasteFerry-mac-intel.dmg"><svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M10 3v10m0 0-4-4m4 4 4-4M4 16h12"/></svg>Intel 處理器</a></div>- <p class="small">兩種 Mac 都能用的<a href="https://github.com/baiyuze/pasteferry/releases/latest/download/CopySync.dmg">通用版</a>也有提供,檔案大一倍。</p>+ <p class="small">兩種 Mac 都能用的<a href="https://github.com/baiyuze/pasteferry/releases/latest/download/PasteFerry.dmg">通用版</a>也有提供,檔案大一倍。</p><ol class="steps"><li>開啟下載的 DMG,把隔空貼拖進「應用程式」。</li><li>從「應用程式」裏開啟。<span class="aside">第一次會提示「無法驗證開發者」:到「系統設定 → 私隱與保安」,按頁面下方的「強制開啟」。</span></li>@@ -125,28 +124,28 @@<div class="os-steps"><h4>Ubuntu、Debian 及其衍生版</h4><div class="dl-row">- <a class="button" href="https://github.com/baiyuze/pasteferry/releases/latest/download/CopySync-linux-amd64.deb"><svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M10 3v10m0 0-4-4m4 4 4-4M4 16h12"/></svg>x64</a>- <a class="button quiet" href="https://github.com/baiyuze/pasteferry/releases/latest/download/CopySync-linux-arm64.deb"><svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M10 3v10m0 0-4-4m4 4 4-4M4 16h12"/></svg>ARM64</a>+ <a class="button" href="https://github.com/baiyuze/pasteferry/releases/latest/download/PasteFerry-linux-amd64.deb"><svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M10 3v10m0 0-4-4m4 4 4-4M4 16h12"/></svg>x64</a>+ <a class="button quiet" href="https://github.com/baiyuze/pasteferry/releases/latest/download/PasteFerry-linux-arm64.deb"><svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M10 3v10m0 0-4-4m4 4 4-4M4 16h12"/></svg>ARM64</a></div><div class="code"><button class="copy" type="button" data-done="已複製">複製</button>-<pre><code>sudo apt install ./CopySync-linux-amd64.deb</code></pre>+<pre><code>sudo apt install ./PasteFerry-linux-amd64.deb</code></pre></div><h4>其他發行版</h4><div class="dl-row">- <a class="button quiet" href="https://github.com/baiyuze/pasteferry/releases/latest/download/CopySync-linux-amd64.tar.gz"><svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M10 3v10m0 0-4-4m4 4 4-4M4 16h12"/></svg>x64</a>- <a class="button quiet" href="https://github.com/baiyuze/pasteferry/releases/latest/download/CopySync-linux-arm64.tar.gz"><svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M10 3v10m0 0-4-4m4 4 4-4M4 16h12"/></svg>ARM64</a>+ <a class="button quiet" href="https://github.com/baiyuze/pasteferry/releases/latest/download/PasteFerry-linux-amd64.tar.gz"><svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M10 3v10m0 0-4-4m4 4 4-4M4 16h12"/></svg>x64</a>+ <a class="button quiet" href="https://github.com/baiyuze/pasteferry/releases/latest/download/PasteFerry-linux-arm64.tar.gz"><svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M10 3v10m0 0-4-4m4 4 4-4M4 16h12"/></svg>ARM64</a></div><div class="code"><button class="copy" type="button" data-done="已複製">複製</button>-<pre><code>tar xzf CopySync-linux-amd64.tar.gz-./CopySync/install.sh</code></pre>+<pre><code>tar xzf PasteFerry-linux-amd64.tar.gz+./PasteFerry/install.sh</code></pre></div></div><ul class="points"><li>需要圖形桌面:X11,或者帶 XWayland 的 Wayland 桌面,GNOME、KDE 等主流桌面預設都已包含。</li><li>不確定是 x64 還是 ARM64:在終端機執行 <code>uname -m</code>,顯示 <code>x86_64</code> 是 x64,<code>aarch64</code> 是 ARM64。</li>- <li>.deb 會安裝在 /opt/CopySync,並出現在應用程式選單裏。tar.gz 解壓到哪裏都能執行,<code>install.sh</code> 會把它加入應用程式選單。</li>+ <li>.deb 會安裝在 /opt/PasteFerry,並出現在應用程式選單裏。tar.gz 解壓到哪裏都能執行,<code>install.sh</code> 會把它加入應用程式選單。</li><li>開啟後按「啟用背景同步」,之後會在登入時自動啟動。GNOME 預設不顯示系統匣圖示,請從應用程式選單開啟視窗。</li><li>需要 GTK 3。已在 Ubuntu 24.04 的 GNOME(Wayland)上實測。</li></ul>diff --git a/docs/zh-hk/index.html b/docs/zh-hk/index.htmlindex f1f9bc1..75a6f01 100644--- a/docs/zh-hk/index.html+++ b/docs/zh-hk/index.html@@ -132,7 +132,7 @@"name": "在同一個網絡裏,為甚麼找不到另一部電腦?","acceptedAnswer": {"@type": "Answer",- "text": "先看兩部是否真的在同一個網段:公司裏的有線和無線網絡、訪客網絡、開啟了「AP 隔離」的 Wi‑Fi 往往互不相通,區域網絡發現無法穿過。這時在輸入配對碼的那部電腦按「不在同一網段?」,填上另一部電腦配對碼下面顯示的地址。 在 Windows 上,第一次執行時防火牆會詢問,要選擇允許;如果按過取消,可在「設定 → 區域網絡」裏按「允許」。在 Mac 上,要在「系統設定 → 私隱與保安 → 本地網絡」裏開啟 CopySync Daemon。詳情見同一網絡教學。"+ "text": "先看兩部是否真的在同一個網段:公司裏的有線和無線網絡、訪客網絡、開啟了「AP 隔離」的 Wi‑Fi 往往互不相通,區域網絡發現無法穿過。這時在輸入配對碼的那部電腦按「不在同一網段?」,填上另一部電腦配對碼下面顯示的地址。 在 Windows 上,第一次執行時防火牆會詢問,要選擇允許;如果按過取消,可在「設定 → 區域網絡」裏按「允許」。在 Mac 上,要在「系統設定 → 私隱與保安 → 本地網絡」裏開啟 PasteFerry Daemon。詳情見同一網絡教學。"}},{@@ -199,7 +199,6 @@</nav></div></header>- <p class="renamed"><span class="wrap">隔空貼原名 CopySync。App 和安裝檔裡暫時還叫 CopySync,下個版本會改過來。</span></p><main id="main"><section class="hero">@@ -462,7 +461,7 @@<div><h3><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linejoin="round" aria-hidden="true"><rect x="3" y="4" width="18" height="12" rx="1.5"/><path d="M9 20h6M12 16v4"/></svg>Windows</h3><ol>- <li>執行 CopySync-Setup.exe。它會安裝在目前用戶的目錄下,不需要管理員權限。<span class="aside">隔空貼仍未有程式碼簽署,Windows 會提示「Windows 已保護您的電腦」:按「其他資訊」,再按「仍要執行」。不想執行安裝程式的話,可以下載<a href="https://github.com/baiyuze/pasteferry/releases/latest/download/CopySync-windows-x64.zip">免安裝版</a>。</span></li>+ <li>執行 PasteFerry-Setup.exe。它會安裝在目前用戶的目錄下,不需要管理員權限。<span class="aside">隔空貼仍未有程式碼簽署,Windows 會提示「Windows 已保護您的電腦」:按「其他資訊」,再按「仍要執行」。不想執行安裝程式的話,可以下載<a href="https://github.com/baiyuze/pasteferry/releases/latest/download/PasteFerry-windows-x64.zip">免安裝版</a>。</span></li><li>開啟隔空貼,按「啟用背景同步」。關閉視窗後,它會在右下角的系統匣裏繼續執行。防火牆詢問時選擇允許。</li><li>跨網絡同步時,在「設定」裏填入伺服器地址,按 Enter;在同一個網絡裏則不用填。</li></ol>@@ -471,7 +470,7 @@<div><h3><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linejoin="round" aria-hidden="true"><rect x="3" y="4" width="18" height="12" rx="1.5"/><path d="M9 20h6M12 16v4"/></svg>Linux</h3><ol>- <li>Ubuntu、Debian 等發行版下載 .deb,執行 <code>sudo apt install ./CopySync-linux-amd64.deb</code>;其他發行版下載 tar.gz,解壓後執行 <code>./CopySync/install.sh</code>。</li>+ <li>Ubuntu、Debian 等發行版下載 .deb,執行 <code>sudo apt install ./PasteFerry-linux-amd64.deb</code>;其他發行版下載 tar.gz,解壓後執行 <code>./PasteFerry/install.sh</code>。</li><li>從應用程式選單開啟隔空貼,按「啟用背景同步」。之後它會在登入時自動啟動。</li><li>跨網絡同步時,在「設定」裏填入伺服器地址,按 Enter;在同一個網絡裏則不用填。</li></ol>@@ -549,7 +548,7 @@</details><details><summary>在同一個網絡裏,為甚麼找不到另一部電腦?</summary>- <div class="answer"><p>先看兩部是否真的在同一個網段:公司裏的有線和無線網絡、訪客網絡、開啟了「AP 隔離」的 Wi‑Fi 往往互不相通,區域網絡發現無法穿過。這時在輸入配對碼的那部電腦按「不在同一網段?」,填上另一部電腦配對碼下面顯示的地址。</p><p>在 Windows 上,第一次執行時防火牆會詢問,要選擇允許;如果按過取消,可在「設定 → 區域網絡」裏按「允許」。在 Mac 上,要在「系統設定 → 私隱與保安 → 本地網絡」裏開啟 CopySync Daemon。詳情見<a href="lan/#faq">同一網絡教學</a>。</p></div>+ <div class="answer"><p>先看兩部是否真的在同一個網段:公司裏的有線和無線網絡、訪客網絡、開啟了「AP 隔離」的 Wi‑Fi 往往互不相通,區域網絡發現無法穿過。這時在輸入配對碼的那部電腦按「不在同一網段?」,填上另一部電腦配對碼下面顯示的地址。</p><p>在 Windows 上,第一次執行時防火牆會詢問,要選擇允許;如果按過取消,可在「設定 → 區域網絡」裏按「允許」。在 Mac 上,要在「系統設定 → 私隱與保安 → 本地網絡」裏開啟 PasteFerry Daemon。詳情見<a href="lan/#faq">同一網絡教學</a>。</p></div></details><details><summary>支援 Windows 和 Linux 嗎?iPhone 呢?</summary>diff --git a/docs/zh-hk/lan/index.html b/docs/zh-hk/lan/index.htmlindex f131c99..aaffe8e 100644--- a/docs/zh-hk/lan/index.html+++ b/docs/zh-hk/lan/index.html@@ -51,7 +51,6 @@</nav></div></header>- <p class="renamed"><span class="wrap">隔空貼原名 CopySync。App 和安裝檔裡暫時還叫 CopySync,下個版本會改過來。</span></p><main id="main"><section class="hero guide-hero">@@ -107,7 +106,7 @@<dl class="fallbacks"><div><dt>在同一個網絡裏</dt><dd>兩部電腦連着同一部路由器就可以,Wi‑Fi 與有線混用也行。訪客網絡、開啟了「AP 隔離」的 Wi‑Fi 不讓裝置互相連接;公司裏的有線和無線網絡往往不在同一個網段,這時請看下面的<a href="#subnet">不在同一網段</a>。</dd></div><div><dt>Windows 防火牆</dt><dd>第一次執行時,Windows 防火牆會詢問是否允許隔空貼存取網絡,請選擇允許。如果按過取消,可在隔空貼的「設定 → 區域網絡」裏按「允許」,這會請求一次管理員權限。</dd></div>- <div><dt>macOS 的本地網絡權限</dt><dd>由 macOS 15 起,第一次連接區域網絡裏的裝置時,系統會詢問是否允許 CopySync Daemon 尋找本地網絡上的裝置,請選擇允許。如果拒絕過,可到「系統設定 → 私隱與保安 → 本地網絡」裏開啟它。</dd></div>+ <div><dt>macOS 的本地網絡權限</dt><dd>由 macOS 15 起,第一次連接區域網絡裏的裝置時,系統會詢問是否允許 PasteFerry Daemon 尋找本地網絡上的裝置,請選擇允許。如果拒絕過,可到「系統設定 → 私隱與保安 → 本地網絡」裏開啟它。</dd></div><div><dt>不用填寫伺服器</dt><dd>「設定」裏的伺服器地址留空就可以。日後要跨網絡同步,再填上伺服器或改用 Tailscale,已經配對的裝置不用重新配對。</dd></div></dl></div>@@ -176,7 +175,7 @@<div class="faq"><details><summary>找不到另一部電腦?</summary>- <div class="answer"><p>先確認兩部電腦連着同一個網絡,而且都已啟用後台同步。再試試在輸入配對碼的那部電腦填上對方的地址:這樣能找到的話,代表兩部不在同一網段,或者網絡阻擋了 mDNS。</p><p>仍然找不到,就檢查對方的防火牆:對方是 Windows 的話,在它的「設定 → 區域網絡」裏按「允許」;是 Mac 的話,確認「系統設定 → 私隱與保安 → 本地網絡」裏已開啟 CopySync Daemon,系統防火牆也沒有阻擋它。</p></div>+ <div class="answer"><p>先確認兩部電腦連着同一個網絡,而且都已啟用後台同步。再試試在輸入配對碼的那部電腦填上對方的地址:這樣能找到的話,代表兩部不在同一網段,或者網絡阻擋了 mDNS。</p><p>仍然找不到,就檢查對方的防火牆:對方是 Windows 的話,在它的「設定 → 區域網絡」裏按「允許」;是 Mac 的話,確認「系統設定 → 私隱與保安 → 本地網絡」裏已開啟 PasteFerry Daemon,系統防火牆也沒有阻擋它。</p></div></details><details><summary>離開這個網絡後還能同步嗎?</summary>diff --git a/docs/zh-hk/server/index.html b/docs/zh-hk/server/index.htmlindex 55c6a67..b796012 100644--- a/docs/zh-hk/server/index.html+++ b/docs/zh-hk/server/index.html@@ -51,7 +51,6 @@</nav></div></header>- <p class="renamed"><span class="wrap">隔空貼原名 CopySync。App 和安裝檔裡暫時還叫 CopySync,下個版本會改過來。</span></p><main id="main"><section class="hero guide-hero">@@ -141,23 +140,23 @@<div class="os-grid"><div class="os-steps"><ol class="steps">- <li>下載 <a href="https://github.com/baiyuze/pasteferry/releases/latest/download/copysync-server-windows-amd64.zip">copysync-server-windows-amd64.zip</a>,按右鍵選擇「解壓縮全部」。</li>+ <li>下載 <a href="https://github.com/baiyuze/pasteferry/releases/latest/download/pasteferry-server-windows-amd64.zip">pasteferry-server-windows-amd64.zip</a>,按右鍵選擇「解壓縮全部」。</li><li>開啟解壓出來的資料夾,按兩下 <code>install.cmd</code>。<span class="aside">提示「Windows 已保護您的電腦」時,按「其他資訊」,再按「仍要執行」;彈出「使用者帳戶控制」時按「是」。伺服器仍未有程式碼簽署,所以會這樣詢問一次。</span></li><li>安裝會在新開啟的視窗裏進行。最後顯示的 <code>ws://…/signal</code> 就是用戶端要填的地址。</li></ol>- <a class="button" href="https://github.com/baiyuze/pasteferry/releases/latest/download/copysync-server-windows-amd64.zip"><svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M10 3v10m0 0-4-4m4 4 4-4M4 16h12"/></svg>下載 Windows 版伺服器</a>+ <a class="button" href="https://github.com/baiyuze/pasteferry/releases/latest/download/pasteferry-server-windows-amd64.zip"><svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M10 3v10m0 0-4-4m4 4 4-4M4 16h12"/></svg>下載 Windows 版伺服器</a><ul class="points">- <li><strong>以 Windows 服務形式執行:</strong>開機就啟動,不用登入,也沒有視窗。在「服務」裏叫 CopySync Server。</li>- <li><strong>防火牆已經開放:</strong>腳本加入了一條只針對 copysync-server.exe 的輸入規則,不用自己開放端口。</li>+ <li><strong>以 Windows 服務形式執行:</strong>開機就啟動,不用登入,也沒有視窗。在「服務」裏叫 PasteFerry Server。</li>+ <li><strong>防火牆已經開放:</strong>腳本加入了一條只針對 pasteferry-server.exe 的輸入規則,不用自己開放端口。</li><li><strong>地址認錯了</strong>(例如安裝了虛擬機或 VPN,有好幾張網卡):在解壓出來的資料夾的網址列輸入 <code>cmd</code> 再按 Enter,執行 <code>install.cmd 192.168.1.20</code>,換成你的地址。</li><li>支援 Windows 10、11,x64。</li></ul></div><div class="os-figures">- <figure class="explorer" role="img" aria-label="解壓出來的資料夾裏有 copysync-server.exe、install.cmd、install.ps1、README.md、uninstall.cmd,按兩下其中的 install.cmd">- <div class="t-bar win"><span class="t-tab folder">copysync-server-windows-amd64</span><span class="t-ctl" aria-hidden="true"><i></i><i></i><i></i></span></div>+ <figure class="explorer" role="img" aria-label="解壓出來的資料夾裏有 pasteferry-server.exe、install.cmd、install.ps1、README.md、uninstall.cmd,按兩下其中的 install.cmd">+ <div class="t-bar win"><span class="t-tab folder">pasteferry-server-windows-amd64</span><span class="t-ctl" aria-hidden="true"><i></i><i></i><i></i></span></div><ul class="files">- <li><span class="f-icon exe" aria-hidden="true"></span><span class="f-name">copysync-server.exe</span></li>+ <li><span class="f-icon exe" aria-hidden="true"></span><span class="f-name">pasteferry-server.exe</span></li><li class="hl"><span class="f-icon cmd" aria-hidden="true"></span><span class="f-name">install.cmd</span><em>按兩下</em></li><li><span class="f-icon doc" aria-hidden="true"></span><span class="f-name">install.ps1</span></li><li><span class="f-icon doc" aria-hidden="true"></span><span class="f-name">README.md</span></li>@@ -167,20 +166,20 @@<figure class="term" role="img" aria-label="install.cmd 執行完畢的視窗:依次停止舊版本、安裝、註冊服務、開放防火牆、啟動,最後顯示用戶端要填的地址 ws://192.168.1.20:8787/signal"><div class="t-bar win"><span class="t-tab"><svg viewBox="0 0 24 24" fill="currentColor" aria-hidden="true"><path d="M3 5.5 10.5 4.5v7H3zM11.5 4.4 21 3v8.5h-9.5zM3 12.5h7.5v7L3 18.5zM11.5 12.5H21V21l-9.5-1.4z"/></svg>系統管理員: Windows PowerShell</span><span class="t-ctl" aria-hidden="true"><i></i><i></i><i></i></span></div><pre class="t-body"><span class="t-step">> 停止旧版本</span>-<span class="t-step">> 安装到 C:\Program Files\CopySync Server</span>-<span class="t-step">> 注册服务 CopySyncServer(中转地址 192.168.1.20)</span>+<span class="t-step">> 安装到 C:\Program Files\PasteFerry Server</span>+<span class="t-step">> 注册服务 PasteFerryServer(中转地址 192.168.1.20)</span><span class="t-step">> 在 Windows 防火墙里放行</span><span class="t-step">> 启动</span>√ 已启动-安装完成:copysync-server 1.7.0,作为 Windows 服务开机自动运行-在每台电脑的 CopySync「设置 → 信令服务器地址」填:+安装完成:pasteferry-server 1.7.0,作为 Windows 服务开机自动运行+在每台电脑的 PasteFerry「设置 → 信令服务器地址」填:<span class="t-url">ws://192.168.1.20:8787/signal</span>- 程序 C:\Program Files\CopySync Server- 日志 C:\ProgramData\CopySync Server\server.log- 重启 Restart-Service CopySyncServer(管理员 PowerShell)+ 程序 C:\Program Files\PasteFerry Server+ 日志 C:\ProgramData\PasteFerry Server\server.log+ 重启 Restart-Service PasteFerryServer(管理员 PowerShell)卸载 双击 uninstall.cmd</pre></figure></div>@@ -189,9 +188,9 @@<table class="manage"><caption>日後會用到的</caption><tbody>- <tr><th scope="row">狀態</th><td>在系統管理員 PowerShell 執行 <code>Get-Service CopySyncServer</code>,或者在「服務」裏找 CopySync Server</td></tr>- <tr><th scope="row">日誌</th><td><code>C:\ProgramData\CopySync Server\server.log</code></td></tr>- <tr><th scope="row">重新啟動</th><td>在系統管理員 PowerShell 執行 <code>Restart-Service CopySyncServer</code></td></tr>+ <tr><th scope="row">狀態</th><td>在系統管理員 PowerShell 執行 <code>Get-Service PasteFerryServer</code>,或者在「服務」裏找 PasteFerry Server</td></tr>+ <tr><th scope="row">日誌</th><td><code>C:\ProgramData\PasteFerry Server\server.log</code></td></tr>+ <tr><th scope="row">重新啟動</th><td>在系統管理員 PowerShell 執行 <code>Restart-Service PasteFerryServer</code></td></tr><tr><th scope="row">升級</th><td>下載新版本,解壓後再按兩下 <code>install.cmd</code>,原有設定會保留</td></tr><tr><th scope="row">解除安裝</th><td>按兩下 <code>uninstall.cmd</code>,服務、防火牆規則和檔案會一併刪除</td></tr></tbody>@@ -207,9 +206,9 @@<li>開啟「終端機」,逐行執行:<div class="code"><button class="copy" type="button" data-done="已複製">複製</button>-<pre><code>curl -LO https://github.com/baiyuze/pasteferry/releases/latest/download/copysync-server-macos.tar.gz-tar xzf copysync-server-macos.tar.gz-cd copysync-server-macos+<pre><code>curl -LO https://github.com/baiyuze/pasteferry/releases/latest/download/pasteferry-server-macos.tar.gz+tar xzf pasteferry-server-macos.tar.gz+cd pasteferry-server-macos./install.sh</code></pre></div></li><li>最後顯示的 <code>ws://…/signal</code> 就是用戶端要填的地址。</li>@@ -217,27 +216,27 @@ cd copysync-server-macos<ul class="points"><li><strong>不需要管理員權限。</strong>登入這部 Mac 後會自動在背景執行,意外結束會由系統重新啟動。</li><li><strong>這部 Mac 不能進入睡眠:</strong>在「系統設定 → 能源」(手提電腦在「電池 → 選項」)裏開啟避免自動進入睡眠的選項。</li>- <li><strong>如果開啟了系統防火牆,</strong>腳本最後會提供允許 copysync-server 連線的指令。</li>+ <li><strong>如果開啟了系統防火牆,</strong>腳本最後會提供允許 pasteferry-server 連線的指令。</li><li>Intel 與 Apple 晶片通用,macOS 13 或以上。</li></ul></div><div class="os-figures"><figure class="term" role="img" aria-label="在終端機執行 ./install.sh 的輸出:安裝、寫入 LaunchAgent、啟動,最後顯示用戶端要填的地址 ws://192.168.1.20:8787/signal">- <div class="t-bar mac"><span class="t-lights" aria-hidden="true"><i></i><i></i><i></i></span><span class="t-title">copysync-server-macos — zsh</span></div>+ <div class="t-bar mac"><span class="t-lights" aria-hidden="true"><i></i><i></i><i></i></span><span class="t-title">pasteferry-server-macos — zsh</span></div><pre class="t-body"><span class="t-prompt">%</span> ./install.sh<span class="t-step">▶ 停止旧版本</span>-<span class="t-step">▶ 安装到 /Users/me/Library/Application Support/CopySync Server</span>+<span class="t-step">▶ 安装到 /Users/me/Library/Application Support/PasteFerry Server</span><span class="t-step">▶ 写入 LaunchAgent(中转地址 192.168.1.20)</span><span class="t-step">▶ 启动</span>✓ 已启动-安装完成:copysync-server 1.7.0,登录这台 Mac 后自动运行-在每台电脑的 CopySync「设置 → 信令服务器地址」填:+安装完成:pasteferry-server 1.7.0,登录这台 Mac 后自动运行+在每台电脑的 PasteFerry「设置 → 信令服务器地址」填:<span class="t-url">ws://192.168.1.20:8787/signal</span>- 日志 /Users/me/Library/Logs/CopySync/server.log- 重启 launchctl kickstart -k gui/501/com.copysync.server+ 日志 /Users/me/Library/Logs/PasteFerry/server.log+ 重启 launchctl kickstart -k gui/501/com.pasteferry.server卸载 ./install.sh uninstall</pre></figure></div>@@ -246,8 +245,8 @@ cd copysync-server-macos<table class="manage"><caption>日後會用到的</caption><tbody>- <tr><th scope="row">日誌</th><td><code>~/Library/Logs/CopySync/server.log</code></td></tr>- <tr><th scope="row">重新啟動</th><td><code>launchctl kickstart -k gui/$(id -u)/com.copysync.server</code></td></tr>+ <tr><th scope="row">日誌</th><td><code>~/Library/Logs/PasteFerry/server.log</code></td></tr>+ <tr><th scope="row">重新啟動</th><td><code>launchctl kickstart -k gui/$(id -u)/com.pasteferry.server</code></td></tr><tr><th scope="row">升級</th><td>下載新版本,解壓後再執行 <code>./install.sh</code>,原有設定會保留</td></tr><tr><th scope="row">解除安裝</th><td><code>./install.sh uninstall</code></td></tr></tbody>@@ -263,9 +262,9 @@ cd copysync-server-macos<li>在這部機器上(或用 ssh 登入後)逐行執行:<span class="aside">ARM 裝置,例如安裝了 64 位元系統的 Raspberry Pi,請把 <code>amd64</code> 換成 <code>arm64</code>。</span><div class="code"><button class="copy" type="button" data-done="已複製">複製</button>-<pre><code>curl -LO https://github.com/baiyuze/pasteferry/releases/latest/download/copysync-server-linux-amd64.tar.gz-tar xzf copysync-server-linux-amd64.tar.gz-cd copysync-server-linux-amd64+<pre><code>curl -LO https://github.com/baiyuze/pasteferry/releases/latest/download/pasteferry-server-linux-amd64.tar.gz+tar xzf pasteferry-server-linux-amd64.tar.gz+cd pasteferry-server-linux-amd64sudo ./install.sh</code></pre></div></li><li>最後顯示的 <code>ws://…/signal</code> 就是用戶端要填的地址。</li>@@ -282,18 +281,18 @@ sudo ./install.sh</code></pre><pre class="t-body"><span class="t-prompt">$</span> sudo ./install.sh<span class="t-step">▶ 安装二进制到 /usr/local/bin</span><span class="t-step">▶ 写入 systemd 单元</span>-<span class="t-step">▶ 生成配置 /etc/copysync/server.env(中转地址 192.168.1.20)</span>+<span class="t-step">▶ 生成配置 /etc/pasteferry/server.env(中转地址 192.168.1.20)</span><span class="t-step">▶ 启动</span>✓ 已启动-安装完成:copysync-server 1.7.0-在每台电脑的 CopySync「设置 → 信令服务器地址」填:+安装完成:pasteferry-server 1.7.0+在每台电脑的 PasteFerry「设置 → 信令服务器地址」填:<span class="t-url">ws://192.168.1.20:8787/signal</span>- 配置 /etc/copysync/server.env- 日志 journalctl -u copysync-server -f- 重启 systemctl restart copysync-server+ 配置 /etc/pasteferry/server.env+ 日志 journalctl -u pasteferry-server -f+ 重启 systemctl restart pasteferry-server卸载 sudo ./install.sh uninstall防火墙需放行:TCP 8787(信令)、UDP 3478(STUN 与 TURN)、UDP 32768-60999(中转端口,系统随机分配)</pre>@@ -304,10 +303,10 @@ sudo ./install.sh</code></pre><table class="manage"><caption>日後會用到的</caption><tbody>- <tr><th scope="row">狀態</th><td><code>systemctl status copysync-server</code></td></tr>- <tr><th scope="row">日誌</th><td><code>journalctl -u copysync-server -f</code></td></tr>- <tr><th scope="row">重新啟動</th><td><code>sudo systemctl restart copysync-server</code></td></tr>- <tr><th scope="row">設定</th><td><code>/etc/copysync/server.env</code>,改完要重新啟動服務</td></tr>+ <tr><th scope="row">狀態</th><td><code>systemctl status pasteferry-server</code></td></tr>+ <tr><th scope="row">日誌</th><td><code>journalctl -u pasteferry-server -f</code></td></tr>+ <tr><th scope="row">重新啟動</th><td><code>sudo systemctl restart pasteferry-server</code></td></tr>+ <tr><th scope="row">設定</th><td><code>/etc/pasteferry/server.env</code>,改完要重新啟動服務</td></tr><tr><th scope="row">升級</th><td>下載新版本,解壓後再執行 <code>sudo ./install.sh</code>,原有設定會保留</td></tr><tr><th scope="row">解除安裝</th><td><code>sudo ./install.sh uninstall</code></td></tr></tbody>@@ -359,7 +358,7 @@ sudo ./install.sh</code></pre></details><details><summary>伺服器的地址改變了怎麼辦?</summary>- <div class="answer"><p>帶上新地址再執行一次安裝腳本:Windows 上是 <code>install.cmd 新地址</code>,Mac 上是 <code>./install.sh 新地址</code>;Linux 上編輯 <code>/etc/copysync/server.env</code> 裏的 <code>-turn-ip</code>,再重新啟動服務。然後在每部電腦上更改伺服器地址。</p><p>在路由器裏給它固定一個地址,就不會再遇到這個問題。</p></div>+ <div class="answer"><p>帶上新地址再執行一次安裝腳本:Windows 上是 <code>install.cmd 新地址</code>,Mac 上是 <code>./install.sh 新地址</code>;Linux 上編輯 <code>/etc/pasteferry/server.env</code> 裏的 <code>-turn-ip</code>,再重新啟動服務。然後在每部電腦上更改伺服器地址。</p><p>在路由器裏給它固定一個地址,就不會再遇到這個問題。</p></div></details><details><summary>離開區域網絡後還能同步嗎?</summary>diff --git a/docs/zh-hk/start/index.html b/docs/zh-hk/start/index.htmlindex 27ee293..a430b68 100644--- a/docs/zh-hk/start/index.html+++ b/docs/zh-hk/start/index.html@@ -51,7 +51,6 @@</nav></div></header>- <p class="renamed"><span class="wrap">隔空貼原名 CopySync。App 和安裝檔裡暫時還叫 CopySync,下個版本會改過來。</span></p><main id="main"><section class="hero guide-hero">@@ -86,7 +85,7 @@<div class="qs-app"><h3><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linejoin="round" aria-hidden="true"><rect x="3" y="4" width="18" height="12" rx="1.5"/><path d="M9 20h6M12 16v4"/></svg>Windows</h3><ol class="steps">- <li>執行 CopySync-Setup.exe,不需要管理員權限。<span class="aside">提示「Windows 已保護您的電腦」時,按「其他資訊」,再按「仍要執行」。</span></li>+ <li>執行 PasteFerry-Setup.exe,不需要管理員權限。<span class="aside">提示「Windows 已保護您的電腦」時,按「其他資訊」,再按「仍要執行」。</span></li><li>開啟隔空貼,按「啟用背景同步」。防火牆詢問時選擇允許。關閉視窗後,它會在右下角的系統匣裏繼續執行。</li></ol><a class="button" href="../../zh-hk/download/#windows"><svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M10 3v10m0 0-4-4m4 4 4-4M4 16h12"/></svg>下載 Windows 版</a>diff --git a/docs/zh-hk/tailscale/index.html b/docs/zh-hk/tailscale/index.htmlindex f702fce..430cff3 100644--- a/docs/zh-hk/tailscale/index.html+++ b/docs/zh-hk/tailscale/index.html@@ -51,7 +51,6 @@</nav></div></header>- <p class="renamed"><span class="wrap">隔空貼原名 CopySync。App 和安裝檔裡暫時還叫 CopySync,下個版本會改過來。</span></p><main id="main"><section class="hero guide-hero">@@ -196,7 +195,7 @@</details><details><summary>配對時找不到對方?</summary>- <div class="answer"><p>先確認兩部電腦的 Tailscale 都已連線:在終端機執行 <code>tailscale ping 對方的地址</code>,能 ping 通再試。</p><p>能 ping 通但仍找不到,多半是對方的防火牆阻擋了:對方是 Windows 的話,在它的隔空貼「設定 → 區域網絡」裏按「允許」;是 Mac 的話,確認「系統設定 → 私隱與保安 → 本地網絡」裏已開啟 CopySync Daemon。</p></div>+ <div class="answer"><p>先確認兩部電腦的 Tailscale 都已連線:在終端機執行 <code>tailscale ping 對方的地址</code>,能 ping 通再試。</p><p>能 ping 通但仍找不到,多半是對方的防火牆阻擋了:對方是 Windows 的話,在它的隔空貼「設定 → 區域網絡」裏按「允許」;是 Mac 的話,確認「系統設定 → 私隱與保安 → 本地網絡」裏已開啟 PasteFerry Daemon。</p></div></details><details><summary>一定要每部電腦都安裝 Tailscale 嗎?</summary>diff --git a/docs/zh-tw/cloud/index.html b/docs/zh-tw/cloud/index.htmlindex 585c35c..2da2118 100644--- a/docs/zh-tw/cloud/index.html+++ b/docs/zh-tw/cloud/index.html@@ -51,7 +51,6 @@</nav></div></header>- <p class="renamed"><span class="wrap">隔空貼原名 CopySync。App 和安裝檔裡暫時還叫 CopySync,下個版本會改過來。</span></p><main id="main"><section class="hero guide-hero">@@ -167,15 +166,15 @@<li>逐行執行,最後一行換成你的公用 IP:<span class="aside">ARM 伺服器把 <code>amd64</code> 換成 <code>arm64</code>。</span><div class="code"><button class="copy" type="button" data-done="已複製">複製</button>-<pre><code>curl -LO https://github.com/baiyuze/pasteferry/releases/latest/download/copysync-server-linux-amd64.tar.gz-tar xzf copysync-server-linux-amd64.tar.gz-cd copysync-server-linux-amd64+<pre><code>curl -LO https://github.com/baiyuze/pasteferry/releases/latest/download/pasteferry-server-linux-amd64.tar.gz+tar xzf pasteferry-server-linux-amd64.tar.gz+cd pasteferry-server-linux-amd64sudo ./install.sh 203.0.113.10</code></pre></div></li><li>最後顯示的 <code>ws://203.0.113.10:8787/signal</code> 就是用戶端要填的位址。</li></ol><ul class="points">- <li><strong>註冊為 systemd 服務,</strong>開機自動執行,設定檔在 <code>/etc/copysync/server.env</code>。</li>+ <li><strong>註冊為 systemd 服務,</strong>開機自動執行,設定檔在 <code>/etc/pasteferry/server.env</code>。</li><li><strong>升級:</strong>下載新版本,解壓縮後再執行 <code>sudo ./install.sh</code>,原本的設定會保留。</li><li><strong>也可以用 Docker:</strong>見<a href="https://github.com/baiyuze/pasteferry/blob/main/server/deploy/README.md">伺服器架設說明</a>。</li></ul>@@ -186,18 +185,18 @@ sudo ./install.sh 203.0.113.10</code></pre><pre class="t-body"><span class="t-prompt">$</span> sudo ./install.sh 203.0.113.10<span class="t-step">▶ 安装二进制到 /usr/local/bin</span><span class="t-step">▶ 写入 systemd 单元</span>-<span class="t-step">▶ 生成配置 /etc/copysync/server.env(中转地址 203.0.113.10)</span>+<span class="t-step">▶ 生成配置 /etc/pasteferry/server.env(中转地址 203.0.113.10)</span><span class="t-step">▶ 启动</span>✓ 已启动-安装完成:copysync-server 1.7.0-在每台电脑的 CopySync「设置 → 信令服务器地址」填:+安装完成:pasteferry-server 1.7.0+在每台电脑的 PasteFerry「设置 → 信令服务器地址」填:<span class="t-url">ws://203.0.113.10:8787/signal</span>- 配置 /etc/copysync/server.env- 日志 journalctl -u copysync-server -f- 重启 systemctl restart copysync-server+ 配置 /etc/pasteferry/server.env+ 日志 journalctl -u pasteferry-server -f+ 重启 systemctl restart pasteferry-server卸载 sudo ./install.sh uninstall防火墙需放行:TCP 8787(信令)、UDP 3478(STUN 与 TURN)、UDP 32768-60999(中转端口,系统随机分配)</pre>@@ -237,10 +236,10 @@ sudo ./install.sh 203.0.113.10</code></pre><table class="manage"><caption>之後會用到的</caption><tbody>- <tr><th scope="row">狀態</th><td><code>systemctl status copysync-server</code></td></tr>- <tr><th scope="row">記錄檔</th><td><code>journalctl -u copysync-server -f</code></td></tr>- <tr><th scope="row">重新啟動</th><td><code>sudo systemctl restart copysync-server</code></td></tr>- <tr><th scope="row">設定</th><td><code>/etc/copysync/server.env</code>,改完要重新啟動服務</td></tr>+ <tr><th scope="row">狀態</th><td><code>systemctl status pasteferry-server</code></td></tr>+ <tr><th scope="row">記錄檔</th><td><code>journalctl -u pasteferry-server -f</code></td></tr>+ <tr><th scope="row">重新啟動</th><td><code>sudo systemctl restart pasteferry-server</code></td></tr>+ <tr><th scope="row">設定</th><td><code>/etc/pasteferry/server.env</code>,改完要重新啟動服務</td></tr><tr><th scope="row">升級</th><td>下載新版本,解壓縮後再執行 <code>sudo ./install.sh</code>,原本的設定會保留</td></tr><tr><th scope="row">解除安裝</th><td><code>sudo ./install.sh uninstall</code></td></tr></tbody>diff --git a/docs/zh-tw/download/index.html b/docs/zh-tw/download/index.htmlindex 96a9b1f..0010491 100644--- a/docs/zh-tw/download/index.html+++ b/docs/zh-tw/download/index.html@@ -51,7 +51,6 @@</nav></div></header>- <p class="renamed"><span class="wrap">隔空貼原名 CopySync。App 和安裝檔裡暫時還叫 CopySync,下個版本會改過來。</span></p><main id="main"><section class="hero guide-hero">@@ -76,11 +75,11 @@<div class="os-grid"><div class="os-steps"><div class="dl-row">- <a class="button" href="https://github.com/baiyuze/pasteferry/releases/latest/download/CopySync-Setup.exe"><svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M10 3v10m0 0-4-4m4 4 4-4M4 16h12"/></svg>下載安裝程式</a>+ <a class="button" href="https://github.com/baiyuze/pasteferry/releases/latest/download/PasteFerry-Setup.exe"><svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M10 3v10m0 0-4-4m4 4 4-4M4 16h12"/></svg>下載安裝程式</a></div>- <p class="small">不想執行安裝程式的話,可以下載<a href="https://github.com/baiyuze/pasteferry/releases/latest/download/CopySync-windows-x64.zip">免安裝版</a>,解壓縮後直接執行。</p>+ <p class="small">不想執行安裝程式的話,可以下載<a href="https://github.com/baiyuze/pasteferry/releases/latest/download/PasteFerry-windows-x64.zip">免安裝版</a>,解壓縮後直接執行。</p><ol class="steps">- <li>執行 CopySync-Setup.exe,它會安裝在目前使用者的目錄下,不需要系統管理員權限。<span class="aside">出現「Windows 已保護您的電腦」時,點「其他資訊」,再點「仍要執行」。</span></li>+ <li>執行 PasteFerry-Setup.exe,它會安裝在目前使用者的目錄下,不需要系統管理員權限。<span class="aside">出現「Windows 已保護您的電腦」時,點「其他資訊」,再點「仍要執行」。</span></li><li>打開隔空貼,點「啟用背景同步」。防火牆詢問時選擇允許。</li></ol></div>@@ -97,10 +96,10 @@<div class="os-grid"><div class="os-steps"><div class="dl-row" data-mac-chip>- <a class="button" href="https://github.com/baiyuze/pasteferry/releases/latest/download/CopySync-mac-apple-silicon.dmg"><svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M10 3v10m0 0-4-4m4 4 4-4M4 16h12"/></svg>Apple 晶片(M1 及更新機型)</a>- <a class="button quiet" href="https://github.com/baiyuze/pasteferry/releases/latest/download/CopySync-mac-intel.dmg"><svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M10 3v10m0 0-4-4m4 4 4-4M4 16h12"/></svg>Intel 晶片</a>+ <a class="button" href="https://github.com/baiyuze/pasteferry/releases/latest/download/PasteFerry-mac-apple-silicon.dmg"><svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M10 3v10m0 0-4-4m4 4 4-4M4 16h12"/></svg>Apple 晶片(M1 及更新機型)</a>+ <a class="button quiet" href="https://github.com/baiyuze/pasteferry/releases/latest/download/PasteFerry-mac-intel.dmg"><svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M10 3v10m0 0-4-4m4 4 4-4M4 16h12"/></svg>Intel 晶片</a></div>- <p class="small">也有兩種晶片都能用的<a href="https://github.com/baiyuze/pasteferry/releases/latest/download/CopySync.dmg">通用版</a>,檔案大一倍。</p>+ <p class="small">也有兩種晶片都能用的<a href="https://github.com/baiyuze/pasteferry/releases/latest/download/PasteFerry.dmg">通用版</a>,檔案大一倍。</p><ol class="steps"><li>打開下載的 DMG,把隔空貼拖進「應用程式」。</li><li>從「應用程式」裡打開。<span class="aside">第一次會提示「無法驗證開發者」:到「系統設定 → 隱私權與安全性」,點頁面下方的「強制打開」。</span></li>@@ -125,28 +124,28 @@<div class="os-steps"><h4>Ubuntu、Debian 及其衍生版本</h4><div class="dl-row">- <a class="button" href="https://github.com/baiyuze/pasteferry/releases/latest/download/CopySync-linux-amd64.deb"><svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M10 3v10m0 0-4-4m4 4 4-4M4 16h12"/></svg>x64</a>- <a class="button quiet" href="https://github.com/baiyuze/pasteferry/releases/latest/download/CopySync-linux-arm64.deb"><svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M10 3v10m0 0-4-4m4 4 4-4M4 16h12"/></svg>ARM64</a>+ <a class="button" href="https://github.com/baiyuze/pasteferry/releases/latest/download/PasteFerry-linux-amd64.deb"><svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M10 3v10m0 0-4-4m4 4 4-4M4 16h12"/></svg>x64</a>+ <a class="button quiet" href="https://github.com/baiyuze/pasteferry/releases/latest/download/PasteFerry-linux-arm64.deb"><svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M10 3v10m0 0-4-4m4 4 4-4M4 16h12"/></svg>ARM64</a></div><div class="code"><button class="copy" type="button" data-done="已複製">複製</button>-<pre><code>sudo apt install ./CopySync-linux-amd64.deb</code></pre>+<pre><code>sudo apt install ./PasteFerry-linux-amd64.deb</code></pre></div><h4>其他發行版</h4><div class="dl-row">- <a class="button quiet" href="https://github.com/baiyuze/pasteferry/releases/latest/download/CopySync-linux-amd64.tar.gz"><svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M10 3v10m0 0-4-4m4 4 4-4M4 16h12"/></svg>x64</a>- <a class="button quiet" href="https://github.com/baiyuze/pasteferry/releases/latest/download/CopySync-linux-arm64.tar.gz"><svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M10 3v10m0 0-4-4m4 4 4-4M4 16h12"/></svg>ARM64</a>+ <a class="button quiet" href="https://github.com/baiyuze/pasteferry/releases/latest/download/PasteFerry-linux-amd64.tar.gz"><svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M10 3v10m0 0-4-4m4 4 4-4M4 16h12"/></svg>x64</a>+ <a class="button quiet" href="https://github.com/baiyuze/pasteferry/releases/latest/download/PasteFerry-linux-arm64.tar.gz"><svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M10 3v10m0 0-4-4m4 4 4-4M4 16h12"/></svg>ARM64</a></div><div class="code"><button class="copy" type="button" data-done="已複製">複製</button>-<pre><code>tar xzf CopySync-linux-amd64.tar.gz-./CopySync/install.sh</code></pre>+<pre><code>tar xzf PasteFerry-linux-amd64.tar.gz+./PasteFerry/install.sh</code></pre></div></div><ul class="points"><li>需要圖形桌面:X11,或附有 XWayland 的 Wayland 桌面,GNOME、KDE 等主流桌面預設都有。</li><li>不確定是 x64 還是 ARM64:在終端機執行 <code>uname -m</code>,顯示 <code>x86_64</code> 是 x64,<code>aarch64</code> 是 ARM64。</li>- <li>.deb 會裝在 /opt/CopySync,並出現在應用程式選單裡。tar.gz 解壓縮到哪裡都能執行,<code>install.sh</code> 會把它加進應用程式選單。</li>+ <li>.deb 會裝在 /opt/PasteFerry,並出現在應用程式選單裡。tar.gz 解壓縮到哪裡都能執行,<code>install.sh</code> 會把它加進應用程式選單。</li><li>打開後點「啟用背景同步」,之後登入時會自動啟動。GNOME 預設不顯示系統匣圖示,請從應用程式選單打開視窗。</li><li>需要 GTK 3。已在 Ubuntu 24.04 的 GNOME(Wayland)上實測過。</li></ul>diff --git a/docs/zh-tw/index.html b/docs/zh-tw/index.htmlindex f6c0a34..c27692c 100644--- a/docs/zh-tw/index.html+++ b/docs/zh-tw/index.html@@ -132,7 +132,7 @@"name": "在同一個網路裡,為什麼找不到另一台?","acceptedAnswer": {"@type": "Answer",- "text": "先確認兩台是不是真的在同一個網段:公司裡的有線和無線、訪客網路、開了「AP 隔離」的 Wi‑Fi 常常互不相通,區域網路探索過不去。這時在輸入配對碼的那台點「不在同一網段?」,填上另一台配對碼下方顯示的位址。 在 Windows 上,第一次執行時防火牆會詢問,要選擇允許;如果按過取消,到「設定 → 區域網路」裡點「允許」。在 Mac 上,要到「系統設定 → 隱私權與安全性 → 本機網路」裡開啟 CopySync Daemon。更多說明見同一網路教學。"+ "text": "先確認兩台是不是真的在同一個網段:公司裡的有線和無線、訪客網路、開了「AP 隔離」的 Wi‑Fi 常常互不相通,區域網路探索過不去。這時在輸入配對碼的那台點「不在同一網段?」,填上另一台配對碼下方顯示的位址。 在 Windows 上,第一次執行時防火牆會詢問,要選擇允許;如果按過取消,到「設定 → 區域網路」裡點「允許」。在 Mac 上,要到「系統設定 → 隱私權與安全性 → 本機網路」裡開啟 PasteFerry Daemon。更多說明見同一網路教學。"}},{@@ -199,7 +199,6 @@</nav></div></header>- <p class="renamed"><span class="wrap">隔空貼原名 CopySync。App 和安裝檔裡暫時還叫 CopySync,下個版本會改過來。</span></p><main id="main"><section class="hero">@@ -462,7 +461,7 @@<div><h3><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linejoin="round" aria-hidden="true"><rect x="3" y="4" width="18" height="12" rx="1.5"/><path d="M9 20h6M12 16v4"/></svg>Windows</h3><ol>- <li>執行 CopySync-Setup.exe。它會安裝在目前使用者的目錄下,不需要系統管理員權限。<span class="aside">隔空貼還沒有程式碼簽章,Windows 會提示「Windows 已保護您的電腦」:點「其他資訊」,再點「仍要執行」。不想執行安裝程式的話,可以下載<a href="https://github.com/baiyuze/pasteferry/releases/latest/download/CopySync-windows-x64.zip">免安裝版</a>。</span></li>+ <li>執行 PasteFerry-Setup.exe。它會安裝在目前使用者的目錄下,不需要系統管理員權限。<span class="aside">隔空貼還沒有程式碼簽章,Windows 會提示「Windows 已保護您的電腦」:點「其他資訊」,再點「仍要執行」。不想執行安裝程式的話,可以下載<a href="https://github.com/baiyuze/pasteferry/releases/latest/download/PasteFerry-windows-x64.zip">免安裝版</a>。</span></li><li>打開隔空貼,點「啟用背景同步」。關掉視窗後,它會在右下角的通知區域繼續執行。防火牆詢問時選擇允許。</li><li>跨網路同步時,在「設定」裡填入伺服器位址,按 Enter;在同一個網路裡不用填。</li></ol>@@ -471,7 +470,7 @@<div><h3><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linejoin="round" aria-hidden="true"><rect x="3" y="4" width="18" height="12" rx="1.5"/><path d="M9 20h6M12 16v4"/></svg>Linux</h3><ol>- <li>Ubuntu、Debian 等發行版下載 .deb,執行 <code>sudo apt install ./CopySync-linux-amd64.deb</code>;其他發行版下載 tar.gz,解壓縮後執行 <code>./CopySync/install.sh</code>。</li>+ <li>Ubuntu、Debian 等發行版下載 .deb,執行 <code>sudo apt install ./PasteFerry-linux-amd64.deb</code>;其他發行版下載 tar.gz,解壓縮後執行 <code>./PasteFerry/install.sh</code>。</li><li>從應用程式選單打開隔空貼,點「啟用背景同步」。之後它會在登入時自動啟動。</li><li>跨網路同步時,在「設定」裡填入伺服器位址,按 Enter;在同一個網路裡不用填。</li></ol>@@ -549,7 +548,7 @@</details><details><summary>在同一個網路裡,為什麼找不到另一台?</summary>- <div class="answer"><p>先確認兩台是不是真的在同一個網段:公司裡的有線和無線、訪客網路、開了「AP 隔離」的 Wi‑Fi 常常互不相通,區域網路探索過不去。這時在輸入配對碼的那台點「不在同一網段?」,填上另一台配對碼下方顯示的位址。</p><p>在 Windows 上,第一次執行時防火牆會詢問,要選擇允許;如果按過取消,到「設定 → 區域網路」裡點「允許」。在 Mac 上,要到「系統設定 → 隱私權與安全性 → 本機網路」裡開啟 CopySync Daemon。更多說明見<a href="lan/#faq">同一網路教學</a>。</p></div>+ <div class="answer"><p>先確認兩台是不是真的在同一個網段:公司裡的有線和無線、訪客網路、開了「AP 隔離」的 Wi‑Fi 常常互不相通,區域網路探索過不去。這時在輸入配對碼的那台點「不在同一網段?」,填上另一台配對碼下方顯示的位址。</p><p>在 Windows 上,第一次執行時防火牆會詢問,要選擇允許;如果按過取消,到「設定 → 區域網路」裡點「允許」。在 Mac 上,要到「系統設定 → 隱私權與安全性 → 本機網路」裡開啟 PasteFerry Daemon。更多說明見<a href="lan/#faq">同一網路教學</a>。</p></div></details><details><summary>支援 Windows 和 Linux 嗎?iPhone 呢?</summary>diff --git a/docs/zh-tw/lan/index.html b/docs/zh-tw/lan/index.htmlindex a18f032..8f6824a 100644--- a/docs/zh-tw/lan/index.html+++ b/docs/zh-tw/lan/index.html@@ -51,7 +51,6 @@</nav></div></header>- <p class="renamed"><span class="wrap">隔空貼原名 CopySync。App 和安裝檔裡暫時還叫 CopySync,下個版本會改過來。</span></p><main id="main"><section class="hero guide-hero">@@ -107,7 +106,7 @@<dl class="fallbacks"><div><dt>在同一個網路裡</dt><dd>兩台電腦連著同一台路由器就行,Wi‑Fi 與有線混用也可以。訪客網路、開了「AP 隔離」的 Wi‑Fi 不讓裝置互相連線;公司裡的有線和無線常常不在同一個網段,這時請看下面的<a href="#subnet">不在同一網段</a>。</dd></div><div><dt>Windows 防火牆</dt><dd>第一次執行時,Windows 會詢問是否允許隔空貼通過防火牆,請選擇允許。如果按過取消,到隔空貼的「設定 → 區域網路」裡點「允許」,會要求一次系統管理員權限。</dd></div>- <div><dt>macOS 的本機網路權限</dt><dd>從 macOS 15 起,第一次連線區域網路裡的裝置時,系統會詢問是否允許 CopySync Daemon 尋找區域網路上的裝置,請選擇允許。拒絕過的話,到「系統設定 → 隱私權與安全性 → 本機網路」裡開啟它。</dd></div>+ <div><dt>macOS 的本機網路權限</dt><dd>從 macOS 15 起,第一次連線區域網路裡的裝置時,系統會詢問是否允許 PasteFerry Daemon 尋找區域網路上的裝置,請選擇允許。拒絕過的話,到「系統設定 → 隱私權與安全性 → 本機網路」裡開啟它。</dd></div><div><dt>不用填伺服器</dt><dd>「設定」裡的伺服器位址留空就行。以後要跨網路同步,再填上伺服器或改用 Tailscale,已經配對的裝置不用重新配對。</dd></div></dl></div>@@ -176,7 +175,7 @@<div class="faq"><details><summary>找不到另一台電腦?</summary>- <div class="answer"><p>先確認兩台連著同一個網路、都已啟用背景同步。再試試在輸入配對碼的那台填上對方的位址:這樣能找到的話,代表兩台不在同一個網段,或網路擋住了 mDNS。</p><p>還是找不到,就檢查對方的防火牆:對方是 Windows 的話,在它的「設定 → 區域網路」裡點「允許」;是 Mac 的話,確認「系統設定 → 隱私權與安全性 → 本機網路」裡已開啟 CopySync Daemon,系統防火牆也沒有擋住它。</p></div>+ <div class="answer"><p>先確認兩台連著同一個網路、都已啟用背景同步。再試試在輸入配對碼的那台填上對方的位址:這樣能找到的話,代表兩台不在同一個網段,或網路擋住了 mDNS。</p><p>還是找不到,就檢查對方的防火牆:對方是 Windows 的話,在它的「設定 → 區域網路」裡點「允許」;是 Mac 的話,確認「系統設定 → 隱私權與安全性 → 本機網路」裡已開啟 PasteFerry Daemon,系統防火牆也沒有擋住它。</p></div></details><details><summary>離開這個網路後還能同步嗎?</summary>diff --git a/docs/zh-tw/server/index.html b/docs/zh-tw/server/index.htmlindex 15d0774..c0fa816 100644--- a/docs/zh-tw/server/index.html+++ b/docs/zh-tw/server/index.html@@ -51,7 +51,6 @@</nav></div></header>- <p class="renamed"><span class="wrap">隔空貼原名 CopySync。App 和安裝檔裡暫時還叫 CopySync,下個版本會改過來。</span></p><main id="main"><section class="hero guide-hero">@@ -141,23 +140,23 @@<div class="os-grid"><div class="os-steps"><ol class="steps">- <li>下載 <a href="https://github.com/baiyuze/pasteferry/releases/latest/download/copysync-server-windows-amd64.zip">copysync-server-windows-amd64.zip</a>,按右鍵選「解壓縮全部」。</li>+ <li>下載 <a href="https://github.com/baiyuze/pasteferry/releases/latest/download/pasteferry-server-windows-amd64.zip">pasteferry-server-windows-amd64.zip</a>,按右鍵選「解壓縮全部」。</li><li>打開解壓縮後的資料夾,按兩下 <code>install.cmd</code>。<span class="aside">出現「Windows 已保護您的電腦」時,點「其他資訊」,再點「仍要執行」;跳出「使用者帳戶控制」時點「是」。伺服器還沒有程式碼簽章,所以會詢問這一次。</span></li><li>安裝會在新開的視窗裡進行。最後顯示的 <code>ws://…/signal</code> 就是用戶端要填的位址。</li></ol>- <a class="button" href="https://github.com/baiyuze/pasteferry/releases/latest/download/copysync-server-windows-amd64.zip"><svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M10 3v10m0 0-4-4m4 4 4-4M4 16h12"/></svg>下載 Windows 版伺服器</a>+ <a class="button" href="https://github.com/baiyuze/pasteferry/releases/latest/download/pasteferry-server-windows-amd64.zip"><svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M10 3v10m0 0-4-4m4 4 4-4M4 16h12"/></svg>下載 Windows 版伺服器</a><ul class="points">- <li><strong>以 Windows 服務執行:</strong>開機就啟動,不用登入,也沒有視窗。在「服務」裡的名稱是 CopySync Server。</li>- <li><strong>防火牆已經開放:</strong>腳本新增了一條只針對 copysync-server.exe 的輸入規則,不用自己開連接埠。</li>+ <li><strong>以 Windows 服務執行:</strong>開機就啟動,不用登入,也沒有視窗。在「服務」裡的名稱是 PasteFerry Server。</li>+ <li><strong>防火牆已經開放:</strong>腳本新增了一條只針對 pasteferry-server.exe 的輸入規則,不用自己開連接埠。</li><li><strong>位址抓錯了</strong>(例如裝了虛擬機或 VPN,有好幾張網路卡):在解壓縮後資料夾的網址列輸入 <code>cmd</code> 再按 Enter,執行 <code>install.cmd 192.168.1.20</code>,換成你的位址。</li><li>支援 Windows 10、11,x64。</li></ul></div><div class="os-figures">- <figure class="explorer" role="img" aria-label="解壓縮後的資料夾裡有 copysync-server.exe、install.cmd、install.ps1、README.md、uninstall.cmd,按兩下其中的 install.cmd">- <div class="t-bar win"><span class="t-tab folder">copysync-server-windows-amd64</span><span class="t-ctl" aria-hidden="true"><i></i><i></i><i></i></span></div>+ <figure class="explorer" role="img" aria-label="解壓縮後的資料夾裡有 pasteferry-server.exe、install.cmd、install.ps1、README.md、uninstall.cmd,按兩下其中的 install.cmd">+ <div class="t-bar win"><span class="t-tab folder">pasteferry-server-windows-amd64</span><span class="t-ctl" aria-hidden="true"><i></i><i></i><i></i></span></div><ul class="files">- <li><span class="f-icon exe" aria-hidden="true"></span><span class="f-name">copysync-server.exe</span></li>+ <li><span class="f-icon exe" aria-hidden="true"></span><span class="f-name">pasteferry-server.exe</span></li><li class="hl"><span class="f-icon cmd" aria-hidden="true"></span><span class="f-name">install.cmd</span><em>按兩下</em></li><li><span class="f-icon doc" aria-hidden="true"></span><span class="f-name">install.ps1</span></li><li><span class="f-icon doc" aria-hidden="true"></span><span class="f-name">README.md</span></li>@@ -167,20 +166,20 @@<figure class="term" role="img" aria-label="install.cmd 執行完的視窗:依序停止舊版本、安裝、註冊服務、開放防火牆、啟動,最後顯示用戶端要填的位址 ws://192.168.1.20:8787/signal"><div class="t-bar win"><span class="t-tab"><svg viewBox="0 0 24 24" fill="currentColor" aria-hidden="true"><path d="M3 5.5 10.5 4.5v7H3zM11.5 4.4 21 3v8.5h-9.5zM3 12.5h7.5v7L3 18.5zM11.5 12.5H21V21l-9.5-1.4z"/></svg>系統管理員: Windows PowerShell</span><span class="t-ctl" aria-hidden="true"><i></i><i></i><i></i></span></div><pre class="t-body"><span class="t-step">> 停止旧版本</span>-<span class="t-step">> 安装到 C:\Program Files\CopySync Server</span>-<span class="t-step">> 注册服务 CopySyncServer(中转地址 192.168.1.20)</span>+<span class="t-step">> 安装到 C:\Program Files\PasteFerry Server</span>+<span class="t-step">> 注册服务 PasteFerryServer(中转地址 192.168.1.20)</span><span class="t-step">> 在 Windows 防火墙里放行</span><span class="t-step">> 启动</span>√ 已启动-安装完成:copysync-server 1.7.0,作为 Windows 服务开机自动运行-在每台电脑的 CopySync「设置 → 信令服务器地址」填:+安装完成:pasteferry-server 1.7.0,作为 Windows 服务开机自动运行+在每台电脑的 PasteFerry「设置 → 信令服务器地址」填:<span class="t-url">ws://192.168.1.20:8787/signal</span>- 程序 C:\Program Files\CopySync Server- 日志 C:\ProgramData\CopySync Server\server.log- 重启 Restart-Service CopySyncServer(管理员 PowerShell)+ 程序 C:\Program Files\PasteFerry Server+ 日志 C:\ProgramData\PasteFerry Server\server.log+ 重启 Restart-Service PasteFerryServer(管理员 PowerShell)卸载 双击 uninstall.cmd</pre></figure></div>@@ -189,9 +188,9 @@<table class="manage"><caption>之後會用到的</caption><tbody>- <tr><th scope="row">狀態</th><td>在系統管理員 PowerShell 裡執行 <code>Get-Service CopySyncServer</code>,或在「服務」裡找 CopySync Server</td></tr>- <tr><th scope="row">記錄檔</th><td><code>C:\ProgramData\CopySync Server\server.log</code></td></tr>- <tr><th scope="row">重新啟動</th><td>在系統管理員 PowerShell 裡執行 <code>Restart-Service CopySyncServer</code></td></tr>+ <tr><th scope="row">狀態</th><td>在系統管理員 PowerShell 裡執行 <code>Get-Service PasteFerryServer</code>,或在「服務」裡找 PasteFerry Server</td></tr>+ <tr><th scope="row">記錄檔</th><td><code>C:\ProgramData\PasteFerry Server\server.log</code></td></tr>+ <tr><th scope="row">重新啟動</th><td>在系統管理員 PowerShell 裡執行 <code>Restart-Service PasteFerryServer</code></td></tr><tr><th scope="row">升級</th><td>下載新版本,解壓縮後再按兩下 <code>install.cmd</code>,原本的設定會保留</td></tr><tr><th scope="row">解除安裝</th><td>按兩下 <code>uninstall.cmd</code>,服務、防火牆規則和檔案會一併刪除</td></tr></tbody>@@ -207,9 +206,9 @@<li>打開「終端機」,逐行執行:<div class="code"><button class="copy" type="button" data-done="已複製">複製</button>-<pre><code>curl -LO https://github.com/baiyuze/pasteferry/releases/latest/download/copysync-server-macos.tar.gz-tar xzf copysync-server-macos.tar.gz-cd copysync-server-macos+<pre><code>curl -LO https://github.com/baiyuze/pasteferry/releases/latest/download/pasteferry-server-macos.tar.gz+tar xzf pasteferry-server-macos.tar.gz+cd pasteferry-server-macos./install.sh</code></pre></div></li><li>最後顯示的 <code>ws://…/signal</code> 就是用戶端要填的位址。</li>@@ -217,27 +216,27 @@ cd copysync-server-macos<ul class="points"><li><strong>不需要管理者權限。</strong>登入這台 Mac 後會自動在背景執行,意外結束時會被系統重新啟動。</li><li><strong>這台 Mac 不能進入睡眠:</strong>在「系統設定 → 能源」(筆電在「電池 → 選項」)裡開啟防止自動進入睡眠的選項。</li>- <li><strong>開著系統防火牆的話,</strong>腳本最後會給出開放 copysync-server 的指令。</li>+ <li><strong>開著系統防火牆的話,</strong>腳本最後會給出開放 pasteferry-server 的指令。</li><li>Intel 與 Apple 晶片通用,macOS 13 以上。</li></ul></div><div class="os-figures"><figure class="term" role="img" aria-label="在終端機裡執行 ./install.sh 的輸出:安裝、寫入 LaunchAgent、啟動,最後顯示用戶端要填的位址 ws://192.168.1.20:8787/signal">- <div class="t-bar mac"><span class="t-lights" aria-hidden="true"><i></i><i></i><i></i></span><span class="t-title">copysync-server-macos — zsh</span></div>+ <div class="t-bar mac"><span class="t-lights" aria-hidden="true"><i></i><i></i><i></i></span><span class="t-title">pasteferry-server-macos — zsh</span></div><pre class="t-body"><span class="t-prompt">%</span> ./install.sh<span class="t-step">▶ 停止旧版本</span>-<span class="t-step">▶ 安装到 /Users/me/Library/Application Support/CopySync Server</span>+<span class="t-step">▶ 安装到 /Users/me/Library/Application Support/PasteFerry Server</span><span class="t-step">▶ 写入 LaunchAgent(中转地址 192.168.1.20)</span><span class="t-step">▶ 启动</span>✓ 已启动-安装完成:copysync-server 1.7.0,登录这台 Mac 后自动运行-在每台电脑的 CopySync「设置 → 信令服务器地址」填:+安装完成:pasteferry-server 1.7.0,登录这台 Mac 后自动运行+在每台电脑的 PasteFerry「设置 → 信令服务器地址」填:<span class="t-url">ws://192.168.1.20:8787/signal</span>- 日志 /Users/me/Library/Logs/CopySync/server.log- 重启 launchctl kickstart -k gui/501/com.copysync.server+ 日志 /Users/me/Library/Logs/PasteFerry/server.log+ 重启 launchctl kickstart -k gui/501/com.pasteferry.server卸载 ./install.sh uninstall</pre></figure></div>@@ -246,8 +245,8 @@ cd copysync-server-macos<table class="manage"><caption>之後會用到的</caption><tbody>- <tr><th scope="row">記錄檔</th><td><code>~/Library/Logs/CopySync/server.log</code></td></tr>- <tr><th scope="row">重新啟動</th><td><code>launchctl kickstart -k gui/$(id -u)/com.copysync.server</code></td></tr>+ <tr><th scope="row">記錄檔</th><td><code>~/Library/Logs/PasteFerry/server.log</code></td></tr>+ <tr><th scope="row">重新啟動</th><td><code>launchctl kickstart -k gui/$(id -u)/com.pasteferry.server</code></td></tr><tr><th scope="row">升級</th><td>下載新版本,解壓縮後再執行 <code>./install.sh</code>,原本的設定會保留</td></tr><tr><th scope="row">解除安裝</th><td><code>./install.sh uninstall</code></td></tr></tbody>@@ -263,9 +262,9 @@ cd copysync-server-macos<li>在這台機器上(或用 ssh 登入後)逐行執行:<span class="aside">ARM 裝置,例如裝了 64 位元系統的樹莓派,把 <code>amd64</code> 換成 <code>arm64</code>。</span><div class="code"><button class="copy" type="button" data-done="已複製">複製</button>-<pre><code>curl -LO https://github.com/baiyuze/pasteferry/releases/latest/download/copysync-server-linux-amd64.tar.gz-tar xzf copysync-server-linux-amd64.tar.gz-cd copysync-server-linux-amd64+<pre><code>curl -LO https://github.com/baiyuze/pasteferry/releases/latest/download/pasteferry-server-linux-amd64.tar.gz+tar xzf pasteferry-server-linux-amd64.tar.gz+cd pasteferry-server-linux-amd64sudo ./install.sh</code></pre></div></li><li>最後顯示的 <code>ws://…/signal</code> 就是用戶端要填的位址。</li>@@ -282,18 +281,18 @@ sudo ./install.sh</code></pre><pre class="t-body"><span class="t-prompt">$</span> sudo ./install.sh<span class="t-step">▶ 安装二进制到 /usr/local/bin</span><span class="t-step">▶ 写入 systemd 单元</span>-<span class="t-step">▶ 生成配置 /etc/copysync/server.env(中转地址 192.168.1.20)</span>+<span class="t-step">▶ 生成配置 /etc/pasteferry/server.env(中转地址 192.168.1.20)</span><span class="t-step">▶ 启动</span>✓ 已启动-安装完成:copysync-server 1.7.0-在每台电脑的 CopySync「设置 → 信令服务器地址」填:+安装完成:pasteferry-server 1.7.0+在每台电脑的 PasteFerry「设置 → 信令服务器地址」填:<span class="t-url">ws://192.168.1.20:8787/signal</span>- 配置 /etc/copysync/server.env- 日志 journalctl -u copysync-server -f- 重启 systemctl restart copysync-server+ 配置 /etc/pasteferry/server.env+ 日志 journalctl -u pasteferry-server -f+ 重启 systemctl restart pasteferry-server卸载 sudo ./install.sh uninstall防火墙需放行:TCP 8787(信令)、UDP 3478(STUN 与 TURN)、UDP 32768-60999(中转端口,系统随机分配)</pre>@@ -304,10 +303,10 @@ sudo ./install.sh</code></pre><table class="manage"><caption>之後會用到的</caption><tbody>- <tr><th scope="row">狀態</th><td><code>systemctl status copysync-server</code></td></tr>- <tr><th scope="row">記錄檔</th><td><code>journalctl -u copysync-server -f</code></td></tr>- <tr><th scope="row">重新啟動</th><td><code>sudo systemctl restart copysync-server</code></td></tr>- <tr><th scope="row">設定</th><td><code>/etc/copysync/server.env</code>,改完要重新啟動服務</td></tr>+ <tr><th scope="row">狀態</th><td><code>systemctl status pasteferry-server</code></td></tr>+ <tr><th scope="row">記錄檔</th><td><code>journalctl -u pasteferry-server -f</code></td></tr>+ <tr><th scope="row">重新啟動</th><td><code>sudo systemctl restart pasteferry-server</code></td></tr>+ <tr><th scope="row">設定</th><td><code>/etc/pasteferry/server.env</code>,改完要重新啟動服務</td></tr><tr><th scope="row">升級</th><td>下載新版本,解壓縮後再執行 <code>sudo ./install.sh</code>,原本的設定會保留</td></tr><tr><th scope="row">解除安裝</th><td><code>sudo ./install.sh uninstall</code></td></tr></tbody>@@ -359,7 +358,7 @@ sudo ./install.sh</code></pre></details><details><summary>伺服器的位址變了怎麼辦?</summary>- <div class="answer"><p>帶上新位址再執行一次安裝腳本:Windows 上是 <code>install.cmd 新位址</code>,Mac 上是 <code>./install.sh 新位址</code>;Linux 上編輯 <code>/etc/copysync/server.env</code> 裡的 <code>-turn-ip</code>,再重新啟動服務。然後在每台電腦上改掉伺服器位址。</p><p>在路由器裡幫它固定一個位址,就不會再遇到這種事。</p></div>+ <div class="answer"><p>帶上新位址再執行一次安裝腳本:Windows 上是 <code>install.cmd 新位址</code>,Mac 上是 <code>./install.sh 新位址</code>;Linux 上編輯 <code>/etc/pasteferry/server.env</code> 裡的 <code>-turn-ip</code>,再重新啟動服務。然後在每台電腦上改掉伺服器位址。</p><p>在路由器裡幫它固定一個位址,就不會再遇到這種事。</p></div></details><details><summary>離開區域網路以後還能同步嗎?</summary>diff --git a/docs/zh-tw/start/index.html b/docs/zh-tw/start/index.htmlindex ff9db9f..a75306b 100644--- a/docs/zh-tw/start/index.html+++ b/docs/zh-tw/start/index.html@@ -51,7 +51,6 @@</nav></div></header>- <p class="renamed"><span class="wrap">隔空貼原名 CopySync。App 和安裝檔裡暫時還叫 CopySync,下個版本會改過來。</span></p><main id="main"><section class="hero guide-hero">@@ -86,7 +85,7 @@<div class="qs-app"><h3><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linejoin="round" aria-hidden="true"><rect x="3" y="4" width="18" height="12" rx="1.5"/><path d="M9 20h6M12 16v4"/></svg>Windows</h3><ol class="steps">- <li>執行 CopySync-Setup.exe,不需要系統管理員權限。<span class="aside">出現「Windows 已保護您的電腦」時,點「其他資訊」,再點「仍要執行」。</span></li>+ <li>執行 PasteFerry-Setup.exe,不需要系統管理員權限。<span class="aside">出現「Windows 已保護您的電腦」時,點「其他資訊」,再點「仍要執行」。</span></li><li>打開隔空貼,點「啟用背景同步」。防火牆詢問時選擇允許。關掉視窗後,它會在右下角的通知區域繼續執行。</li></ol><a class="button" href="../../zh-tw/download/#windows"><svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M10 3v10m0 0-4-4m4 4 4-4M4 16h12"/></svg>下載 Windows 版</a>diff --git a/docs/zh-tw/tailscale/index.html b/docs/zh-tw/tailscale/index.htmlindex 9b0b3e3..2eba5b1 100644--- a/docs/zh-tw/tailscale/index.html+++ b/docs/zh-tw/tailscale/index.html@@ -51,7 +51,6 @@</nav></div></header>- <p class="renamed"><span class="wrap">隔空貼原名 CopySync。App 和安裝檔裡暫時還叫 CopySync,下個版本會改過來。</span></p><main id="main"><section class="hero guide-hero">@@ -196,7 +195,7 @@</details><details><summary>配對時找不到對方?</summary>- <div class="answer"><p>先確認兩台的 Tailscale 都已連線:在終端機裡執行 <code>tailscale ping 對方的位址</code>,能 ping 通再試。</p><p>能 ping 通卻還是找不到,多半是對方的防火牆擋住了:對方是 Windows 的話,在它的隔空貼「設定 → 區域網路」裡點「允許」;是 Mac 的話,確認「系統設定 → 隱私權與安全性 → 本機網路」裡已開啟 CopySync Daemon。</p></div>+ <div class="answer"><p>先確認兩台的 Tailscale 都已連線:在終端機裡執行 <code>tailscale ping 對方的位址</code>,能 ping 通再試。</p><p>能 ping 通卻還是找不到,多半是對方的防火牆擋住了:對方是 Windows 的話,在它的隔空貼「設定 → 區域網路」裡點「允許」;是 Mac 的話,確認「系統設定 → 隱私權與安全性 → 本機網路」裡已開啟 PasteFerry Daemon。</p></div></details><details><summary>一定要每台電腦都裝 Tailscale 嗎?</summary>diff --git a/guide/building.md b/guide/building.mdindex dc2678d..068d659 100644--- a/guide/building.md+++ b/guide/building.md@@ -15,7 +15,7 @@ The Windows app needs Go, Flutter, Visual Studio ("Desktop development with C++"powershell -ExecutionPolicy Bypass -File scripts\build-windows.ps1 # installer and portable zip into dist\windows\```-The background service is pure Go and also cross-compiles from a Mac: `GOOS=windows go build ./cmd/copysyncd`. CI builds the Windows installer on every commit.+The background service is pure Go and also cross-compiles from a Mac: `GOOS=windows go build ./cmd/pasteferryd`. CI builds the Windows installer on every commit.The Linux app needs Go, Flutter and its Linux toolchain (`sudo apt install clang cmake ninja-build pkg-config libgtk-3-dev`). Flutter can't cross-compile Linux desktop apps, so build on the architecture you want (CI builds both x64 and ARM64 on Ubuntu 22.04):@@ -23,7 +23,7 @@ The Linux app needs Go, Flutter and its Linux toolchain (`sudo apt install clang./scripts/package-linux.sh # .deb and tar.gz for this machine's architecture into dist/linux/```-The Linux clipboard is pure Go (X11 protocol) and also cross-compiles from a Mac: `GOOS=linux go build ./cmd/copysyncd`. Its tests need an X display: `xvfb-run -a go test ./internal/clipboard/` with `xclip` installed.+The Linux clipboard is pure Go (X11 protocol) and also cross-compiles from a Mac: `GOOS=linux go build ./cmd/pasteferryd`. Its tests need an X display: `xvfb-run -a go test ./internal/clipboard/` with `xclip` installed.The server is pure Go too. `package.sh` cross-compiles it for Linux (amd64, arm64), macOS and Windows, and bundles each with its install script from `server/deploy/`.@@ -34,8 +34,8 @@ cd client-core && go test ./... # service tests./tools/natlab/docker.sh # NAT lab: direct vs relay across 11 network topologiescd ui && flutter test # app tests./scripts/install-macos.sh # install the service from dist/ as a login item-./dist/copysync-cli status # service status-./dist/copysync-cli watch # live event stream+./dist/pasteferry-cli status # service status+./dist/pasteferry-cli watch # live event stream```After changing a `.proto` file, run `./scripts/gen-proto.sh` (uses buf; install with `go install`, no protoc needed). After changing the UI, run `./tools/screenshots/render.sh` to regenerate the screenshots from demo data.diff --git a/guide/building.zh-CN.md b/guide/building.zh-CN.mdindex 384a480..f082aae 100644--- a/guide/building.zh-CN.md+++ b/guide/building.zh-CN.md@@ -15,7 +15,7 @@ Windows 版需要 Go、Flutter、Visual Studio(「使用 C++ 的桌面开发powershell -ExecutionPolicy Bypass -File scripts\build-windows.ps1 # 安装程序与便携版到 dist\windows\```-后台服务是纯 Go,也可以在 Mac 上交叉编译:`GOOS=windows go build ./cmd/copysyncd`。CI 在每次提交时构建 Windows 安装包。+后台服务是纯 Go,也可以在 Mac 上交叉编译:`GOOS=windows go build ./cmd/pasteferryd`。CI 在每次提交时构建 Windows 安装包。Linux 版需要 Go、Flutter 及其 Linux 工具链(`sudo apt install clang cmake ninja-build pkg-config libgtk-3-dev`)。Flutter 不能交叉编译 Linux 桌面程序,要在目标架构的机器上构建(CI 在 Ubuntu 22.04 上分别构建 x64 与 ARM64):@@ -23,7 +23,7 @@ Linux 版需要 Go、Flutter 及其 Linux 工具链(`sudo apt install clang cm./scripts/package-linux.sh # 按本机架构打出 .deb 与 tar.gz 到 dist/linux/```-Linux 的剪贴板是纯 Go 走 X11 协议,同样可以在 Mac 上交叉编译:`GOOS=linux go build ./cmd/copysyncd`。它的测试需要 X 显示:装好 `xclip` 后运行 `xvfb-run -a go test ./internal/clipboard/`。+Linux 的剪贴板是纯 Go 走 X11 协议,同样可以在 Mac 上交叉编译:`GOOS=linux go build ./cmd/pasteferryd`。它的测试需要 X 显示:装好 `xclip` 后运行 `xvfb-run -a go test ./internal/clipboard/`。服务器也是纯 Go。`package.sh` 把它交叉编译成 Linux(amd64、arm64)、macOS 与 Windows 版本,各自带上 `server/deploy/` 里对应的安装脚本。@@ -34,8 +34,8 @@ cd client-core && go test ./... # 后台服务的测试./tools/natlab/docker.sh # NAT 打洞实验室:11 种网络拓扑下的直连与中转cd ui && flutter test # 界面的测试./scripts/install-macos.sh # 把 dist/ 里的后台服务装成登录项-./dist/copysync-cli status # 查看后台服务状态-./dist/copysync-cli watch # 实时事件流+./dist/pasteferry-cli status # 查看后台服务状态+./dist/pasteferry-cli watch # 实时事件流```改了 `.proto` 之后运行 `./scripts/gen-proto.sh` 重新生成代码(用 buf,`go install` 即可安装,无需 protoc)。改了界面之后运行 `./tools/screenshots/render.sh` 重新生成截图,截图用演示数据渲染,不会带出本机的真实内容。diff --git a/guide/how-it-works.md b/guide/how-it-works.mdindex ee35e58..b7300da 100644--- a/guide/how-it-works.md+++ b/guide/how-it-works.md@@ -1,4 +1,4 @@-# How CopySync works+# How PasteFerry works[简体中文](how-it-works.zh-CN.md) · [Back to README](../README.md)@@ -9,10 +9,10 @@ Two computers connect directly and encrypt everything between them. On the same```mermaidflowchart LRsubgraph A["Computer A (Mac or Windows)"]- UA["CopySync app"] <-- "gRPC" --> DA["Background service"]+ UA["PasteFerry app"] <-- "gRPC" --> DA["Background service"]endsubgraph B["Computer B (Mac or Windows)"]- DB["Background service"] <-- "gRPC" --> UB["CopySync app"]+ DB["Background service"] <-- "gRPC" --> UB["PasteFerry app"]endS[("Your server\nsignaling + TURN")]DA -- "Signaling (WebSocket)" --> S@@ -27,9 +27,9 @@ The server is optional: on the same network, signaling goes directly over the LA| Component | Role | Built with ||---|---|---|-| Background service `copysyncd` | Watches the clipboard, connects to peers, sends, receives and stores | Go. The clipboard uses cgo and AppKit on Mac, and calls Win32 directly on Windows (pure Go, no C compiler) |-| App `CopySync` | History, pairing, settings | Flutter, one codebase for Mac and Windows; talks to the service over local gRPC |-| Server `copysync-server` (optional) | Across networks: device discovery, pairing codes, signaling, TURN relay | Go, a single static binary using about 15 MB of RAM |+| Background service `pasteferryd` | Watches the clipboard, connects to peers, sends, receives and stores | Go. The clipboard uses cgo and AppKit on Mac, and calls Win32 directly on Windows (pure Go, no C compiler) |+| App `PasteFerry` | History, pairing, settings | Flutter, one codebase for Mac and Windows; talks to the service over local gRPC |+| Server `pasteferry-server` (optional) | Across networks: device discovery, pairing codes, signaling, TURN relay | Go, a single static binary using about 15 MB of RAM || Protocol `proto/` | Messages shared by all three | Protocol Buffers |## What happens when you copy@@ -53,7 +53,7 @@ Data flows over WebRTC data channels, encrypted with DTLS.Since 1.4.0 signaling has two channels, the server and the LAN. Both run side by side: signals go out on every available channel and the receiver drops duplicates by nonce, and a device is online if either channel says so.-- **Discovery**: each computer announces `_copysync._udp` over mDNS. The announcement carries no device name or ID, only a token that changes daily (a hash of the device ID and the date); paired devices compute it and recognize each other.+- **Discovery**: each computer announces `_pasteferry._udp` over mDNS. The announcement carries no device name or ID, only a token that changes daily (a hash of the device ID and the date); paired devices compute it and recognize each other.- **Signaling**: devices exchange the same signed messages the server would forward, directly over UDP 8788. For each paired device that isn't connected yet, a hello goes to its likely addresses every 10 seconds and the receiver answers. Both sides send, so stateful firewalls treat the other side's packets as replies.- **Different subnets**: when mDNS can't reach the other computer, you enter the address shown under its pairing code. Both sides remember each other's address, so if one changes, the other still finds it. A Tailscale 100.x address works the same way.- **Pairing**: the code is open on the LAN and, when connected, on the server too; using it on one side closes it on the other, and 10 wrong attempts close it. Requests and replies are signed with the sender's key; the human fingerprint check is still what stops a man in the middle.@@ -71,18 +71,18 @@ Office networks with two ISPs, or carriers with a pool of NAT addresses, have se| Uplink C | Cloudflare, FreeSWITCH | Rewritten, same for every destination || Uplink D | A service on Alibaba Cloud | Rewritten |-Asking one server reveals only one of these addresses. Packets to the peer may leave through another uplink, the peer sees an address it was never told about, and its router drops them. That is why CopySync 1.0 could only relay on such networks.+Asking one server reveals only one of these addresses. Packets to the peer may leave through another uplink, the peer sees an address it was never told about, and its router drops them. That is why PasteFerry 1.0 could only relay on such networks.What 1.1 does:- **One shared port.** pion used to open a new port for each STUN server, so each answer only applied to its own port. All connections now share one port, and every probe result applies to it.-- **Probe every uplink.** CopySync queries IP-diverse servers from that port in parallel (your own server plus public STUN servers such as Bilibili and Cloudflare), deduplicates by IP and drops addresses poisoned by DNS.+- **Probe every uplink.** PasteFerry queries IP-diverse servers from that port in parallel (your own server plus public STUN servers such as Bilibili and Cloudflare), deduplicates by IP and drops addresses poisoned by DNS.- **Tell the peer all of them.** Each uplink's address goes to the peer as a candidate; the peer checks each one, and the one matching the real uplink gets through. Uplinks that rewrite ports report their real mapping.- **Remember uplinks.** If a round misses an uplink that preserves ports, its address is filled in as uplink IP plus local port.A Mac behind that 4-uplink office network now connects directly to a home connection, about 3 seconds after reaching the server. The full design, measurements and validation are in [NAT traversal on multi-uplink networks](../design/nat-traversal.md) (Chinese).-The **NAT lab** (`tools/natlab`) builds real topologies with Linux network namespaces and iptables and runs CopySync's actual connection code through sixteen scenarios on every commit:+The **NAT lab** (`tools/natlab`) builds real topologies with Linux network namespaces and iptables and runs PasteFerry's actual connection code through sixteen scenarios on every commit:| Scenario | Result ||---|---|@@ -109,9 +109,9 @@ The **NAT lab** (`tools/natlab`) builds real topologies with Linux network names- **Every signaling message after that is signed**, so the server cannot forge a device. The DTLS certificate fingerprint of the direct channel is also sent signed and checked against the actual certificate after the handshake; a mismatch drops the connection. Messages addressed to another device are rejected, because on a LAN anyone could forward a captured message to a third device.- **Same on the local network.** The broadcast carries only an anonymous token that changes daily, so others on the network can't tell whose computer it is; messages from unpaired devices are dropped, and pairing still means comparing fingerprints.- **The relay can't read anything either.** TURN only forwards encrypted UDP packets. Relay credentials are issued per device and expire after 12 hours.-- **Public STUN servers see only your public IP.** To find every uplink on multi-uplink networks, CopySync probes a few public STUN servers by default. They see your public IP, as with any WebRTC app, never content. Turn off **Probe with public servers** in Settings to use only your own server.+- **Public STUN servers see only your public IP.** To find every uplink on multi-uplink networks, PasteFerry probes a few public STUN servers by default. They see your public IP, as with any WebRTC app, never content. Turn off **Probe with public servers** in Settings to use only your own server.- **Device key.** On Mac it's stored readable only by you; on Windows it's additionally encrypted with DPAPI, so another user or another computer can't decrypt a copied file.-- **No App Sandbox**, because CopySync needs to read files at whatever path you copy them from.+- **No App Sandbox**, because PasteFerry needs to read files at whatever path you copy them from.## Fallbacks@@ -119,10 +119,10 @@ The **NAT lab** (`tools/natlab`) builds real topologies with Linux network names|---|---|| The other computer can't be found on the network (different subnets, guest network, client isolation) | Enter the address shown under its pairing code; it's remembered afterwards, and if both change you use "Enter its address…" in the device menu || Windows Firewall blocks inbound (Cancel was clicked) | Packets this computer sends first still get through; when the Windows PC is the one being reached, Settings → Local network → Allow removes the block rule and adds an allow rule with one UAC prompt |-| macOS 15 hasn't allowed Local Network access | LAN packets are blocked by the system (`EHOSTUNREACH`); the app asks you to turn on CopySync Daemon in System Settings → Privacy & Security → Local Network |+| macOS 15 hasn't allowed Local Network access | LAN packets are blocked by the system (`EHOSTUNREACH`); the app asks you to turn on PasteFerry Daemon in System Settings → Privacy & Security → Local Network || No direct path (symmetric NAT, corporate firewall) | Switches to the TURN relay on your server, still encrypted; the app shows "relay" || Public STUN servers unreliable (common in mainland China) | The server runs its own STUN and clients prefer it |-| Multi-uplink networks that pick an uplink per destination (common in offices) | All connections share one local port; CopySync probes several servers from it to learn its address on every uplink and sends them all to the peer, filling gaps from history. See `copysync-cli nat` |+| Multi-uplink networks that pick an uplink per destination (common in offices) | All connections share one local port; PasteFerry probes several servers from it to learn its address on every uplink and sends them all to the peer, filling gaps from history. See `pasteferry-cli nat` || Landed on the relay although a direct path works (the peer just started, its addresses arrived a moment late) | While idle, the side that started the connection runs an ICE restart to punch again and switches to direct if it works; never during a transfer. The connection stays up and only pauses for a few seconds || The other Mac sleeps, loses its network or restarts, and the connection dies silently | The dead connection is closed and reconnected right away; if the other side rebuilt its connection, this side follows || The other Mac can't be reached when you copy | The latest 20 items are kept and sent once the connection is back. They only go into the history and never overwrite what's on the other Mac's clipboard now |@@ -142,7 +142,7 @@ Each of these was found by testing and has a regression test. The full investiga- **macOS clipboard calls must run on the main thread.** With the privacy features on, the clipboard API talks to a system UI service through the run loop; calling it from a plain thread crashes. The service locks the main thread at startup and dedicates it to the clipboard.- **"Transfer only when the other side pastes" isn't possible on macOS.** The system resolves promised clipboard data about 0.1 s after it's written and caches it, and there is no notification that the clipboard was read. That's why small items are pushed ahead of time and large files are pulled on demand.- **Three pitfalls in the pion WebRTC library:** `DetachDataChannels()` is a global switch that breaks regular send/receive on every channel; `OnMessage` doesn't buffer, so messages arriving before the handler is set are dropped (202 bytes sent, 0 received); `OnBufferedAmountLow` is edge-triggered, so a waiter that arrives late never wakes up (a 20 MB transfer stalled at 786 KB).-- **pion opens a separate port per STUN server**, so the answers don't apply to each other. Adding STUN servers can't fix multi-uplink networks; all connections now share one port and CopySync probes it itself.+- **pion opens a separate port per STUN server**, so the answers don't apply to each other. Adding STUN servers can't fix multi-uplink networks; all connections now share one port and PasteFerry probes it itself.- **One side can't tell on its own whether a connection is relayed.** When one side sends through TURN, the other may just see an ordinary address; once one Mac showed "direct" and the other "relay". Both sides now tell each other after connecting.- **pion never switches paths once it has picked one.** The relay handshake is fast, and if it wins that race the whole connection stays relayed. We saw exactly that after the peer restarted: its addresses arrived after the relay wait had expired. The relay wait is now 5 seconds, probe hostnames resolve in parallel (a probe round went from about 1.6 s to under 0.2 s), and relayed connections retry the direct path with an ICE restart.- **Who sends first matters.** Some routers (the office one we measured) keep a connection entry for a packet that arrives before you've sent anything to its source, locking the port; your own packets then leave from a different port and punching fails. That's why restarting the office Mac always connected directly while restarting the home Mac fell back to the relay: a freshly started Mac probes its uplinks first, so its addresses went out late and it ended up sending first. A rule now decides who sends first, and retries alternate the order.diff --git a/guide/how-it-works.zh-CN.md b/guide/how-it-works.zh-CN.mdindex 8585529..60c129a 100644--- a/guide/how-it-works.zh-CN.md+++ b/guide/how-it-works.zh-CN.md@@ -1,4 +1,4 @@-# CopySync 的工作原理+# 隔空贴的工作原理[English](how-it-works.md) · [回到 README](../README.zh-CN.md)@@ -9,10 +9,10 @@```mermaidflowchart LRsubgraph A["电脑 A(Mac 或 Windows)"]- UA["CopySync 界面"] <-- "gRPC" --> DA["后台服务"]+ UA["隔空贴界面"] <-- "gRPC" --> DA["后台服务"]endsubgraph B["电脑 B(Mac 或 Windows)"]- DB["后台服务"] <-- "gRPC" --> UB["CopySync 界面"]+ DB["后台服务"] <-- "gRPC" --> UB["隔空贴界面"]endS[("你的服务器\n信令 + TURN")]DA -- "信令(WebSocket)" --> S@@ -27,9 +27,9 @@ flowchart LR| 组件 | 做什么 | 技术 ||---|---|---|-| 后台服务 `copysyncd` | 监听剪贴板、与对端建立连接、收发与落盘 | Go。剪贴板部分在 Mac 上用 cgo 调用 AppKit,在 Windows 上直接调用 Win32(纯 Go,不需要 C 编译器) |-| 界面 `CopySync` | 复制记录、设备配对、设置 | Flutter,经本机 gRPC 与后台服务通信;Mac 与 Windows 共用一套代码 |-| 服务器 `copysync-server`(可选) | 跨网络时的设备发现、转达配对码、转发信令、TURN 中转 | Go,单个静态二进制,约 15 MB 内存 |+| 后台服务 `pasteferryd` | 监听剪贴板、与对端建立连接、收发与落盘 | Go。剪贴板部分在 Mac 上用 cgo 调用 AppKit,在 Windows 上直接调用 Win32(纯 Go,不需要 C 编译器) |+| 界面 `隔空贴` | 复制记录、设备配对、设置 | Flutter,经本机 gRPC 与后台服务通信;Mac 与 Windows 共用一套代码 |+| 服务器 `pasteferry-server`(可选) | 跨网络时的设备发现、转达配对码、转发信令、TURN 中转 | Go,单个静态二进制,约 15 MB 内存 || 协议 `proto/` | 三方共用的消息定义 | Protocol Buffers |## 一次复制的经过@@ -53,7 +53,7 @@ flowchart LR1.4.0 起,信令有两条通道:信令服务器和局域网。两条并存,信令从所有可用的通道发出,接收方按 nonce 去重;任一通道报告对方在线就算在线。-- **发现**:每台电脑用 mDNS 广播 `_copysync._udp`。广播里不放设备名和 ID,只放一个每天都变的令牌(设备 ID 加日期的哈希),已配对的设备算一遍就能认出对方。+- **发现**:每台电脑用 mDNS 广播 `_pasteferry._udp`。广播里不放设备名和 ID,只放一个每天都变的令牌(设备 ID 加日期的哈希),已配对的设备算一遍就能认出对方。- **信令**:设备之间直接用 UDP 8788 收发与服务器转发时完全相同的签名消息。对每台还没连通的设备,每 10 秒往它可能在的地址发一次 hello,收到的一方回一条;两边都在发,有状态的防火墙会把对方的包当回包放行。- **跨网段**:mDNS 过不去时,配对时输入对方配对码下面显示的地址。双方都把对方的地址记进地址簿,之后任一方换了地址,只要另一方没换就能重新找到。Tailscale 的 100.x 地址也这样用。- **配对**:配对码在局域网里开放,连着服务器时同一个码也在服务器上开放,一边用掉另一边就失效;错 10 次作废。配对请求与回复各自用发送方的公钥签名,防中间人仍靠人工核对指纹。@@ -71,7 +71,7 @@ flowchart LR| 出口 C | Cloudflare、FreeSWITCH | 改写,但对不同目标相同 || 出口 D | 阿里云上的服务 | 改写 |-只问一台服务器,就只知道其中一个出口的地址;发往对端的包按目标 IP 很可能从另一个出口出去,对端收到的源地址对不上,被它的路由器丢弃。CopySync 1.0 就是这样只能走中转。+只问一台服务器,就只知道其中一个出口的地址;发往对端的包按目标 IP 很可能从另一个出口出去,对端收到的源地址对不上,被它的路由器丢弃。隔空贴 1.0 就是这样只能走中转。1.1 的做法:@@ -82,7 +82,7 @@ flowchart LR实测公司 4 个出口与家用宽带之间直连,连上服务器后约 3 秒建立。设计细节、测量过程与验证见 [多出口网络的 NAT 打洞](../design/nat-traversal.md)。-**NAT 打洞实验室**(`tools/natlab`)用 Linux 网络命名空间与 iptables 搭出真实拓扑,用 CopySync 真实的连接代码验证 16 种场景,每次提交都在 CI 里运行:+**NAT 打洞实验室**(`tools/natlab`)用 Linux 网络命名空间与 iptables 搭出真实拓扑,用隔空贴真实的连接代码验证 16 种场景,每次提交都在 CI 里运行:| 场景 | 结果 ||---|---|@@ -119,10 +119,10 @@ flowchart LR|---|---|| 同一网络里找不到对方(不同网段、访客网络、AP 隔离) | 配对时输入对方配对码下面显示的地址;之后地址会被记住,两边都换了地址时在设备菜单里「输入它的地址」 || Windows 防火墙挡住入站(弹窗时点了取消) | 本机主动发包照样能通;被连的一方是 Windows 时,在「设置 → 局域网」里点「放行」,一次 UAC 删掉阻止规则、加一条允许规则 |-| macOS 15 不允许后台服务访问本地网络 | 发往局域网的包被系统拦下(`EHOSTUNREACH`),界面提示去「系统设置 → 隐私与安全性 → 本地网络」打开 CopySync Daemon |+| macOS 15 不允许后台服务访问本地网络 | 发往局域网的包被系统拦下(`EHOSTUNREACH`),界面提示去「系统设置 → 隐私与安全性 → 本地网络」打开 PasteFerry Daemon || 两端打不通直连(对称 NAT、公司防火墙) | 自动改走服务器的 TURN 中转,内容依然加密;界面上显示「中转」 || 公共 STUN 在国内时通时断 | 服务器自带 STUN,客户端优先用它 |-| 公司双线等多出口网络(按目标地址选出口) | 所有连接共用一个本地端口,在这个端口上向多台服务器探测每个出口的地址,全部发给对端由它逐个尝试;探测漏掉的出口按历史推算。`copysync-cli nat` 可以看到探测结果 |+| 公司双线等多出口网络(按目标地址选出口) | 所有连接共用一个本地端口,在这个端口上向多台服务器探测每个出口的地址,全部发给对端由它逐个尝试;探测漏掉的出口按历史推算。`pasteferry-cli nat` 可以看到探测结果 || 先落到了中转,其实打得通(对端刚启动、出口地址晚到一步) | 发起方在空闲时用 ICE 重启再打一次洞,打通就换成直连;有传输在进行时不重启。重启期间连接不断,只停顿几秒 || 对方睡眠、断网、重启,连接悄悄断了 | 发现连接失效立即关闭、重连;对方重建了连接,本端也随之换新 || 复制时对方连不上 | 记下最近 20 条,连接恢复后补发。补发的只进复制记录,不写进对方的剪贴板,免得覆盖对方此刻正在用的内容 |diff --git a/guide/troubleshooting.md b/guide/troubleshooting.mdindex 9da8afe..aa6205a 100644--- a/guide/troubleshooting.md+++ b/guide/troubleshooting.md@@ -3,7 +3,7 @@[简体中文](troubleshooting.zh-CN.md) · [Back to README](../README.md)**The other computer can't be found on the same network**-Make sure both have background sync on and are on the same network. Wired and Wi‑Fi in many offices, guest networks and Wi‑Fi with client isolation don't let devices see each other: on the computer entering the code, click **On a different subnet?** and enter the address shown under the other computer's code. Still nothing? Check the other computer's firewall: on Windows, click **Allow** under Settings → Local network (one administrator prompt); on a Mac, turn on CopySync Daemon in System Settings → Privacy & Security → Local Network. The Local network part of `copysync-cli nat` shows this computer's port, how many CopySync devices it found, whether each paired device is reachable and which addresses it remembers. See the [same network guide](https://baiyuze.github.io/pasteferry/en/lan/).+Make sure both have background sync on and are on the same network. Wired and Wi‑Fi in many offices, guest networks and Wi‑Fi with client isolation don't let devices see each other: on the computer entering the code, click **On a different subnet?** and enter the address shown under the other computer's code. Still nothing? Check the other computer's firewall: on Windows, click **Allow** under Settings → Local network (one administrator prompt); on a Mac, turn on PasteFerry Daemon in System Settings → Privacy & Security → Local Network. The Local network part of `pasteferry-cli nat` shows this computer's port, how many PasteFerry devices it found, whether each paired device is reachable and which addresses it remembers. See the [same network guide](https://baiyuze.github.io/pasteferry/en/lan/).**Settings → Connection stays at Not connected**This only applies when a server address is set; on the same network you can leave it empty. Check that the address starts with `ws://`, uses port 8787 and ends in `/signal`, then open `http://<server address>:8787/healthz` in a browser on that computer. If it doesn't load, the network path is broken: the server isn't running, its computer is asleep, a firewall blocks it, or its address changed. The Windows and Linux install scripts print the firewall commands you need; see [Server deployment](../server/deploy/README.md) and the [LAN guide](https://baiyuze.github.io/pasteferry/en/server/).@@ -15,7 +15,7 @@ Providers in mainland China intercept plain HTTP requests for domains without anDirect means the two computers connect directly on the Tailscale network. When Tailscale can't connect them peer to peer, it relays through its DERP servers, which can be far away. Run `tailscale ping <other device>`: "via DERP" means Tailscale is relaying, "via <IP>:<port>" means peer to peer. See the [Tailscale guide](https://baiyuze.github.io/pasteferry/en/tailscale/).**`.uuremote_…` file records keep appearing while UU Remote is running**-Upgrade both clients to 1.3.2 or later. UU Remote puts temporary placeholder files on the system clipboard; older CopySync clients recorded and forwarded them as ordinary files. The new version filters the confirmed `.uuremote_aeawv` followed by digits before scanning, recording or sending, keeps ordinary files in mixed selections, ignores placeholder-only incoming offers, and removes placeholder-only history on startup without deleting UU's source files. Ordinary empty, hidden and large files are unaffected. The 50 MB threshold controls automatic transfer; there is no need to disable UU's UDP P2P. Other clipboard sync tools can still duplicate ordinary content; use one clipboard sync provider if needed. See the [investigation and validation notes](../design/uu-remote-clipboard.md).+Upgrade both clients to 1.3.2 or later. UU Remote puts temporary placeholder files on the system clipboard; older PasteFerry clients recorded and forwarded them as ordinary files. The new version filters the confirmed `.uuremote_aeawv` followed by digits before scanning, recording or sending, keeps ordinary files in mixed selections, ignores placeholder-only incoming offers, and removes placeholder-only history on startup without deleting UU's source files. Ordinary empty, hidden and large files are unaffected. The 50 MB threshold controls automatic transfer; there is no need to disable UU's UDP P2P. Other clipboard sync tools can still duplicate ordinary content; use one clipboard sync provider if needed. See the [investigation and validation notes](../design/uu-remote-clipboard.md).**Nothing comes off the clipboard, and `pbpaste` is empty too**The system pasteboard service may be stuck: an app declared clipboard content and then crashed, leaving types without data. Run `killall pboard` and copy again.@@ -24,10 +24,10 @@ The system pasteboard service may be stuck: an app declared clipboard content anOn the same network, see "The other computer can't be found" above; if both computers changed addresses, open the device's … menu and choose **Enter its address…**. Across networks, check **Settings → Connection** on both computers; if it isn't connected, verify the server address and that port 8787 is reachable.**Always "relay", never "direct"**-Showing "relay" right after connecting and "direct" a little later is normal: the relay makes things work first, and the direct path takes over when the link is idle. If it stays "relay", NAT traversal didn't succeed, which is common with NATs that randomize ports or strict firewalls. Everything still works; speed is limited by the server's bandwidth. Run `copysync-cli nat` to see how many uplinks were found; zero means UDP is blocked.+Showing "relay" right after connecting and "direct" a little later is normal: the relay makes things work first, and the direct path takes over when the link is idle. If it stays "relay", NAT traversal didn't succeed, which is common with NATs that randomize ports or strict firewalls. Everything still works; speed is limited by the server's bandwidth. Run `pasteferry-cli nat` to see how many uplinks were found; zero means UDP is blocked.**Logs**-The background service logs to `~/Library/Logs/CopySync/daemon.log` on Mac and `%LOCALAPPDATA%\CopySync\logs\daemon.log` on Windows. Server logs: `journalctl -u copysync-server -f` on Linux, `~/Library/Logs/CopySync/server.log` on Mac, `C:\ProgramData\CopySync Server\server.log` on Windows.+The background service logs to `~/Library/Logs/PasteFerry/daemon.log` on Mac and `%LOCALAPPDATA%\PasteFerry\logs\daemon.log` on Windows. Server logs: `journalctl -u pasteferry-server -f` on Linux, `~/Library/Logs/PasteFerry/server.log` on Mac, `C:\ProgramData\PasteFerry Server\server.log` on Windows.## Limitations@@ -36,5 +36,5 @@ The background service logs to `~/Library/Logs/CopySync/daemon.log` on Mac and `- **The Mac app doesn't skip password-manager content yet**; the Windows app does.- **Items aren't resent after a long absence.** The server stores nothing. While the other Mac is unreachable, this Mac keeps the latest 20 items (from the last 24 hours) in memory, and they're lost if its background service restarts.- **Relayed transfers are limited by your server's bandwidth.** Direct connections aren't.-- **On different subnets, if both computers change addresses**, you enter the address once more in the device menu; CopySync doesn't scan subnets. Two Windows PCs that both block inbound traffic, where only one knows the other's address, can't connect until the one being reached clicks **Allow**.+- **On different subnets, if both computers change addresses**, you enter the address once more in the device menu; PasteFerry doesn't scan subnets. Two Windows PCs that both block inbound traffic, where only one knows the other's address, can't connect until the one being reached clicks **Allow**.- **macOS 15 needs the Local Network permission**, or the background service can't reach devices on your network (it still connects when the other side reaches out first). Right after an update, the first ten seconds or so of LAN traffic may also be blocked; it clears on its own.diff --git a/guide/troubleshooting.zh-CN.md b/guide/troubleshooting.zh-CN.mdindex d79f7fe..4b6c0f9 100644--- a/guide/troubleshooting.zh-CN.md+++ b/guide/troubleshooting.zh-CN.md@@ -3,7 +3,7 @@[English](troubleshooting.md) · [回到 README](../README.zh-CN.md)**同一网络里找不到另一台电脑**-先确认两台都启用了后台同步、连着同一个网络。公司里有线和无线、访客网络、开了「AP 隔离」的 Wi‑Fi 常常不互通:在输入配对码的那台点「不在同一网段?」,填上对方配对码下面显示的地址。还是找不到就看对方的防火墙:Windows 上在「设置 → 局域网」里点「放行」(会请求一次管理员权限);Mac 上到「系统设置 → 隐私与安全性 → 本地网络」打开 CopySync Daemon。`copysync-cli nat` 的「局域网」一节能看到本机的端口、发现了几台 CopySync、每台设备能否找到、记住了哪些地址。见[同一网络教程](https://baiyuze.github.io/pasteferry/lan/)。+先确认两台都启用了后台同步、连着同一个网络。公司里有线和无线、访客网络、开了「AP 隔离」的 Wi‑Fi 常常不互通:在输入配对码的那台点「不在同一网段?」,填上对方配对码下面显示的地址。还是找不到就看对方的防火墙:Windows 上在「设置 → 局域网」里点「放行」(会请求一次管理员权限);Mac 上到「系统设置 → 隐私与安全性 → 本地网络」打开 PasteFerry Daemon。`pasteferry-cli nat` 的「局域网」一节能看到本机的端口、发现了几台隔空贴、每台设备能否找到、记住了哪些地址。见[同一网络教程](https://baiyuze.github.io/pasteferry/lan/)。**「设置 → 连接状态」一直是「未连接」**只在填了服务器地址时才有这个问题;同一网络里不需要服务器,地址留空即可。先核对地址:以 `ws://` 开头、端口 8787、以 `/signal` 结尾;再在这台电脑的浏览器里打开 `http://<服务器地址>:8787/healthz`。打不开说明到服务器的网络不通:服务器没在运行、那台电脑睡眠了、被防火墙拦住了,或者它的地址变了。Windows 与 Linux 的安装脚本会给出需要的防火墙命令,见[服务器部署说明](../server/deploy/README.md)与[局域网部署教程](https://baiyuze.github.io/pasteferry/server/)。@@ -15,7 +15,7 @@「直连」指两台电脑在 Tailscale 的虚拟网里直接相连。Tailscale 自己打不通两台电脑时,会经它在境外的中转服务器(DERP)转发,在国内用就会慢。运行 `tailscale ping <对方>`:显示 via DERP 说明 Tailscale 在中转,显示 via <IP>:<端口> 才是点对点。见 [Tailscale 教程](https://baiyuze.github.io/pasteferry/tailscale/)。**UU 远程开启时不断新增 `.uuremote_…` 文件记录**-升级两端客户端到 1.3.2 或更新的版本。UU 远程会把临时占位文件写入系统剪贴板,旧版 CopySync 会把它们当成普通文件再次转发。新版在扫描、入库和发送之前过滤已确认的 `.uuremote_aeawv` 加数字命名;混合选择保留正常文件,接收端忽略纯占位记录,启动时清理历史里的纯占位记录(不删除 UU 的源文件)。普通空文件、隐藏文件和大文件不受这条规则影响。50 MB 是自动传输阈值,不是故障原因;无需关闭 UU 的 UDP P2P。其他剪贴板同步工具仍可能造成普通内容重复,可只保留一个工具负责剪贴板同步。技术与验证记录见 [UU 远程兼容修复](../design/uu-remote-clipboard.md)。+升级两端客户端到 1.3.2 或更新的版本。UU 远程会把临时占位文件写入系统剪贴板,旧版隔空贴会把它们当成普通文件再次转发。新版在扫描、入库和发送之前过滤已确认的 `.uuremote_aeawv` 加数字命名;混合选择保留正常文件,接收端忽略纯占位记录,启动时清理历史里的纯占位记录(不删除 UU 的源文件)。普通空文件、隐藏文件和大文件不受这条规则影响。50 MB 是自动传输阈值,不是故障原因;无需关闭 UU 的 UDP P2P。其他剪贴板同步工具仍可能造成普通内容重复,可只保留一个工具负责剪贴板同步。技术与验证记录见 [UU 远程兼容修复](../design/uu-remote-clipboard.md)。**剪贴板读不到内容,`pbpaste` 也是空的**系统的剪贴板服务可能卡住了:某个程序声明了剪贴板内容后异常退出,会留下一个"有类型声明、没有数据"的空壳。执行 `killall pboard`,再复制一次即可。@@ -24,10 +24,10 @@在同一网络里:看上面「同一网络里找不到另一台电脑」。两台都换过地址时,在设备列表里点那台设备的「…」菜单,选「输入它的地址」。跨网络时:检查两台电脑的 **设置 → 连接状态** 是否都是「已连接」,不是的话确认服务器地址正确、8787 端口可以访问。**一直显示「中转」而不是「直连」**-刚连上时显示中转、过一会儿变成直连是正常的:先用中转保证能用,空闲时再换直连。一直是中转,说明 NAT 打洞没成功,常见于端口随机分配的 NAT 或严格的防火墙。功能不受影响,只是速度受服务器带宽限制。运行 `copysync-cli nat` 看本机探测到了几个出口:出口为 0 说明 UDP 被拦截了。+刚连上时显示中转、过一会儿变成直连是正常的:先用中转保证能用,空闲时再换直连。一直是中转,说明 NAT 打洞没成功,常见于端口随机分配的 NAT 或严格的防火墙。功能不受影响,只是速度受服务器带宽限制。运行 `pasteferry-cli nat` 看本机探测到了几个出口:出口为 0 说明 UDP 被拦截了。**查看日志**-后台服务的日志:Mac 上在 `~/Library/Logs/CopySync/daemon.log`,Windows 上在 `%LOCALAPPDATA%\CopySync\logs\daemon.log`。服务器的日志:Linux 上用 `journalctl -u copysync-server -f` 查看,Mac 上在 `~/Library/Logs/CopySync/server.log`,Windows 上在 `C:\ProgramData\CopySync Server\server.log`。+后台服务的日志:Mac 上在 `~/Library/Logs/PasteFerry/daemon.log`,Windows 上在 `%LOCALAPPDATA%\PasteFerry\logs\daemon.log`。服务器的日志:Linux 上用 `journalctl -u pasteferry-server -f` 查看,Mac 上在 `~/Library/Logs/PasteFerry/server.log`,Windows 上在 `C:\ProgramData\PasteFerry Server\server.log`。## 已知限制@@ -36,5 +36,5 @@- **Mac 版还不会跳过密码管理器复制的内容**,Windows 版已经会。- **对方离线太久的内容不会补发**。服务器不存数据;对方暂时连不上时,本机只在内存里记下最近 20 条(24 小时内的),本机的后台服务重启后就清空了。- **中转模式的速度取决于服务器带宽**。直连时不受影响。-- **不在同一网段、两台都换了地址时**,要在设备菜单里重新输入一次地址;CopySync 不扫描网段。两台都是没放行防火墙的 Windows、又只有一边知道对方地址时连不上,要在被连的一方点「放行」。+- **不在同一网段、两台都换了地址时**,要在设备菜单里重新输入一次地址;隔空贴不扫描网段。两台都是没放行防火墙的 Windows、又只有一边知道对方地址时连不上,要在被连的一方点「放行」。- **macOS 15 要允许「本地网络」权限**,否则后台服务连不到局域网里的设备(对方先发来时仍能连上)。更新到新版本后,最初十几秒的包也可能被系统拦下,之后自动恢复。diff --git a/proto/gen/copysync/v1/daemon.pb.go b/proto/gen/pasteferry/v1/daemon.pb.gosimilarity index 76%rename from proto/gen/copysync/v1/daemon.pb.gorename to proto/gen/pasteferry/v1/daemon.pb.goindex 45b1b99..d971bc6 100644--- a/proto/gen/copysync/v1/daemon.pb.go+++ b/proto/gen/pasteferry/v1/daemon.pb.go@@ -7,9 +7,9 @@// versions:// protoc-gen-go v1.36.12// protoc (unknown)-// source: copysync/v1/daemon.proto+// source: pasteferry/v1/daemon.proto-package copysyncv1+package pasteferryv1import (protoreflect "google.golang.org/protobuf/reflect/protoreflect"@@ -65,11 +65,11 @@ func (x ClipKind) String() string {}func (ClipKind) Descriptor() protoreflect.EnumDescriptor {- return file_copysync_v1_daemon_proto_enumTypes[0].Descriptor()+ return file_pasteferry_v1_daemon_proto_enumTypes[0].Descriptor()}func (ClipKind) Type() protoreflect.EnumType {- return &file_copysync_v1_daemon_proto_enumTypes[0]+ return &file_pasteferry_v1_daemon_proto_enumTypes[0]}func (x ClipKind) Number() protoreflect.EnumNumber {@@ -78,7 +78,7 @@ func (x ClipKind) Number() protoreflect.EnumNumber {// Deprecated: Use ClipKind.Descriptor instead.func (ClipKind) EnumDescriptor() ([]byte, []int) {- return file_copysync_v1_daemon_proto_rawDescGZIP(), []int{0}+ return file_pasteferry_v1_daemon_proto_rawDescGZIP(), []int{0}}type ClipStatus int32@@ -123,11 +123,11 @@ func (x ClipStatus) String() string {}func (ClipStatus) Descriptor() protoreflect.EnumDescriptor {- return file_copysync_v1_daemon_proto_enumTypes[1].Descriptor()+ return file_pasteferry_v1_daemon_proto_enumTypes[1].Descriptor()}func (ClipStatus) Type() protoreflect.EnumType {- return &file_copysync_v1_daemon_proto_enumTypes[1]+ return &file_pasteferry_v1_daemon_proto_enumTypes[1]}func (x ClipStatus) Number() protoreflect.EnumNumber {@@ -136,7 +136,7 @@ func (x ClipStatus) Number() protoreflect.EnumNumber {// Deprecated: Use ClipStatus.Descriptor instead.func (ClipStatus) EnumDescriptor() ([]byte, []int) {- return file_copysync_v1_daemon_proto_rawDescGZIP(), []int{1}+ return file_pasteferry_v1_daemon_proto_rawDescGZIP(), []int{1}}type ConnectionKind int32@@ -175,11 +175,11 @@ func (x ConnectionKind) String() string {}func (ConnectionKind) Descriptor() protoreflect.EnumDescriptor {- return file_copysync_v1_daemon_proto_enumTypes[2].Descriptor()+ return file_pasteferry_v1_daemon_proto_enumTypes[2].Descriptor()}func (ConnectionKind) Type() protoreflect.EnumType {- return &file_copysync_v1_daemon_proto_enumTypes[2]+ return &file_pasteferry_v1_daemon_proto_enumTypes[2]}func (x ConnectionKind) Number() protoreflect.EnumNumber {@@ -188,7 +188,7 @@ func (x ConnectionKind) Number() protoreflect.EnumNumber {// Deprecated: Use ConnectionKind.Descriptor instead.func (ConnectionKind) EnumDescriptor() ([]byte, []int) {- return file_copysync_v1_daemon_proto_rawDescGZIP(), []int{2}+ return file_pasteferry_v1_daemon_proto_rawDescGZIP(), []int{2}}// macOS 剪贴板授权状态,对应 NSPasteboardAccessBehavior。@@ -235,11 +235,11 @@ func (x ClipboardPermission) String() string {}func (ClipboardPermission) Descriptor() protoreflect.EnumDescriptor {- return file_copysync_v1_daemon_proto_enumTypes[3].Descriptor()+ return file_pasteferry_v1_daemon_proto_enumTypes[3].Descriptor()}func (ClipboardPermission) Type() protoreflect.EnumType {- return &file_copysync_v1_daemon_proto_enumTypes[3]+ return &file_pasteferry_v1_daemon_proto_enumTypes[3]}func (x ClipboardPermission) Number() protoreflect.EnumNumber {@@ -248,7 +248,7 @@ func (x ClipboardPermission) Number() protoreflect.EnumNumber {// Deprecated: Use ClipboardPermission.Descriptor instead.func (ClipboardPermission) EnumDescriptor() ([]byte, []int) {- return file_copysync_v1_daemon_proto_rawDescGZIP(), []int{3}+ return file_pasteferry_v1_daemon_proto_rawDescGZIP(), []int{3}}type Empty struct {@@ -259,7 +259,7 @@ type Empty struct {func (x *Empty) Reset() {*x = Empty{}- mi := &file_copysync_v1_daemon_proto_msgTypes[0]+ mi := &file_pasteferry_v1_daemon_proto_msgTypes[0]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -271,7 +271,7 @@ func (x *Empty) String() string {func (*Empty) ProtoMessage() {}func (x *Empty) ProtoReflect() protoreflect.Message {- mi := &file_copysync_v1_daemon_proto_msgTypes[0]+ mi := &file_pasteferry_v1_daemon_proto_msgTypes[0]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -284,7 +284,7 @@ func (x *Empty) ProtoReflect() protoreflect.Message {// Deprecated: Use Empty.ProtoReflect.Descriptor instead.func (*Empty) Descriptor() ([]byte, []int) {- return file_copysync_v1_daemon_proto_rawDescGZIP(), []int{0}+ return file_pasteferry_v1_daemon_proto_rawDescGZIP(), []int{0}}type ClipItem struct {@@ -299,7 +299,7 @@ type ClipItem struct {func (x *ClipItem) Reset() {*x = ClipItem{}- mi := &file_copysync_v1_daemon_proto_msgTypes[1]+ mi := &file_pasteferry_v1_daemon_proto_msgTypes[1]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -311,7 +311,7 @@ func (x *ClipItem) String() string {func (*ClipItem) ProtoMessage() {}func (x *ClipItem) ProtoReflect() protoreflect.Message {- mi := &file_copysync_v1_daemon_proto_msgTypes[1]+ mi := &file_pasteferry_v1_daemon_proto_msgTypes[1]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -324,7 +324,7 @@ func (x *ClipItem) ProtoReflect() protoreflect.Message {// Deprecated: Use ClipItem.ProtoReflect.Descriptor instead.func (*ClipItem) Descriptor() ([]byte, []int) {- return file_copysync_v1_daemon_proto_rawDescGZIP(), []int{1}+ return file_pasteferry_v1_daemon_proto_rawDescGZIP(), []int{1}}func (x *ClipItem) GetName() string {@@ -358,8 +358,8 @@ func (x *ClipItem) GetContentType() string {type ClipRecord struct {state protoimpl.MessageState `protogen:"open.v1"`Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`- Kind ClipKind `protobuf:"varint,2,opt,name=kind,proto3,enum=copysync.v1.ClipKind" json:"kind,omitempty"`- Status ClipStatus `protobuf:"varint,3,opt,name=status,proto3,enum=copysync.v1.ClipStatus" json:"status,omitempty"`+ Kind ClipKind `protobuf:"varint,2,opt,name=kind,proto3,enum=pasteferry.v1.ClipKind" json:"kind,omitempty"`+ Status ClipStatus `protobuf:"varint,3,opt,name=status,proto3,enum=pasteferry.v1.ClipStatus" json:"status,omitempty"`OriginDeviceId string `protobuf:"bytes,4,opt,name=origin_device_id,json=originDeviceId,proto3" json:"origin_device_id,omitempty"`OriginDeviceName string `protobuf:"bytes,5,opt,name=origin_device_name,json=originDeviceName,proto3" json:"origin_device_name,omitempty"`Outgoing bool `protobuf:"varint,6,opt,name=outgoing,proto3" json:"outgoing,omitempty"` // true=本机复制的 false=从对端收到的@@ -378,7 +378,7 @@ type ClipRecord struct {func (x *ClipRecord) Reset() {*x = ClipRecord{}- mi := &file_copysync_v1_daemon_proto_msgTypes[2]+ mi := &file_pasteferry_v1_daemon_proto_msgTypes[2]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -390,7 +390,7 @@ func (x *ClipRecord) String() string {func (*ClipRecord) ProtoMessage() {}func (x *ClipRecord) ProtoReflect() protoreflect.Message {- mi := &file_copysync_v1_daemon_proto_msgTypes[2]+ mi := &file_pasteferry_v1_daemon_proto_msgTypes[2]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -403,7 +403,7 @@ func (x *ClipRecord) ProtoReflect() protoreflect.Message {// Deprecated: Use ClipRecord.ProtoReflect.Descriptor instead.func (*ClipRecord) Descriptor() ([]byte, []int) {- return file_copysync_v1_daemon_proto_rawDescGZIP(), []int{2}+ return file_pasteferry_v1_daemon_proto_rawDescGZIP(), []int{2}}func (x *ClipRecord) GetId() string {@@ -507,7 +507,7 @@ type SubscribeRequest struct {func (x *SubscribeRequest) Reset() {*x = SubscribeRequest{}- mi := &file_copysync_v1_daemon_proto_msgTypes[3]+ mi := &file_pasteferry_v1_daemon_proto_msgTypes[3]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -519,7 +519,7 @@ func (x *SubscribeRequest) String() string {func (*SubscribeRequest) ProtoMessage() {}func (x *SubscribeRequest) ProtoReflect() protoreflect.Message {- mi := &file_copysync_v1_daemon_proto_msgTypes[3]+ mi := &file_pasteferry_v1_daemon_proto_msgTypes[3]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -532,7 +532,7 @@ func (x *SubscribeRequest) ProtoReflect() protoreflect.Message {// Deprecated: Use SubscribeRequest.ProtoReflect.Descriptor instead.func (*SubscribeRequest) Descriptor() ([]byte, []int) {- return file_copysync_v1_daemon_proto_rawDescGZIP(), []int{3}+ return file_pasteferry_v1_daemon_proto_rawDescGZIP(), []int{3}}func (x *SubscribeRequest) GetSinceUnix() int64 {@@ -554,7 +554,7 @@ type TransferProgress struct {func (x *TransferProgress) Reset() {*x = TransferProgress{}- mi := &file_copysync_v1_daemon_proto_msgTypes[4]+ mi := &file_pasteferry_v1_daemon_proto_msgTypes[4]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -566,7 +566,7 @@ func (x *TransferProgress) String() string {func (*TransferProgress) ProtoMessage() {}func (x *TransferProgress) ProtoReflect() protoreflect.Message {- mi := &file_copysync_v1_daemon_proto_msgTypes[4]+ mi := &file_pasteferry_v1_daemon_proto_msgTypes[4]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -579,7 +579,7 @@ func (x *TransferProgress) ProtoReflect() protoreflect.Message {// Deprecated: Use TransferProgress.ProtoReflect.Descriptor instead.func (*TransferProgress) Descriptor() ([]byte, []int) {- return file_copysync_v1_daemon_proto_rawDescGZIP(), []int{4}+ return file_pasteferry_v1_daemon_proto_rawDescGZIP(), []int{4}}func (x *TransferProgress) GetClipId() string {@@ -616,7 +616,7 @@ type Device struct {Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`Platform string `protobuf:"bytes,3,opt,name=platform,proto3" json:"platform,omitempty"` // darwin / windows / linuxOnline bool `protobuf:"varint,4,opt,name=online,proto3" json:"online,omitempty"`- Connection ConnectionKind `protobuf:"varint,5,opt,name=connection,proto3,enum=copysync.v1.ConnectionKind" json:"connection,omitempty"`+ Connection ConnectionKind `protobuf:"varint,5,opt,name=connection,proto3,enum=pasteferry.v1.ConnectionKind" json:"connection,omitempty"`PublicKeyFingerprint string `protobuf:"bytes,6,opt,name=public_key_fingerprint,json=publicKeyFingerprint,proto3" json:"public_key_fingerprint,omitempty"`PairedAtUnix int64 `protobuf:"varint,7,opt,name=paired_at_unix,json=pairedAtUnix,proto3" json:"paired_at_unix,omitempty"`// 非空表示这是一条**待用户核对指纹**的配对请求,而非已配对设备。@@ -629,7 +629,7 @@ type Device struct {func (x *Device) Reset() {*x = Device{}- mi := &file_copysync_v1_daemon_proto_msgTypes[5]+ mi := &file_pasteferry_v1_daemon_proto_msgTypes[5]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -641,7 +641,7 @@ func (x *Device) String() string {func (*Device) ProtoMessage() {}func (x *Device) ProtoReflect() protoreflect.Message {- mi := &file_copysync_v1_daemon_proto_msgTypes[5]+ mi := &file_pasteferry_v1_daemon_proto_msgTypes[5]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -654,7 +654,7 @@ func (x *Device) ProtoReflect() protoreflect.Message {// Deprecated: Use Device.ProtoReflect.Descriptor instead.func (*Device) Descriptor() ([]byte, []int) {- return file_copysync_v1_daemon_proto_rawDescGZIP(), []int{5}+ return file_pasteferry_v1_daemon_proto_rawDescGZIP(), []int{5}}func (x *Device) GetId() string {@@ -731,7 +731,7 @@ type Event struct {func (x *Event) Reset() {*x = Event{}- mi := &file_copysync_v1_daemon_proto_msgTypes[6]+ mi := &file_pasteferry_v1_daemon_proto_msgTypes[6]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -743,7 +743,7 @@ func (x *Event) String() string {func (*Event) ProtoMessage() {}func (x *Event) ProtoReflect() protoreflect.Message {- mi := &file_copysync_v1_daemon_proto_msgTypes[6]+ mi := &file_pasteferry_v1_daemon_proto_msgTypes[6]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -756,7 +756,7 @@ func (x *Event) ProtoReflect() protoreflect.Message {// Deprecated: Use Event.ProtoReflect.Descriptor instead.func (*Event) Descriptor() ([]byte, []int) {- return file_copysync_v1_daemon_proto_rawDescGZIP(), []int{6}+ return file_pasteferry_v1_daemon_proto_rawDescGZIP(), []int{6}}func (x *Event) GetPayload() isEvent_Payload {@@ -854,7 +854,7 @@ type Event_DeviceChanged struct {}type Event_PermissionChanged struct {- PermissionChanged ClipboardPermission `protobuf:"varint,6,opt,name=permission_changed,json=permissionChanged,proto3,enum=copysync.v1.ClipboardPermission,oneof"`+ PermissionChanged ClipboardPermission `protobuf:"varint,6,opt,name=permission_changed,json=permissionChanged,proto3,enum=pasteferry.v1.ClipboardPermission,oneof"`}type Event_StatusChanged struct {@@ -878,8 +878,8 @@ func (*Event_StatusChanged) isEvent_Payload() {}type ListHistoryRequest struct {state protoimpl.MessageState `protogen:"open.v1"`Limit int32 `protobuf:"varint,1,opt,name=limit,proto3" json:"limit,omitempty"`- BeforeUnix int64 `protobuf:"varint,2,opt,name=before_unix,json=beforeUnix,proto3" json:"before_unix,omitempty"` // 分页游标- KindFilter ClipKind `protobuf:"varint,3,opt,name=kind_filter,json=kindFilter,proto3,enum=copysync.v1.ClipKind" json:"kind_filter,omitempty"` // UNSPECIFIED 表示不过滤+ BeforeUnix int64 `protobuf:"varint,2,opt,name=before_unix,json=beforeUnix,proto3" json:"before_unix,omitempty"` // 分页游标+ KindFilter ClipKind `protobuf:"varint,3,opt,name=kind_filter,json=kindFilter,proto3,enum=pasteferry.v1.ClipKind" json:"kind_filter,omitempty"` // UNSPECIFIED 表示不过滤// 搜索词:非空时只返回文字内容或文件名包含它的记录(不分大小写),按时间倒序,// 忽略 before_unix。匹配处不在预览片段里的文字记录,text_preview 换成匹配处前后的一段。Query string `protobuf:"bytes,4,opt,name=query,proto3" json:"query,omitempty"`@@ -889,7 +889,7 @@ type ListHistoryRequest struct {func (x *ListHistoryRequest) Reset() {*x = ListHistoryRequest{}- mi := &file_copysync_v1_daemon_proto_msgTypes[7]+ mi := &file_pasteferry_v1_daemon_proto_msgTypes[7]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -901,7 +901,7 @@ func (x *ListHistoryRequest) String() string {func (*ListHistoryRequest) ProtoMessage() {}func (x *ListHistoryRequest) ProtoReflect() protoreflect.Message {- mi := &file_copysync_v1_daemon_proto_msgTypes[7]+ mi := &file_pasteferry_v1_daemon_proto_msgTypes[7]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -914,7 +914,7 @@ func (x *ListHistoryRequest) ProtoReflect() protoreflect.Message {// Deprecated: Use ListHistoryRequest.ProtoReflect.Descriptor instead.func (*ListHistoryRequest) Descriptor() ([]byte, []int) {- return file_copysync_v1_daemon_proto_rawDescGZIP(), []int{7}+ return file_pasteferry_v1_daemon_proto_rawDescGZIP(), []int{7}}func (x *ListHistoryRequest) GetLimit() int32 {@@ -956,7 +956,7 @@ type ListHistoryResponse struct {func (x *ListHistoryResponse) Reset() {*x = ListHistoryResponse{}- mi := &file_copysync_v1_daemon_proto_msgTypes[8]+ mi := &file_pasteferry_v1_daemon_proto_msgTypes[8]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -968,7 +968,7 @@ func (x *ListHistoryResponse) String() string {func (*ListHistoryResponse) ProtoMessage() {}func (x *ListHistoryResponse) ProtoReflect() protoreflect.Message {- mi := &file_copysync_v1_daemon_proto_msgTypes[8]+ mi := &file_pasteferry_v1_daemon_proto_msgTypes[8]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -981,7 +981,7 @@ func (x *ListHistoryResponse) ProtoReflect() protoreflect.Message {// Deprecated: Use ListHistoryResponse.ProtoReflect.Descriptor instead.func (*ListHistoryResponse) Descriptor() ([]byte, []int) {- return file_copysync_v1_daemon_proto_rawDescGZIP(), []int{8}+ return file_pasteferry_v1_daemon_proto_rawDescGZIP(), []int{8}}func (x *ListHistoryResponse) GetRecords() []*ClipRecord {@@ -1008,7 +1008,7 @@ type DeleteHistoryRequest struct {func (x *DeleteHistoryRequest) Reset() {*x = DeleteHistoryRequest{}- mi := &file_copysync_v1_daemon_proto_msgTypes[9]+ mi := &file_pasteferry_v1_daemon_proto_msgTypes[9]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -1020,7 +1020,7 @@ func (x *DeleteHistoryRequest) String() string {func (*DeleteHistoryRequest) ProtoMessage() {}func (x *DeleteHistoryRequest) ProtoReflect() protoreflect.Message {- mi := &file_copysync_v1_daemon_proto_msgTypes[9]+ mi := &file_pasteferry_v1_daemon_proto_msgTypes[9]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -1033,7 +1033,7 @@ func (x *DeleteHistoryRequest) ProtoReflect() protoreflect.Message {// Deprecated: Use DeleteHistoryRequest.ProtoReflect.Descriptor instead.func (*DeleteHistoryRequest) Descriptor() ([]byte, []int) {- return file_copysync_v1_daemon_proto_rawDescGZIP(), []int{9}+ return file_pasteferry_v1_daemon_proto_rawDescGZIP(), []int{9}}func (x *DeleteHistoryRequest) GetIds() []string {@@ -1060,7 +1060,7 @@ type FetchRequest struct {func (x *FetchRequest) Reset() {*x = FetchRequest{}- mi := &file_copysync_v1_daemon_proto_msgTypes[10]+ mi := &file_pasteferry_v1_daemon_proto_msgTypes[10]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -1072,7 +1072,7 @@ func (x *FetchRequest) String() string {func (*FetchRequest) ProtoMessage() {}func (x *FetchRequest) ProtoReflect() protoreflect.Message {- mi := &file_copysync_v1_daemon_proto_msgTypes[10]+ mi := &file_pasteferry_v1_daemon_proto_msgTypes[10]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -1085,7 +1085,7 @@ func (x *FetchRequest) ProtoReflect() protoreflect.Message {// Deprecated: Use FetchRequest.ProtoReflect.Descriptor instead.func (*FetchRequest) Descriptor() ([]byte, []int) {- return file_copysync_v1_daemon_proto_rawDescGZIP(), []int{10}+ return file_pasteferry_v1_daemon_proto_rawDescGZIP(), []int{10}}func (x *FetchRequest) GetClipId() string {@@ -1111,7 +1111,7 @@ type ApplyToClipboardRequest struct {func (x *ApplyToClipboardRequest) Reset() {*x = ApplyToClipboardRequest{}- mi := &file_copysync_v1_daemon_proto_msgTypes[11]+ mi := &file_pasteferry_v1_daemon_proto_msgTypes[11]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -1123,7 +1123,7 @@ func (x *ApplyToClipboardRequest) String() string {func (*ApplyToClipboardRequest) ProtoMessage() {}func (x *ApplyToClipboardRequest) ProtoReflect() protoreflect.Message {- mi := &file_copysync_v1_daemon_proto_msgTypes[11]+ mi := &file_pasteferry_v1_daemon_proto_msgTypes[11]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -1136,7 +1136,7 @@ func (x *ApplyToClipboardRequest) ProtoReflect() protoreflect.Message {// Deprecated: Use ApplyToClipboardRequest.ProtoReflect.Descriptor instead.func (*ApplyToClipboardRequest) Descriptor() ([]byte, []int) {- return file_copysync_v1_daemon_proto_rawDescGZIP(), []int{11}+ return file_pasteferry_v1_daemon_proto_rawDescGZIP(), []int{11}}func (x *ApplyToClipboardRequest) GetClipId() string {@@ -1156,7 +1156,7 @@ type ListDevicesResponse struct {func (x *ListDevicesResponse) Reset() {*x = ListDevicesResponse{}- mi := &file_copysync_v1_daemon_proto_msgTypes[12]+ mi := &file_pasteferry_v1_daemon_proto_msgTypes[12]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -1168,7 +1168,7 @@ func (x *ListDevicesResponse) String() string {func (*ListDevicesResponse) ProtoMessage() {}func (x *ListDevicesResponse) ProtoReflect() protoreflect.Message {- mi := &file_copysync_v1_daemon_proto_msgTypes[12]+ mi := &file_pasteferry_v1_daemon_proto_msgTypes[12]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -1181,7 +1181,7 @@ func (x *ListDevicesResponse) ProtoReflect() protoreflect.Message {// Deprecated: Use ListDevicesResponse.ProtoReflect.Descriptor instead.func (*ListDevicesResponse) Descriptor() ([]byte, []int) {- return file_copysync_v1_daemon_proto_rawDescGZIP(), []int{12}+ return file_pasteferry_v1_daemon_proto_rawDescGZIP(), []int{12}}func (x *ListDevicesResponse) GetSelf() *Device {@@ -1211,7 +1211,7 @@ type CreatePairingCodeResponse struct {func (x *CreatePairingCodeResponse) Reset() {*x = CreatePairingCodeResponse{}- mi := &file_copysync_v1_daemon_proto_msgTypes[13]+ mi := &file_pasteferry_v1_daemon_proto_msgTypes[13]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -1223,7 +1223,7 @@ func (x *CreatePairingCodeResponse) String() string {func (*CreatePairingCodeResponse) ProtoMessage() {}func (x *CreatePairingCodeResponse) ProtoReflect() protoreflect.Message {- mi := &file_copysync_v1_daemon_proto_msgTypes[13]+ mi := &file_pasteferry_v1_daemon_proto_msgTypes[13]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -1236,7 +1236,7 @@ func (x *CreatePairingCodeResponse) ProtoReflect() protoreflect.Message {// Deprecated: Use CreatePairingCodeResponse.ProtoReflect.Descriptor instead.func (*CreatePairingCodeResponse) Descriptor() ([]byte, []int) {- return file_copysync_v1_daemon_proto_rawDescGZIP(), []int{13}+ return file_pasteferry_v1_daemon_proto_rawDescGZIP(), []int{13}}func (x *CreatePairingCodeResponse) GetCode() string {@@ -1273,7 +1273,7 @@ type RedeemPairingCodeRequest struct {func (x *RedeemPairingCodeRequest) Reset() {*x = RedeemPairingCodeRequest{}- mi := &file_copysync_v1_daemon_proto_msgTypes[14]+ mi := &file_pasteferry_v1_daemon_proto_msgTypes[14]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -1285,7 +1285,7 @@ func (x *RedeemPairingCodeRequest) String() string {func (*RedeemPairingCodeRequest) ProtoMessage() {}func (x *RedeemPairingCodeRequest) ProtoReflect() protoreflect.Message {- mi := &file_copysync_v1_daemon_proto_msgTypes[14]+ mi := &file_pasteferry_v1_daemon_proto_msgTypes[14]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -1298,7 +1298,7 @@ func (x *RedeemPairingCodeRequest) ProtoReflect() protoreflect.Message {// Deprecated: Use RedeemPairingCodeRequest.ProtoReflect.Descriptor instead.func (*RedeemPairingCodeRequest) Descriptor() ([]byte, []int) {- return file_copysync_v1_daemon_proto_rawDescGZIP(), []int{14}+ return file_pasteferry_v1_daemon_proto_rawDescGZIP(), []int{14}}func (x *RedeemPairingCodeRequest) GetCode() string {@@ -1326,7 +1326,7 @@ type RedeemPairingCodeResponse struct {func (x *RedeemPairingCodeResponse) Reset() {*x = RedeemPairingCodeResponse{}- mi := &file_copysync_v1_daemon_proto_msgTypes[15]+ mi := &file_pasteferry_v1_daemon_proto_msgTypes[15]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -1338,7 +1338,7 @@ func (x *RedeemPairingCodeResponse) String() string {func (*RedeemPairingCodeResponse) ProtoMessage() {}func (x *RedeemPairingCodeResponse) ProtoReflect() protoreflect.Message {- mi := &file_copysync_v1_daemon_proto_msgTypes[15]+ mi := &file_pasteferry_v1_daemon_proto_msgTypes[15]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -1351,7 +1351,7 @@ func (x *RedeemPairingCodeResponse) ProtoReflect() protoreflect.Message {// Deprecated: Use RedeemPairingCodeResponse.ProtoReflect.Descriptor instead.func (*RedeemPairingCodeResponse) Descriptor() ([]byte, []int) {- return file_copysync_v1_daemon_proto_rawDescGZIP(), []int{15}+ return file_pasteferry_v1_daemon_proto_rawDescGZIP(), []int{15}}func (x *RedeemPairingCodeResponse) GetPeer() *Device {@@ -1378,7 +1378,7 @@ type ConfirmPairingRequest struct {func (x *ConfirmPairingRequest) Reset() {*x = ConfirmPairingRequest{}- mi := &file_copysync_v1_daemon_proto_msgTypes[16]+ mi := &file_pasteferry_v1_daemon_proto_msgTypes[16]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -1390,7 +1390,7 @@ func (x *ConfirmPairingRequest) String() string {func (*ConfirmPairingRequest) ProtoMessage() {}func (x *ConfirmPairingRequest) ProtoReflect() protoreflect.Message {- mi := &file_copysync_v1_daemon_proto_msgTypes[16]+ mi := &file_pasteferry_v1_daemon_proto_msgTypes[16]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -1403,7 +1403,7 @@ func (x *ConfirmPairingRequest) ProtoReflect() protoreflect.Message {// Deprecated: Use ConfirmPairingRequest.ProtoReflect.Descriptor instead.func (*ConfirmPairingRequest) Descriptor() ([]byte, []int) {- return file_copysync_v1_daemon_proto_rawDescGZIP(), []int{16}+ return file_pasteferry_v1_daemon_proto_rawDescGZIP(), []int{16}}func (x *ConfirmPairingRequest) GetPairingSession() string {@@ -1433,7 +1433,7 @@ type NearbyDevice struct {func (x *NearbyDevice) Reset() {*x = NearbyDevice{}- mi := &file_copysync_v1_daemon_proto_msgTypes[17]+ mi := &file_pasteferry_v1_daemon_proto_msgTypes[17]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -1445,7 +1445,7 @@ func (x *NearbyDevice) String() string {func (*NearbyDevice) ProtoMessage() {}func (x *NearbyDevice) ProtoReflect() protoreflect.Message {- mi := &file_copysync_v1_daemon_proto_msgTypes[17]+ mi := &file_pasteferry_v1_daemon_proto_msgTypes[17]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -1458,7 +1458,7 @@ func (x *NearbyDevice) ProtoReflect() protoreflect.Message {// Deprecated: Use NearbyDevice.ProtoReflect.Descriptor instead.func (*NearbyDevice) Descriptor() ([]byte, []int) {- return file_copysync_v1_daemon_proto_rawDescGZIP(), []int{17}+ return file_pasteferry_v1_daemon_proto_rawDescGZIP(), []int{17}}func (x *NearbyDevice) GetId() string {@@ -1498,7 +1498,7 @@ type NearbyDevices struct {func (x *NearbyDevices) Reset() {*x = NearbyDevices{}- mi := &file_copysync_v1_daemon_proto_msgTypes[18]+ mi := &file_pasteferry_v1_daemon_proto_msgTypes[18]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -1510,7 +1510,7 @@ func (x *NearbyDevices) String() string {func (*NearbyDevices) ProtoMessage() {}func (x *NearbyDevices) ProtoReflect() protoreflect.Message {- mi := &file_copysync_v1_daemon_proto_msgTypes[18]+ mi := &file_pasteferry_v1_daemon_proto_msgTypes[18]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -1523,7 +1523,7 @@ func (x *NearbyDevices) ProtoReflect() protoreflect.Message {// Deprecated: Use NearbyDevices.ProtoReflect.Descriptor instead.func (*NearbyDevices) Descriptor() ([]byte, []int) {- return file_copysync_v1_daemon_proto_rawDescGZIP(), []int{18}+ return file_pasteferry_v1_daemon_proto_rawDescGZIP(), []int{18}}func (x *NearbyDevices) GetDevices() []*NearbyDevice {@@ -1542,7 +1542,7 @@ type PairNearbyRequest struct {func (x *PairNearbyRequest) Reset() {*x = PairNearbyRequest{}- mi := &file_copysync_v1_daemon_proto_msgTypes[19]+ mi := &file_pasteferry_v1_daemon_proto_msgTypes[19]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -1554,7 +1554,7 @@ func (x *PairNearbyRequest) String() string {func (*PairNearbyRequest) ProtoMessage() {}func (x *PairNearbyRequest) ProtoReflect() protoreflect.Message {- mi := &file_copysync_v1_daemon_proto_msgTypes[19]+ mi := &file_pasteferry_v1_daemon_proto_msgTypes[19]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -1567,7 +1567,7 @@ func (x *PairNearbyRequest) ProtoReflect() protoreflect.Message {// Deprecated: Use PairNearbyRequest.ProtoReflect.Descriptor instead.func (*PairNearbyRequest) Descriptor() ([]byte, []int) {- return file_copysync_v1_daemon_proto_rawDescGZIP(), []int{19}+ return file_pasteferry_v1_daemon_proto_rawDescGZIP(), []int{19}}func (x *PairNearbyRequest) GetId() string {@@ -1586,7 +1586,7 @@ type UnpairRequest struct {func (x *UnpairRequest) Reset() {*x = UnpairRequest{}- mi := &file_copysync_v1_daemon_proto_msgTypes[20]+ mi := &file_pasteferry_v1_daemon_proto_msgTypes[20]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -1598,7 +1598,7 @@ func (x *UnpairRequest) String() string {func (*UnpairRequest) ProtoMessage() {}func (x *UnpairRequest) ProtoReflect() protoreflect.Message {- mi := &file_copysync_v1_daemon_proto_msgTypes[20]+ mi := &file_pasteferry_v1_daemon_proto_msgTypes[20]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -1611,7 +1611,7 @@ func (x *UnpairRequest) ProtoReflect() protoreflect.Message {// Deprecated: Use UnpairRequest.ProtoReflect.Descriptor instead.func (*UnpairRequest) Descriptor() ([]byte, []int) {- return file_copysync_v1_daemon_proto_rawDescGZIP(), []int{20}+ return file_pasteferry_v1_daemon_proto_rawDescGZIP(), []int{20}}func (x *UnpairRequest) GetDeviceId() string {@@ -1631,7 +1631,7 @@ type SetDeviceAddressRequest struct {func (x *SetDeviceAddressRequest) Reset() {*x = SetDeviceAddressRequest{}- mi := &file_copysync_v1_daemon_proto_msgTypes[21]+ mi := &file_pasteferry_v1_daemon_proto_msgTypes[21]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -1643,7 +1643,7 @@ func (x *SetDeviceAddressRequest) String() string {func (*SetDeviceAddressRequest) ProtoMessage() {}func (x *SetDeviceAddressRequest) ProtoReflect() protoreflect.Message {- mi := &file_copysync_v1_daemon_proto_msgTypes[21]+ mi := &file_pasteferry_v1_daemon_proto_msgTypes[21]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -1656,7 +1656,7 @@ func (x *SetDeviceAddressRequest) ProtoReflect() protoreflect.Message {// Deprecated: Use SetDeviceAddressRequest.ProtoReflect.Descriptor instead.func (*SetDeviceAddressRequest) Descriptor() ([]byte, []int) {- return file_copysync_v1_daemon_proto_rawDescGZIP(), []int{21}+ return file_pasteferry_v1_daemon_proto_rawDescGZIP(), []int{21}}func (x *SetDeviceAddressRequest) GetDeviceId() string {@@ -1703,7 +1703,7 @@ type Config struct {func (x *Config) Reset() {*x = Config{}- mi := &file_copysync_v1_daemon_proto_msgTypes[22]+ mi := &file_pasteferry_v1_daemon_proto_msgTypes[22]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -1715,7 +1715,7 @@ func (x *Config) String() string {func (*Config) ProtoMessage() {}func (x *Config) ProtoReflect() protoreflect.Message {- mi := &file_copysync_v1_daemon_proto_msgTypes[22]+ mi := &file_pasteferry_v1_daemon_proto_msgTypes[22]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -1728,7 +1728,7 @@ func (x *Config) ProtoReflect() protoreflect.Message {// Deprecated: Use Config.ProtoReflect.Descriptor instead.func (*Config) Descriptor() ([]byte, []int) {- return file_copysync_v1_daemon_proto_rawDescGZIP(), []int{22}+ return file_pasteferry_v1_daemon_proto_rawDescGZIP(), []int{22}}func (x *Config) GetAutoSyncThresholdBytes() int64 {@@ -1844,7 +1844,7 @@ type NetworkInfo struct {func (x *NetworkInfo) Reset() {*x = NetworkInfo{}- mi := &file_copysync_v1_daemon_proto_msgTypes[23]+ mi := &file_pasteferry_v1_daemon_proto_msgTypes[23]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -1856,7 +1856,7 @@ func (x *NetworkInfo) String() string {func (*NetworkInfo) ProtoMessage() {}func (x *NetworkInfo) ProtoReflect() protoreflect.Message {- mi := &file_copysync_v1_daemon_proto_msgTypes[23]+ mi := &file_pasteferry_v1_daemon_proto_msgTypes[23]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -1869,7 +1869,7 @@ func (x *NetworkInfo) ProtoReflect() protoreflect.Message {// Deprecated: Use NetworkInfo.ProtoReflect.Descriptor instead.func (*NetworkInfo) Descriptor() ([]byte, []int) {- return file_copysync_v1_daemon_proto_rawDescGZIP(), []int{23}+ return file_pasteferry_v1_daemon_proto_rawDescGZIP(), []int{23}}func (x *NetworkInfo) GetLocalPort() int32 {@@ -1914,13 +1914,13 @@ func (x *NetworkInfo) GetLan() *LanInfo {return nil}-// 局域网直连的诊断信息,见 copysync-cli nat。+// 局域网直连的诊断信息,见 pasteferry-cli nat。type LanInfo struct {state protoimpl.MessageState `protogen:"open.v1"`Enabled bool `protobuf:"varint,1,opt,name=enabled,proto3" json:"enabled,omitempty"`Port int32 `protobuf:"varint,2,opt,name=port,proto3" json:"port,omitempty"` // 局域网信令的 UDP 端口LocalAddresses []string `protobuf:"bytes,3,rep,name=local_addresses,json=localAddresses,proto3" json:"local_addresses,omitempty"`- Discovered int32 `protobuf:"varint,4,opt,name=discovered,proto3" json:"discovered,omitempty"` // mDNS 发现的 CopySync 实例数(含未配对的)+ Discovered int32 `protobuf:"varint,4,opt,name=discovered,proto3" json:"discovered,omitempty"` // mDNS 发现的 PasteFerry 实例数(含未配对的)Peers []*LanPeer `protobuf:"bytes,5,rep,name=peers,proto3" json:"peers,omitempty"`Blocked bool `protobuf:"varint,6,opt,name=blocked,proto3" json:"blocked,omitempty"` // 系统拦下了本机发往局域网的包(macOS 本地网络权限)unknownFields protoimpl.UnknownFields@@ -1929,7 +1929,7 @@ type LanInfo struct {func (x *LanInfo) Reset() {*x = LanInfo{}- mi := &file_copysync_v1_daemon_proto_msgTypes[24]+ mi := &file_pasteferry_v1_daemon_proto_msgTypes[24]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -1941,7 +1941,7 @@ func (x *LanInfo) String() string {func (*LanInfo) ProtoMessage() {}func (x *LanInfo) ProtoReflect() protoreflect.Message {- mi := &file_copysync_v1_daemon_proto_msgTypes[24]+ mi := &file_pasteferry_v1_daemon_proto_msgTypes[24]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -1954,7 +1954,7 @@ func (x *LanInfo) ProtoReflect() protoreflect.Message {// Deprecated: Use LanInfo.ProtoReflect.Descriptor instead.func (*LanInfo) Descriptor() ([]byte, []int) {- return file_copysync_v1_daemon_proto_rawDescGZIP(), []int{24}+ return file_pasteferry_v1_daemon_proto_rawDescGZIP(), []int{24}}func (x *LanInfo) GetEnabled() bool {@@ -2013,7 +2013,7 @@ type LanPeer struct {func (x *LanPeer) Reset() {*x = LanPeer{}- mi := &file_copysync_v1_daemon_proto_msgTypes[25]+ mi := &file_pasteferry_v1_daemon_proto_msgTypes[25]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -2025,7 +2025,7 @@ func (x *LanPeer) String() string {func (*LanPeer) ProtoMessage() {}func (x *LanPeer) ProtoReflect() protoreflect.Message {- mi := &file_copysync_v1_daemon_proto_msgTypes[25]+ mi := &file_pasteferry_v1_daemon_proto_msgTypes[25]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -2038,7 +2038,7 @@ func (x *LanPeer) ProtoReflect() protoreflect.Message {// Deprecated: Use LanPeer.ProtoReflect.Descriptor instead.func (*LanPeer) Descriptor() ([]byte, []int) {- return file_copysync_v1_daemon_proto_rawDescGZIP(), []int{25}+ return file_pasteferry_v1_daemon_proto_rawDescGZIP(), []int{25}}func (x *LanPeer) GetDeviceId() string {@@ -2095,7 +2095,7 @@ type NetworkEgress struct {func (x *NetworkEgress) Reset() {*x = NetworkEgress{}- mi := &file_copysync_v1_daemon_proto_msgTypes[26]+ mi := &file_pasteferry_v1_daemon_proto_msgTypes[26]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -2107,7 +2107,7 @@ func (x *NetworkEgress) String() string {func (*NetworkEgress) ProtoMessage() {}func (x *NetworkEgress) ProtoReflect() protoreflect.Message {- mi := &file_copysync_v1_daemon_proto_msgTypes[26]+ mi := &file_pasteferry_v1_daemon_proto_msgTypes[26]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -2120,7 +2120,7 @@ func (x *NetworkEgress) ProtoReflect() protoreflect.Message {// Deprecated: Use NetworkEgress.ProtoReflect.Descriptor instead.func (*NetworkEgress) Descriptor() ([]byte, []int) {- return file_copysync_v1_daemon_proto_rawDescGZIP(), []int{26}+ return file_pasteferry_v1_daemon_proto_rawDescGZIP(), []int{26}}func (x *NetworkEgress) GetAddress() string {@@ -2156,7 +2156,7 @@ type Status struct {DeviceId string `protobuf:"bytes,1,opt,name=device_id,json=deviceId,proto3" json:"device_id,omitempty"`DeviceName string `protobuf:"bytes,2,opt,name=device_name,json=deviceName,proto3" json:"device_name,omitempty"`SignalingConnected bool `protobuf:"varint,3,opt,name=signaling_connected,json=signalingConnected,proto3" json:"signaling_connected,omitempty"`- ClipboardPermission ClipboardPermission `protobuf:"varint,4,opt,name=clipboard_permission,json=clipboardPermission,proto3,enum=copysync.v1.ClipboardPermission" json:"clipboard_permission,omitempty"`+ ClipboardPermission ClipboardPermission `protobuf:"varint,4,opt,name=clipboard_permission,json=clipboardPermission,proto3,enum=pasteferry.v1.ClipboardPermission" json:"clipboard_permission,omitempty"`CacheBytesUsed int64 `protobuf:"varint,5,opt,name=cache_bytes_used,json=cacheBytesUsed,proto3" json:"cache_bytes_used,omitempty"`PeersOnline int32 `protobuf:"varint,6,opt,name=peers_online,json=peersOnline,proto3" json:"peers_online,omitempty"`Version string `protobuf:"bytes,7,opt,name=version,proto3" json:"version,omitempty"`@@ -2173,7 +2173,7 @@ type Status struct {func (x *Status) Reset() {*x = Status{}- mi := &file_copysync_v1_daemon_proto_msgTypes[27]+ mi := &file_pasteferry_v1_daemon_proto_msgTypes[27]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -2185,7 +2185,7 @@ func (x *Status) String() string {func (*Status) ProtoMessage() {}func (x *Status) ProtoReflect() protoreflect.Message {- mi := &file_copysync_v1_daemon_proto_msgTypes[27]+ mi := &file_pasteferry_v1_daemon_proto_msgTypes[27]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -2198,7 +2198,7 @@ func (x *Status) ProtoReflect() protoreflect.Message {// Deprecated: Use Status.ProtoReflect.Descriptor instead.func (*Status) Descriptor() ([]byte, []int) {- return file_copysync_v1_daemon_proto_rawDescGZIP(), []int{27}+ return file_pasteferry_v1_daemon_proto_rawDescGZIP(), []int{27}}func (x *Status) GetDeviceId() string {@@ -2288,7 +2288,7 @@ type ExportDiagnosticsRequest struct {func (x *ExportDiagnosticsRequest) Reset() {*x = ExportDiagnosticsRequest{}- mi := &file_copysync_v1_daemon_proto_msgTypes[28]+ mi := &file_pasteferry_v1_daemon_proto_msgTypes[28]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -2300,7 +2300,7 @@ func (x *ExportDiagnosticsRequest) String() string {func (*ExportDiagnosticsRequest) ProtoMessage() {}func (x *ExportDiagnosticsRequest) ProtoReflect() protoreflect.Message {- mi := &file_copysync_v1_daemon_proto_msgTypes[28]+ mi := &file_pasteferry_v1_daemon_proto_msgTypes[28]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -2313,7 +2313,7 @@ func (x *ExportDiagnosticsRequest) ProtoReflect() protoreflect.Message {// Deprecated: Use ExportDiagnosticsRequest.ProtoReflect.Descriptor instead.func (*ExportDiagnosticsRequest) Descriptor() ([]byte, []int) {- return file_copysync_v1_daemon_proto_rawDescGZIP(), []int{28}+ return file_pasteferry_v1_daemon_proto_rawDescGZIP(), []int{28}}func (x *ExportDiagnosticsRequest) GetLogLines() int32 {@@ -2339,7 +2339,7 @@ type Diagnostics struct {func (x *Diagnostics) Reset() {*x = Diagnostics{}- mi := &file_copysync_v1_daemon_proto_msgTypes[29]+ mi := &file_pasteferry_v1_daemon_proto_msgTypes[29]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -2351,7 +2351,7 @@ func (x *Diagnostics) String() string {func (*Diagnostics) ProtoMessage() {}func (x *Diagnostics) ProtoReflect() protoreflect.Message {- mi := &file_copysync_v1_daemon_proto_msgTypes[29]+ mi := &file_pasteferry_v1_daemon_proto_msgTypes[29]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -2364,7 +2364,7 @@ func (x *Diagnostics) ProtoReflect() protoreflect.Message {// Deprecated: Use Diagnostics.ProtoReflect.Descriptor instead.func (*Diagnostics) Descriptor() ([]byte, []int) {- return file_copysync_v1_daemon_proto_rawDescGZIP(), []int{29}+ return file_pasteferry_v1_daemon_proto_rawDescGZIP(), []int{29}}func (x *Diagnostics) GetReport() string {@@ -2383,7 +2383,7 @@ type SetVerboseLogRequest struct {func (x *SetVerboseLogRequest) Reset() {*x = SetVerboseLogRequest{}- mi := &file_copysync_v1_daemon_proto_msgTypes[30]+ mi := &file_pasteferry_v1_daemon_proto_msgTypes[30]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -2395,7 +2395,7 @@ func (x *SetVerboseLogRequest) String() string {func (*SetVerboseLogRequest) ProtoMessage() {}func (x *SetVerboseLogRequest) ProtoReflect() protoreflect.Message {- mi := &file_copysync_v1_daemon_proto_msgTypes[30]+ mi := &file_pasteferry_v1_daemon_proto_msgTypes[30]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -2408,7 +2408,7 @@ func (x *SetVerboseLogRequest) ProtoReflect() protoreflect.Message {// Deprecated: Use SetVerboseLogRequest.ProtoReflect.Descriptor instead.func (*SetVerboseLogRequest) Descriptor() ([]byte, []int) {- return file_copysync_v1_daemon_proto_rawDescGZIP(), []int{30}+ return file_pasteferry_v1_daemon_proto_rawDescGZIP(), []int{30}}func (x *SetVerboseLogRequest) GetMinutes() int32 {@@ -2428,7 +2428,7 @@ type GetImagePreviewRequest struct {func (x *GetImagePreviewRequest) Reset() {*x = GetImagePreviewRequest{}- mi := &file_copysync_v1_daemon_proto_msgTypes[31]+ mi := &file_pasteferry_v1_daemon_proto_msgTypes[31]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -2440,7 +2440,7 @@ func (x *GetImagePreviewRequest) String() string {func (*GetImagePreviewRequest) ProtoMessage() {}func (x *GetImagePreviewRequest) ProtoReflect() protoreflect.Message {- mi := &file_copysync_v1_daemon_proto_msgTypes[31]+ mi := &file_pasteferry_v1_daemon_proto_msgTypes[31]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -2453,7 +2453,7 @@ func (x *GetImagePreviewRequest) ProtoReflect() protoreflect.Message {// Deprecated: Use GetImagePreviewRequest.ProtoReflect.Descriptor instead.func (*GetImagePreviewRequest) Descriptor() ([]byte, []int) {- return file_copysync_v1_daemon_proto_rawDescGZIP(), []int{31}+ return file_pasteferry_v1_daemon_proto_rawDescGZIP(), []int{31}}func (x *GetImagePreviewRequest) GetClipId() string {@@ -2481,7 +2481,7 @@ type GetImagePreviewResponse struct {func (x *GetImagePreviewResponse) Reset() {*x = GetImagePreviewResponse{}- mi := &file_copysync_v1_daemon_proto_msgTypes[32]+ mi := &file_pasteferry_v1_daemon_proto_msgTypes[32]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -2493,7 +2493,7 @@ func (x *GetImagePreviewResponse) String() string {func (*GetImagePreviewResponse) ProtoMessage() {}func (x *GetImagePreviewResponse) ProtoReflect() protoreflect.Message {- mi := &file_copysync_v1_daemon_proto_msgTypes[32]+ mi := &file_pasteferry_v1_daemon_proto_msgTypes[32]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -2506,7 +2506,7 @@ func (x *GetImagePreviewResponse) ProtoReflect() protoreflect.Message {// Deprecated: Use GetImagePreviewResponse.ProtoReflect.Descriptor instead.func (*GetImagePreviewResponse) Descriptor() ([]byte, []int) {- return file_copysync_v1_daemon_proto_rawDescGZIP(), []int{32}+ return file_pasteferry_v1_daemon_proto_rawDescGZIP(), []int{32}}func (x *GetImagePreviewResponse) GetPath() string {@@ -2530,26 +2530,26 @@ func (x *GetImagePreviewResponse) GetName() string {return ""}-var File_copysync_v1_daemon_proto protoreflect.FileDescriptor+var File_pasteferry_v1_daemon_proto protoreflect.FileDescriptor-const file_copysync_v1_daemon_proto_rawDesc = "" ++const file_pasteferry_v1_daemon_proto_rawDesc = "" +"\n" +- "\x18copysync/v1/daemon.proto\x12\vcopysync.v1\"\a\n" ++ "\x1apasteferry/v1/daemon.proto\x12\rpasteferry.v1\"\a\n" +"\x05Empty\"l\n" +"\bClipItem\x12\x12\n" +"\x04name\x18\x01 \x01(\tR\x04name\x12\x12\n" +"\x04size\x18\x02 \x01(\x03R\x04size\x12\x15\n" +"\x06is_dir\x18\x03 \x01(\bR\x05isDir\x12!\n" +- "\fcontent_type\x18\x04 \x01(\tR\vcontentType\"\xe2\x03\n" ++ "\fcontent_type\x18\x04 \x01(\tR\vcontentType\"\xe8\x03\n" +"\n" +"ClipRecord\x12\x0e\n" +- "\x02id\x18\x01 \x01(\tR\x02id\x12)\n" +- "\x04kind\x18\x02 \x01(\x0e2\x15.copysync.v1.ClipKindR\x04kind\x12/\n" +- "\x06status\x18\x03 \x01(\x0e2\x17.copysync.v1.ClipStatusR\x06status\x12(\n" ++ "\x02id\x18\x01 \x01(\tR\x02id\x12+\n" ++ "\x04kind\x18\x02 \x01(\x0e2\x17.pasteferry.v1.ClipKindR\x04kind\x121\n" ++ "\x06status\x18\x03 \x01(\x0e2\x19.pasteferry.v1.ClipStatusR\x06status\x12(\n" +"\x10origin_device_id\x18\x04 \x01(\tR\x0eoriginDeviceId\x12,\n" +"\x12origin_device_name\x18\x05 \x01(\tR\x10originDeviceName\x12\x1a\n" +- "\boutgoing\x18\x06 \x01(\bR\boutgoing\x12+\n" +- "\x05items\x18\a \x03(\v2\x15.copysync.v1.ClipItemR\x05items\x12\x1d\n" ++ "\boutgoing\x18\x06 \x01(\bR\boutgoing\x12-\n" ++ "\x05items\x18\a \x03(\v2\x17.pasteferry.v1.ClipItemR\x05items\x12\x1d\n" +"\n" +"total_size\x18\b \x01(\x03R\ttotalSize\x12!\n" +"\ftext_preview\x18\t \x01(\tR\vtextPreview\x12&\n" +@@ -2566,37 +2566,37 @@ const file_copysync_v1_daemon_proto_rawDesc = "" +"\aclip_id\x18\x01 \x01(\tR\x06clipId\x12 \n" +"\vtransferred\x18\x02 \x01(\x03R\vtransferred\x12\x14\n" +"\x05total\x18\x03 \x01(\x03R\x05total\x12(\n" +- "\x10bytes_per_second\x18\x04 \x01(\x01R\x0ebytesPerSecond\"\xa2\x02\n" ++ "\x10bytes_per_second\x18\x04 \x01(\x01R\x0ebytesPerSecond\"\xa4\x02\n" +"\x06Device\x12\x0e\n" +"\x02id\x18\x01 \x01(\tR\x02id\x12\x12\n" +"\x04name\x18\x02 \x01(\tR\x04name\x12\x1a\n" +"\bplatform\x18\x03 \x01(\tR\bplatform\x12\x16\n" +- "\x06online\x18\x04 \x01(\bR\x06online\x12;\n" ++ "\x06online\x18\x04 \x01(\bR\x06online\x12=\n" +"\n" +- "connection\x18\x05 \x01(\x0e2\x1b.copysync.v1.ConnectionKindR\n" ++ "connection\x18\x05 \x01(\x0e2\x1d.pasteferry.v1.ConnectionKindR\n" +"connection\x124\n" +"\x16public_key_fingerprint\x18\x06 \x01(\tR\x14publicKeyFingerprint\x12$\n" +"\x0epaired_at_unix\x18\a \x01(\x03R\fpairedAtUnix\x12'\n" +- "\x0fpairing_session\x18\b \x01(\tR\x0epairingSession\"\xbb\x03\n" +- "\x05Event\x128\n" ++ "\x0fpairing_session\x18\b \x01(\tR\x0epairingSession\"\xc7\x03\n" ++ "\x05Event\x12:\n" +"\n" +- "clip_added\x18\x01 \x01(\v2\x17.copysync.v1.ClipRecordH\x00R\tclipAdded\x12<\n" +- "\fclip_updated\x18\x02 \x01(\v2\x17.copysync.v1.ClipRecordH\x00R\vclipUpdated\x12#\n" +- "\fclip_removed\x18\x03 \x01(\tH\x00R\vclipRemoved\x12;\n" +- "\bprogress\x18\x04 \x01(\v2\x1d.copysync.v1.TransferProgressH\x00R\bprogress\x12<\n" +- "\x0edevice_changed\x18\x05 \x01(\v2\x13.copysync.v1.DeviceH\x00R\rdeviceChanged\x12Q\n" +- "\x12permission_changed\x18\x06 \x01(\x0e2 .copysync.v1.ClipboardPermissionH\x00R\x11permissionChanged\x12<\n" +- "\x0estatus_changed\x18\a \x01(\v2\x13.copysync.v1.StatusH\x00R\rstatusChangedB\t\n" +- "\apayload\"\x99\x01\n" ++ "clip_added\x18\x01 \x01(\v2\x19.pasteferry.v1.ClipRecordH\x00R\tclipAdded\x12>\n" ++ "\fclip_updated\x18\x02 \x01(\v2\x19.pasteferry.v1.ClipRecordH\x00R\vclipUpdated\x12#\n" ++ "\fclip_removed\x18\x03 \x01(\tH\x00R\vclipRemoved\x12=\n" ++ "\bprogress\x18\x04 \x01(\v2\x1f.pasteferry.v1.TransferProgressH\x00R\bprogress\x12>\n" ++ "\x0edevice_changed\x18\x05 \x01(\v2\x15.pasteferry.v1.DeviceH\x00R\rdeviceChanged\x12S\n" ++ "\x12permission_changed\x18\x06 \x01(\x0e2\".pasteferry.v1.ClipboardPermissionH\x00R\x11permissionChanged\x12>\n" ++ "\x0estatus_changed\x18\a \x01(\v2\x15.pasteferry.v1.StatusH\x00R\rstatusChangedB\t\n" ++ "\apayload\"\x9b\x01\n" +"\x12ListHistoryRequest\x12\x14\n" +"\x05limit\x18\x01 \x01(\x05R\x05limit\x12\x1f\n" +"\vbefore_unix\x18\x02 \x01(\x03R\n" +- "beforeUnix\x126\n" +- "\vkind_filter\x18\x03 \x01(\x0e2\x15.copysync.v1.ClipKindR\n" ++ "beforeUnix\x128\n" ++ "\vkind_filter\x18\x03 \x01(\x0e2\x17.pasteferry.v1.ClipKindR\n" +"kindFilter\x12\x14\n" +- "\x05query\x18\x04 \x01(\tR\x05query\"d\n" +- "\x13ListHistoryResponse\x121\n" +- "\arecords\x18\x01 \x03(\v2\x17.copysync.v1.ClipRecordR\arecords\x12\x1a\n" ++ "\x05query\x18\x04 \x01(\tR\x05query\"f\n" ++ "\x13ListHistoryResponse\x123\n" ++ "\arecords\x18\x01 \x03(\v2\x19.pasteferry.v1.ClipRecordR\arecords\x12\x1a\n" +"\bsearched\x18\x02 \x01(\bR\bsearched\":\n" +"\x14DeleteHistoryRequest\x12\x10\n" +"\x03ids\x18\x01 \x03(\tR\x03ids\x12\x10\n" +@@ -2605,19 +2605,19 @@ const file_copysync_v1_daemon_proto_rawDesc = "" +"\aclip_id\x18\x01 \x01(\tR\x06clipId\x12-\n" +"\x12preserve_clipboard\x18\x02 \x01(\bR\x11preserveClipboard\"2\n" +"\x17ApplyToClipboardRequest\x12\x17\n" +- "\aclip_id\x18\x01 \x01(\tR\x06clipId\"i\n" +- "\x13ListDevicesResponse\x12'\n" +- "\x04self\x18\x01 \x01(\v2\x13.copysync.v1.DeviceR\x04self\x12)\n" +- "\x05peers\x18\x02 \x03(\v2\x13.copysync.v1.DeviceR\x05peers\"|\n" ++ "\aclip_id\x18\x01 \x01(\tR\x06clipId\"m\n" ++ "\x13ListDevicesResponse\x12)\n" ++ "\x04self\x18\x01 \x01(\v2\x15.pasteferry.v1.DeviceR\x04self\x12+\n" ++ "\x05peers\x18\x02 \x03(\v2\x15.pasteferry.v1.DeviceR\x05peers\"|\n" +"\x19CreatePairingCodeResponse\x12\x12\n" +"\x04code\x18\x01 \x01(\tR\x04code\x12&\n" +"\x0fexpires_at_unix\x18\x02 \x01(\x03R\rexpiresAtUnix\x12#\n" +"\rlan_addresses\x18\x03 \x03(\tR\flanAddresses\"H\n" +"\x18RedeemPairingCodeRequest\x12\x12\n" +"\x04code\x18\x01 \x01(\tR\x04code\x12\x18\n" +- "\aaddress\x18\x02 \x01(\tR\aaddress\"m\n" +- "\x19RedeemPairingCodeResponse\x12'\n" +- "\x04peer\x18\x01 \x01(\v2\x13.copysync.v1.DeviceR\x04peer\x12'\n" ++ "\aaddress\x18\x02 \x01(\tR\aaddress\"o\n" ++ "\x19RedeemPairingCodeResponse\x12)\n" ++ "\x04peer\x18\x01 \x01(\v2\x15.pasteferry.v1.DeviceR\x04peer\x12'\n" +"\x0fpairing_session\x18\x02 \x01(\tR\x0epairingSession\"X\n" +"\x15ConfirmPairingRequest\x12'\n" +"\x0fpairing_session\x18\x01 \x01(\tR\x0epairingSession\x12\x16\n" +@@ -2626,9 +2626,9 @@ const file_copysync_v1_daemon_proto_rawDesc = "" +"\x02id\x18\x01 \x01(\tR\x02id\x12\x12\n" +"\x04name\x18\x02 \x01(\tR\x04name\x12\x1a\n" +"\bplatform\x18\x03 \x01(\tR\bplatform\x12\x16\n" +- "\x06paired\x18\x04 \x01(\bR\x06paired\"D\n" +- "\rNearbyDevices\x123\n" +- "\adevices\x18\x01 \x03(\v2\x19.copysync.v1.NearbyDeviceR\adevices\"#\n" ++ "\x06paired\x18\x04 \x01(\bR\x06paired\"F\n" ++ "\rNearbyDevices\x125\n" ++ "\adevices\x18\x01 \x03(\v2\x1b.pasteferry.v1.NearbyDeviceR\adevices\"#\n" +"\x11PairNearbyRequest\x12\x0e\n" +"\x02id\x18\x01 \x01(\tR\x02id\",\n" +"\rUnpairRequest\x12\x1b\n" +@@ -2653,23 +2653,23 @@ const file_copysync_v1_daemon_proto_rawDesc = "" +"\rsignaling_url\x18\v \x01(\tR\fsignalingUrl\x12\"\n" +"\ronly_own_stun\x18\f \x01(\bR\vonlyOwnStun\x12\x1a\n" +"\blanguage\x18\r \x01(\tR\blanguage\x12!\n" +- "\flan_disabled\x18\x0e \x01(\bR\vlanDisabled\"\xe6\x01\n" ++ "\flan_disabled\x18\x0e \x01(\bR\vlanDisabled\"\xea\x01\n" +"\vNetworkInfo\x12\x1d\n" +"\n" +- "local_port\x18\x01 \x01(\x05R\tlocalPort\x126\n" +- "\begresses\x18\x02 \x03(\v2\x1a.copysync.v1.NetworkEgressR\begresses\x12\x16\n" ++ "local_port\x18\x01 \x01(\x05R\tlocalPort\x128\n" ++ "\begresses\x18\x02 \x03(\v2\x1c.pasteferry.v1.NetworkEgressR\begresses\x12\x16\n" +"\x06probed\x18\x03 \x01(\x05R\x06probed\x12\x1a\n" +"\banswered\x18\x04 \x01(\x05R\banswered\x12$\n" +- "\x0eprobed_at_unix\x18\x05 \x01(\x03R\fprobedAtUnix\x12&\n" +- "\x03lan\x18\x06 \x01(\v2\x14.copysync.v1.LanInfoR\x03lan\"\xc6\x01\n" ++ "\x0eprobed_at_unix\x18\x05 \x01(\x03R\fprobedAtUnix\x12(\n" ++ "\x03lan\x18\x06 \x01(\v2\x16.pasteferry.v1.LanInfoR\x03lan\"\xc8\x01\n" +"\aLanInfo\x12\x18\n" +"\aenabled\x18\x01 \x01(\bR\aenabled\x12\x12\n" +"\x04port\x18\x02 \x01(\x05R\x04port\x12'\n" +"\x0flocal_addresses\x18\x03 \x03(\tR\x0elocalAddresses\x12\x1e\n" +"\n" +"discovered\x18\x04 \x01(\x05R\n" +- "discovered\x12*\n" +- "\x05peers\x18\x05 \x03(\v2\x14.copysync.v1.LanPeerR\x05peers\x12\x18\n" ++ "discovered\x12,\n" ++ "\x05peers\x18\x05 \x03(\v2\x16.pasteferry.v1.LanPeerR\x05peers\x12\x18\n" +"\ablocked\x18\x06 \x01(\bR\ablocked\"\xce\x01\n" +"\aLanPeer\x12\x1b\n" +"\tdevice_id\x18\x01 \x01(\tR\bdeviceId\x12\x1f\n" +@@ -2683,13 +2683,13 @@ const file_copysync_v1_daemon_proto_rawDesc = "" +"\aaddress\x18\x01 \x01(\tR\aaddress\x12%\n" +"\x0eport_preserved\x18\x02 \x01(\bR\rportPreserved\x12\x18\n" +"\aguessed\x18\x03 \x01(\bR\aguessed\x12\x10\n" +- "\x03via\x18\x04 \x03(\tR\x03via\"\xd7\x03\n" ++ "\x03via\x18\x04 \x03(\tR\x03via\"\xd9\x03\n" +"\x06Status\x12\x1b\n" +"\tdevice_id\x18\x01 \x01(\tR\bdeviceId\x12\x1f\n" +"\vdevice_name\x18\x02 \x01(\tR\n" +"deviceName\x12/\n" +- "\x13signaling_connected\x18\x03 \x01(\bR\x12signalingConnected\x12S\n" +- "\x14clipboard_permission\x18\x04 \x01(\x0e2 .copysync.v1.ClipboardPermissionR\x13clipboardPermission\x12(\n" ++ "\x13signaling_connected\x18\x03 \x01(\bR\x12signalingConnected\x12U\n" ++ "\x14clipboard_permission\x18\x04 \x01(\x0e2\".pasteferry.v1.ClipboardPermissionR\x13clipboardPermission\x12(\n" +"\x10cache_bytes_used\x18\x05 \x01(\x03R\x0ecacheBytesUsed\x12!\n" +"\fpeers_online\x18\x06 \x01(\x05R\vpeersOnline\x12\x18\n" +"\aversion\x18\a \x01(\tR\aversion\x12+\n" +@@ -2740,151 +2740,151 @@ const file_copysync_v1_daemon_proto_rawDesc = "" +"\x1cCLIPBOARD_PERMISSION_DEFAULT\x10\x02\x12\x1c\n" +"\x18CLIPBOARD_PERMISSION_ASK\x10\x03\x12%\n" +"!CLIPBOARD_PERMISSION_ALWAYS_ALLOW\x10\x04\x12$\n" +- " CLIPBOARD_PERMISSION_ALWAYS_DENY\x10\x052\xc2\f\n" +- "\rDaemonService\x12@\n" +- "\tSubscribe\x12\x1d.copysync.v1.SubscribeRequest\x1a\x12.copysync.v1.Event0\x01\x12P\n" +- "\vListHistory\x12\x1f.copysync.v1.ListHistoryRequest\x1a .copysync.v1.ListHistoryResponse\x12F\n" +- "\rDeleteHistory\x12!.copysync.v1.DeleteHistoryRequest\x1a\x12.copysync.v1.Empty\x126\n" +- "\x05Fetch\x12\x19.copysync.v1.FetchRequest\x1a\x12.copysync.v1.Empty\x12L\n" +- "\x10ApplyToClipboard\x12$.copysync.v1.ApplyToClipboardRequest\x1a\x12.copysync.v1.Empty\x12\\\n" +- "\x0fGetImagePreview\x12#.copysync.v1.GetImagePreviewRequest\x1a$.copysync.v1.GetImagePreviewResponse\x12C\n" +- "\vListDevices\x12\x12.copysync.v1.Empty\x1a .copysync.v1.ListDevicesResponse\x12O\n" +- "\x11CreatePairingCode\x12\x12.copysync.v1.Empty\x1a&.copysync.v1.CreatePairingCodeResponse\x12b\n" +- "\x11RedeemPairingCode\x12%.copysync.v1.RedeemPairingCodeRequest\x1a&.copysync.v1.RedeemPairingCodeResponse\x12H\n" +- "\x0eConfirmPairing\x12\".copysync.v1.ConfirmPairingRequest\x1a\x12.copysync.v1.Empty\x128\n" +- "\x06Unpair\x12\x1a.copysync.v1.UnpairRequest\x1a\x12.copysync.v1.Empty\x12L\n" +- "\x10SetDeviceAddress\x12$.copysync.v1.SetDeviceAddressRequest\x1a\x12.copysync.v1.Empty\x12?\n" +- "\vWatchNearby\x12\x12.copysync.v1.Empty\x1a\x1a.copysync.v1.NearbyDevices0\x01\x12T\n" ++ " CLIPBOARD_PERMISSION_ALWAYS_DENY\x10\x052\x9a\r\n" ++ "\rDaemonService\x12D\n" ++ "\tSubscribe\x12\x1f.pasteferry.v1.SubscribeRequest\x1a\x14.pasteferry.v1.Event0\x01\x12T\n" ++ "\vListHistory\x12!.pasteferry.v1.ListHistoryRequest\x1a\".pasteferry.v1.ListHistoryResponse\x12J\n" ++ "\rDeleteHistory\x12#.pasteferry.v1.DeleteHistoryRequest\x1a\x14.pasteferry.v1.Empty\x12:\n" ++ "\x05Fetch\x12\x1b.pasteferry.v1.FetchRequest\x1a\x14.pasteferry.v1.Empty\x12P\n" ++ "\x10ApplyToClipboard\x12&.pasteferry.v1.ApplyToClipboardRequest\x1a\x14.pasteferry.v1.Empty\x12`\n" ++ "\x0fGetImagePreview\x12%.pasteferry.v1.GetImagePreviewRequest\x1a&.pasteferry.v1.GetImagePreviewResponse\x12G\n" ++ "\vListDevices\x12\x14.pasteferry.v1.Empty\x1a\".pasteferry.v1.ListDevicesResponse\x12S\n" ++ "\x11CreatePairingCode\x12\x14.pasteferry.v1.Empty\x1a(.pasteferry.v1.CreatePairingCodeResponse\x12f\n" ++ "\x11RedeemPairingCode\x12'.pasteferry.v1.RedeemPairingCodeRequest\x1a(.pasteferry.v1.RedeemPairingCodeResponse\x12L\n" ++ "\x0eConfirmPairing\x12$.pasteferry.v1.ConfirmPairingRequest\x1a\x14.pasteferry.v1.Empty\x12<\n" ++ "\x06Unpair\x12\x1c.pasteferry.v1.UnpairRequest\x1a\x14.pasteferry.v1.Empty\x12P\n" ++ "\x10SetDeviceAddress\x12&.pasteferry.v1.SetDeviceAddressRequest\x1a\x14.pasteferry.v1.Empty\x12C\n" ++ "\vWatchNearby\x12\x14.pasteferry.v1.Empty\x1a\x1c.pasteferry.v1.NearbyDevices0\x01\x12X\n" +"\n" +- "PairNearby\x12\x1e.copysync.v1.PairNearbyRequest\x1a&.copysync.v1.RedeemPairingCodeResponse\x124\n" +- "\tGetConfig\x12\x12.copysync.v1.Empty\x1a\x13.copysync.v1.Config\x128\n" +- "\fUpdateConfig\x12\x13.copysync.v1.Config\x1a\x13.copysync.v1.Config\x124\n" +- "\tGetStatus\x12\x12.copysync.v1.Empty\x1a\x13.copysync.v1.Status\x12D\n" +- "\x1aRequestClipboardPermission\x12\x12.copysync.v1.Empty\x1a\x12.copysync.v1.Empty\x12G\n" +- "\x1dRequestLocalNetworkPermission\x12\x12.copysync.v1.Empty\x1a\x12.copysync.v1.Empty\x12:\n" ++ "PairNearby\x12 .pasteferry.v1.PairNearbyRequest\x1a(.pasteferry.v1.RedeemPairingCodeResponse\x128\n" ++ "\tGetConfig\x12\x14.pasteferry.v1.Empty\x1a\x15.pasteferry.v1.Config\x12<\n" ++ "\fUpdateConfig\x12\x15.pasteferry.v1.Config\x1a\x15.pasteferry.v1.Config\x128\n" ++ "\tGetStatus\x12\x14.pasteferry.v1.Empty\x1a\x15.pasteferry.v1.Status\x12H\n" ++ "\x1aRequestClipboardPermission\x12\x14.pasteferry.v1.Empty\x1a\x14.pasteferry.v1.Empty\x12K\n" ++ "\x1dRequestLocalNetworkPermission\x12\x14.pasteferry.v1.Empty\x1a\x14.pasteferry.v1.Empty\x12>\n" +"\n" +- "GetNetwork\x12\x12.copysync.v1.Empty\x1a\x18.copysync.v1.NetworkInfo\x12T\n" +- "\x11ExportDiagnostics\x12%.copysync.v1.ExportDiagnosticsRequest\x1a\x18.copysync.v1.Diagnostics\x12G\n" +- "\rSetVerboseLog\x12!.copysync.v1.SetVerboseLogRequest\x1a\x13.copysync.v1.StatusB>Z<github.com/baiyuze/copysync/proto/gen/copysync/v1;copysyncv1b\x06proto3"+ "GetNetwork\x12\x14.pasteferry.v1.Empty\x1a\x1a.pasteferry.v1.NetworkInfo\x12X\n" ++ "\x11ExportDiagnostics\x12'.pasteferry.v1.ExportDiagnosticsRequest\x1a\x1a.pasteferry.v1.Diagnostics\x12K\n" ++ "\rSetVerboseLog\x12#.pasteferry.v1.SetVerboseLogRequest\x1a\x15.pasteferry.v1.StatusBDZBgithub.com/baiyuze/pasteferry/proto/gen/pasteferry/v1;pasteferryv1b\x06proto3"var (- file_copysync_v1_daemon_proto_rawDescOnce sync.Once- file_copysync_v1_daemon_proto_rawDescData []byte+ file_pasteferry_v1_daemon_proto_rawDescOnce sync.Once+ file_pasteferry_v1_daemon_proto_rawDescData []byte)-func file_copysync_v1_daemon_proto_rawDescGZIP() []byte {- file_copysync_v1_daemon_proto_rawDescOnce.Do(func() {- file_copysync_v1_daemon_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_copysync_v1_daemon_proto_rawDesc), len(file_copysync_v1_daemon_proto_rawDesc)))+func file_pasteferry_v1_daemon_proto_rawDescGZIP() []byte {+ file_pasteferry_v1_daemon_proto_rawDescOnce.Do(func() {+ file_pasteferry_v1_daemon_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_pasteferry_v1_daemon_proto_rawDesc), len(file_pasteferry_v1_daemon_proto_rawDesc)))})- return file_copysync_v1_daemon_proto_rawDescData-}--var file_copysync_v1_daemon_proto_enumTypes = make([]protoimpl.EnumInfo, 4)-var file_copysync_v1_daemon_proto_msgTypes = make([]protoimpl.MessageInfo, 33)-var file_copysync_v1_daemon_proto_goTypes = []any{- (ClipKind)(0), // 0: copysync.v1.ClipKind- (ClipStatus)(0), // 1: copysync.v1.ClipStatus- (ConnectionKind)(0), // 2: copysync.v1.ConnectionKind- (ClipboardPermission)(0), // 3: copysync.v1.ClipboardPermission- (*Empty)(nil), // 4: copysync.v1.Empty- (*ClipItem)(nil), // 5: copysync.v1.ClipItem- (*ClipRecord)(nil), // 6: copysync.v1.ClipRecord- (*SubscribeRequest)(nil), // 7: copysync.v1.SubscribeRequest- (*TransferProgress)(nil), // 8: copysync.v1.TransferProgress- (*Device)(nil), // 9: copysync.v1.Device- (*Event)(nil), // 10: copysync.v1.Event- (*ListHistoryRequest)(nil), // 11: copysync.v1.ListHistoryRequest- (*ListHistoryResponse)(nil), // 12: copysync.v1.ListHistoryResponse- (*DeleteHistoryRequest)(nil), // 13: copysync.v1.DeleteHistoryRequest- (*FetchRequest)(nil), // 14: copysync.v1.FetchRequest- (*ApplyToClipboardRequest)(nil), // 15: copysync.v1.ApplyToClipboardRequest- (*ListDevicesResponse)(nil), // 16: copysync.v1.ListDevicesResponse- (*CreatePairingCodeResponse)(nil), // 17: copysync.v1.CreatePairingCodeResponse- (*RedeemPairingCodeRequest)(nil), // 18: copysync.v1.RedeemPairingCodeRequest- (*RedeemPairingCodeResponse)(nil), // 19: copysync.v1.RedeemPairingCodeResponse- (*ConfirmPairingRequest)(nil), // 20: copysync.v1.ConfirmPairingRequest- (*NearbyDevice)(nil), // 21: copysync.v1.NearbyDevice- (*NearbyDevices)(nil), // 22: copysync.v1.NearbyDevices- (*PairNearbyRequest)(nil), // 23: copysync.v1.PairNearbyRequest- (*UnpairRequest)(nil), // 24: copysync.v1.UnpairRequest- (*SetDeviceAddressRequest)(nil), // 25: copysync.v1.SetDeviceAddressRequest- (*Config)(nil), // 26: copysync.v1.Config- (*NetworkInfo)(nil), // 27: copysync.v1.NetworkInfo- (*LanInfo)(nil), // 28: copysync.v1.LanInfo- (*LanPeer)(nil), // 29: copysync.v1.LanPeer- (*NetworkEgress)(nil), // 30: copysync.v1.NetworkEgress- (*Status)(nil), // 31: copysync.v1.Status- (*ExportDiagnosticsRequest)(nil), // 32: copysync.v1.ExportDiagnosticsRequest- (*Diagnostics)(nil), // 33: copysync.v1.Diagnostics- (*SetVerboseLogRequest)(nil), // 34: copysync.v1.SetVerboseLogRequest- (*GetImagePreviewRequest)(nil), // 35: copysync.v1.GetImagePreviewRequest- (*GetImagePreviewResponse)(nil), // 36: copysync.v1.GetImagePreviewResponse-}-var file_copysync_v1_daemon_proto_depIdxs = []int32{- 0, // 0: copysync.v1.ClipRecord.kind:type_name -> copysync.v1.ClipKind- 1, // 1: copysync.v1.ClipRecord.status:type_name -> copysync.v1.ClipStatus- 5, // 2: copysync.v1.ClipRecord.items:type_name -> copysync.v1.ClipItem- 2, // 3: copysync.v1.Device.connection:type_name -> copysync.v1.ConnectionKind- 6, // 4: copysync.v1.Event.clip_added:type_name -> copysync.v1.ClipRecord- 6, // 5: copysync.v1.Event.clip_updated:type_name -> copysync.v1.ClipRecord- 8, // 6: copysync.v1.Event.progress:type_name -> copysync.v1.TransferProgress- 9, // 7: copysync.v1.Event.device_changed:type_name -> copysync.v1.Device- 3, // 8: copysync.v1.Event.permission_changed:type_name -> copysync.v1.ClipboardPermission- 31, // 9: copysync.v1.Event.status_changed:type_name -> copysync.v1.Status- 0, // 10: copysync.v1.ListHistoryRequest.kind_filter:type_name -> copysync.v1.ClipKind- 6, // 11: copysync.v1.ListHistoryResponse.records:type_name -> copysync.v1.ClipRecord- 9, // 12: copysync.v1.ListDevicesResponse.self:type_name -> copysync.v1.Device- 9, // 13: copysync.v1.ListDevicesResponse.peers:type_name -> copysync.v1.Device- 9, // 14: copysync.v1.RedeemPairingCodeResponse.peer:type_name -> copysync.v1.Device- 21, // 15: copysync.v1.NearbyDevices.devices:type_name -> copysync.v1.NearbyDevice- 30, // 16: copysync.v1.NetworkInfo.egresses:type_name -> copysync.v1.NetworkEgress- 28, // 17: copysync.v1.NetworkInfo.lan:type_name -> copysync.v1.LanInfo- 29, // 18: copysync.v1.LanInfo.peers:type_name -> copysync.v1.LanPeer- 3, // 19: copysync.v1.Status.clipboard_permission:type_name -> copysync.v1.ClipboardPermission- 7, // 20: copysync.v1.DaemonService.Subscribe:input_type -> copysync.v1.SubscribeRequest- 11, // 21: copysync.v1.DaemonService.ListHistory:input_type -> copysync.v1.ListHistoryRequest- 13, // 22: copysync.v1.DaemonService.DeleteHistory:input_type -> copysync.v1.DeleteHistoryRequest- 14, // 23: copysync.v1.DaemonService.Fetch:input_type -> copysync.v1.FetchRequest- 15, // 24: copysync.v1.DaemonService.ApplyToClipboard:input_type -> copysync.v1.ApplyToClipboardRequest- 35, // 25: copysync.v1.DaemonService.GetImagePreview:input_type -> copysync.v1.GetImagePreviewRequest- 4, // 26: copysync.v1.DaemonService.ListDevices:input_type -> copysync.v1.Empty- 4, // 27: copysync.v1.DaemonService.CreatePairingCode:input_type -> copysync.v1.Empty- 18, // 28: copysync.v1.DaemonService.RedeemPairingCode:input_type -> copysync.v1.RedeemPairingCodeRequest- 20, // 29: copysync.v1.DaemonService.ConfirmPairing:input_type -> copysync.v1.ConfirmPairingRequest- 24, // 30: copysync.v1.DaemonService.Unpair:input_type -> copysync.v1.UnpairRequest- 25, // 31: copysync.v1.DaemonService.SetDeviceAddress:input_type -> copysync.v1.SetDeviceAddressRequest- 4, // 32: copysync.v1.DaemonService.WatchNearby:input_type -> copysync.v1.Empty- 23, // 33: copysync.v1.DaemonService.PairNearby:input_type -> copysync.v1.PairNearbyRequest- 4, // 34: copysync.v1.DaemonService.GetConfig:input_type -> copysync.v1.Empty- 26, // 35: copysync.v1.DaemonService.UpdateConfig:input_type -> copysync.v1.Config- 4, // 36: copysync.v1.DaemonService.GetStatus:input_type -> copysync.v1.Empty- 4, // 37: copysync.v1.DaemonService.RequestClipboardPermission:input_type -> copysync.v1.Empty- 4, // 38: copysync.v1.DaemonService.RequestLocalNetworkPermission:input_type -> copysync.v1.Empty- 4, // 39: copysync.v1.DaemonService.GetNetwork:input_type -> copysync.v1.Empty- 32, // 40: copysync.v1.DaemonService.ExportDiagnostics:input_type -> copysync.v1.ExportDiagnosticsRequest- 34, // 41: copysync.v1.DaemonService.SetVerboseLog:input_type -> copysync.v1.SetVerboseLogRequest- 10, // 42: copysync.v1.DaemonService.Subscribe:output_type -> copysync.v1.Event- 12, // 43: copysync.v1.DaemonService.ListHistory:output_type -> copysync.v1.ListHistoryResponse- 4, // 44: copysync.v1.DaemonService.DeleteHistory:output_type -> copysync.v1.Empty- 4, // 45: copysync.v1.DaemonService.Fetch:output_type -> copysync.v1.Empty- 4, // 46: copysync.v1.DaemonService.ApplyToClipboard:output_type -> copysync.v1.Empty- 36, // 47: copysync.v1.DaemonService.GetImagePreview:output_type -> copysync.v1.GetImagePreviewResponse- 16, // 48: copysync.v1.DaemonService.ListDevices:output_type -> copysync.v1.ListDevicesResponse- 17, // 49: copysync.v1.DaemonService.CreatePairingCode:output_type -> copysync.v1.CreatePairingCodeResponse- 19, // 50: copysync.v1.DaemonService.RedeemPairingCode:output_type -> copysync.v1.RedeemPairingCodeResponse- 4, // 51: copysync.v1.DaemonService.ConfirmPairing:output_type -> copysync.v1.Empty- 4, // 52: copysync.v1.DaemonService.Unpair:output_type -> copysync.v1.Empty- 4, // 53: copysync.v1.DaemonService.SetDeviceAddress:output_type -> copysync.v1.Empty- 22, // 54: copysync.v1.DaemonService.WatchNearby:output_type -> copysync.v1.NearbyDevices- 19, // 55: copysync.v1.DaemonService.PairNearby:output_type -> copysync.v1.RedeemPairingCodeResponse- 26, // 56: copysync.v1.DaemonService.GetConfig:output_type -> copysync.v1.Config- 26, // 57: copysync.v1.DaemonService.UpdateConfig:output_type -> copysync.v1.Config- 31, // 58: copysync.v1.DaemonService.GetStatus:output_type -> copysync.v1.Status- 4, // 59: copysync.v1.DaemonService.RequestClipboardPermission:output_type -> copysync.v1.Empty- 4, // 60: copysync.v1.DaemonService.RequestLocalNetworkPermission:output_type -> copysync.v1.Empty- 27, // 61: copysync.v1.DaemonService.GetNetwork:output_type -> copysync.v1.NetworkInfo- 33, // 62: copysync.v1.DaemonService.ExportDiagnostics:output_type -> copysync.v1.Diagnostics- 31, // 63: copysync.v1.DaemonService.SetVerboseLog:output_type -> copysync.v1.Status+ return file_pasteferry_v1_daemon_proto_rawDescData+}++var file_pasteferry_v1_daemon_proto_enumTypes = make([]protoimpl.EnumInfo, 4)+var file_pasteferry_v1_daemon_proto_msgTypes = make([]protoimpl.MessageInfo, 33)+var file_pasteferry_v1_daemon_proto_goTypes = []any{+ (ClipKind)(0), // 0: pasteferry.v1.ClipKind+ (ClipStatus)(0), // 1: pasteferry.v1.ClipStatus+ (ConnectionKind)(0), // 2: pasteferry.v1.ConnectionKind+ (ClipboardPermission)(0), // 3: pasteferry.v1.ClipboardPermission+ (*Empty)(nil), // 4: pasteferry.v1.Empty+ (*ClipItem)(nil), // 5: pasteferry.v1.ClipItem+ (*ClipRecord)(nil), // 6: pasteferry.v1.ClipRecord+ (*SubscribeRequest)(nil), // 7: pasteferry.v1.SubscribeRequest+ (*TransferProgress)(nil), // 8: pasteferry.v1.TransferProgress+ (*Device)(nil), // 9: pasteferry.v1.Device+ (*Event)(nil), // 10: pasteferry.v1.Event+ (*ListHistoryRequest)(nil), // 11: pasteferry.v1.ListHistoryRequest+ (*ListHistoryResponse)(nil), // 12: pasteferry.v1.ListHistoryResponse+ (*DeleteHistoryRequest)(nil), // 13: pasteferry.v1.DeleteHistoryRequest+ (*FetchRequest)(nil), // 14: pasteferry.v1.FetchRequest+ (*ApplyToClipboardRequest)(nil), // 15: pasteferry.v1.ApplyToClipboardRequest+ (*ListDevicesResponse)(nil), // 16: pasteferry.v1.ListDevicesResponse+ (*CreatePairingCodeResponse)(nil), // 17: pasteferry.v1.CreatePairingCodeResponse+ (*RedeemPairingCodeRequest)(nil), // 18: pasteferry.v1.RedeemPairingCodeRequest+ (*RedeemPairingCodeResponse)(nil), // 19: pasteferry.v1.RedeemPairingCodeResponse+ (*ConfirmPairingRequest)(nil), // 20: pasteferry.v1.ConfirmPairingRequest+ (*NearbyDevice)(nil), // 21: pasteferry.v1.NearbyDevice+ (*NearbyDevices)(nil), // 22: pasteferry.v1.NearbyDevices+ (*PairNearbyRequest)(nil), // 23: pasteferry.v1.PairNearbyRequest+ (*UnpairRequest)(nil), // 24: pasteferry.v1.UnpairRequest+ (*SetDeviceAddressRequest)(nil), // 25: pasteferry.v1.SetDeviceAddressRequest+ (*Config)(nil), // 26: pasteferry.v1.Config+ (*NetworkInfo)(nil), // 27: pasteferry.v1.NetworkInfo+ (*LanInfo)(nil), // 28: pasteferry.v1.LanInfo+ (*LanPeer)(nil), // 29: pasteferry.v1.LanPeer+ (*NetworkEgress)(nil), // 30: pasteferry.v1.NetworkEgress+ (*Status)(nil), // 31: pasteferry.v1.Status+ (*ExportDiagnosticsRequest)(nil), // 32: pasteferry.v1.ExportDiagnosticsRequest+ (*Diagnostics)(nil), // 33: pasteferry.v1.Diagnostics+ (*SetVerboseLogRequest)(nil), // 34: pasteferry.v1.SetVerboseLogRequest+ (*GetImagePreviewRequest)(nil), // 35: pasteferry.v1.GetImagePreviewRequest+ (*GetImagePreviewResponse)(nil), // 36: pasteferry.v1.GetImagePreviewResponse+}+var file_pasteferry_v1_daemon_proto_depIdxs = []int32{+ 0, // 0: pasteferry.v1.ClipRecord.kind:type_name -> pasteferry.v1.ClipKind+ 1, // 1: pasteferry.v1.ClipRecord.status:type_name -> pasteferry.v1.ClipStatus+ 5, // 2: pasteferry.v1.ClipRecord.items:type_name -> pasteferry.v1.ClipItem+ 2, // 3: pasteferry.v1.Device.connection:type_name -> pasteferry.v1.ConnectionKind+ 6, // 4: pasteferry.v1.Event.clip_added:type_name -> pasteferry.v1.ClipRecord+ 6, // 5: pasteferry.v1.Event.clip_updated:type_name -> pasteferry.v1.ClipRecord+ 8, // 6: pasteferry.v1.Event.progress:type_name -> pasteferry.v1.TransferProgress+ 9, // 7: pasteferry.v1.Event.device_changed:type_name -> pasteferry.v1.Device+ 3, // 8: pasteferry.v1.Event.permission_changed:type_name -> pasteferry.v1.ClipboardPermission+ 31, // 9: pasteferry.v1.Event.status_changed:type_name -> pasteferry.v1.Status+ 0, // 10: pasteferry.v1.ListHistoryRequest.kind_filter:type_name -> pasteferry.v1.ClipKind+ 6, // 11: pasteferry.v1.ListHistoryResponse.records:type_name -> pasteferry.v1.ClipRecord+ 9, // 12: pasteferry.v1.ListDevicesResponse.self:type_name -> pasteferry.v1.Device+ 9, // 13: pasteferry.v1.ListDevicesResponse.peers:type_name -> pasteferry.v1.Device+ 9, // 14: pasteferry.v1.RedeemPairingCodeResponse.peer:type_name -> pasteferry.v1.Device+ 21, // 15: pasteferry.v1.NearbyDevices.devices:type_name -> pasteferry.v1.NearbyDevice+ 30, // 16: pasteferry.v1.NetworkInfo.egresses:type_name -> pasteferry.v1.NetworkEgress+ 28, // 17: pasteferry.v1.NetworkInfo.lan:type_name -> pasteferry.v1.LanInfo+ 29, // 18: pasteferry.v1.LanInfo.peers:type_name -> pasteferry.v1.LanPeer+ 3, // 19: pasteferry.v1.Status.clipboard_permission:type_name -> pasteferry.v1.ClipboardPermission+ 7, // 20: pasteferry.v1.DaemonService.Subscribe:input_type -> pasteferry.v1.SubscribeRequest+ 11, // 21: pasteferry.v1.DaemonService.ListHistory:input_type -> pasteferry.v1.ListHistoryRequest+ 13, // 22: pasteferry.v1.DaemonService.DeleteHistory:input_type -> pasteferry.v1.DeleteHistoryRequest+ 14, // 23: pasteferry.v1.DaemonService.Fetch:input_type -> pasteferry.v1.FetchRequest+ 15, // 24: pasteferry.v1.DaemonService.ApplyToClipboard:input_type -> pasteferry.v1.ApplyToClipboardRequest+ 35, // 25: pasteferry.v1.DaemonService.GetImagePreview:input_type -> pasteferry.v1.GetImagePreviewRequest+ 4, // 26: pasteferry.v1.DaemonService.ListDevices:input_type -> pasteferry.v1.Empty+ 4, // 27: pasteferry.v1.DaemonService.CreatePairingCode:input_type -> pasteferry.v1.Empty+ 18, // 28: pasteferry.v1.DaemonService.RedeemPairingCode:input_type -> pasteferry.v1.RedeemPairingCodeRequest+ 20, // 29: pasteferry.v1.DaemonService.ConfirmPairing:input_type -> pasteferry.v1.ConfirmPairingRequest+ 24, // 30: pasteferry.v1.DaemonService.Unpair:input_type -> pasteferry.v1.UnpairRequest+ 25, // 31: pasteferry.v1.DaemonService.SetDeviceAddress:input_type -> pasteferry.v1.SetDeviceAddressRequest+ 4, // 32: pasteferry.v1.DaemonService.WatchNearby:input_type -> pasteferry.v1.Empty+ 23, // 33: pasteferry.v1.DaemonService.PairNearby:input_type -> pasteferry.v1.PairNearbyRequest+ 4, // 34: pasteferry.v1.DaemonService.GetConfig:input_type -> pasteferry.v1.Empty+ 26, // 35: pasteferry.v1.DaemonService.UpdateConfig:input_type -> pasteferry.v1.Config+ 4, // 36: pasteferry.v1.DaemonService.GetStatus:input_type -> pasteferry.v1.Empty+ 4, // 37: pasteferry.v1.DaemonService.RequestClipboardPermission:input_type -> pasteferry.v1.Empty+ 4, // 38: pasteferry.v1.DaemonService.RequestLocalNetworkPermission:input_type -> pasteferry.v1.Empty+ 4, // 39: pasteferry.v1.DaemonService.GetNetwork:input_type -> pasteferry.v1.Empty+ 32, // 40: pasteferry.v1.DaemonService.ExportDiagnostics:input_type -> pasteferry.v1.ExportDiagnosticsRequest+ 34, // 41: pasteferry.v1.DaemonService.SetVerboseLog:input_type -> pasteferry.v1.SetVerboseLogRequest+ 10, // 42: pasteferry.v1.DaemonService.Subscribe:output_type -> pasteferry.v1.Event+ 12, // 43: pasteferry.v1.DaemonService.ListHistory:output_type -> pasteferry.v1.ListHistoryResponse+ 4, // 44: pasteferry.v1.DaemonService.DeleteHistory:output_type -> pasteferry.v1.Empty+ 4, // 45: pasteferry.v1.DaemonService.Fetch:output_type -> pasteferry.v1.Empty+ 4, // 46: pasteferry.v1.DaemonService.ApplyToClipboard:output_type -> pasteferry.v1.Empty+ 36, // 47: pasteferry.v1.DaemonService.GetImagePreview:output_type -> pasteferry.v1.GetImagePreviewResponse+ 16, // 48: pasteferry.v1.DaemonService.ListDevices:output_type -> pasteferry.v1.ListDevicesResponse+ 17, // 49: pasteferry.v1.DaemonService.CreatePairingCode:output_type -> pasteferry.v1.CreatePairingCodeResponse+ 19, // 50: pasteferry.v1.DaemonService.RedeemPairingCode:output_type -> pasteferry.v1.RedeemPairingCodeResponse+ 4, // 51: pasteferry.v1.DaemonService.ConfirmPairing:output_type -> pasteferry.v1.Empty+ 4, // 52: pasteferry.v1.DaemonService.Unpair:output_type -> pasteferry.v1.Empty+ 4, // 53: pasteferry.v1.DaemonService.SetDeviceAddress:output_type -> pasteferry.v1.Empty+ 22, // 54: pasteferry.v1.DaemonService.WatchNearby:output_type -> pasteferry.v1.NearbyDevices+ 19, // 55: pasteferry.v1.DaemonService.PairNearby:output_type -> pasteferry.v1.RedeemPairingCodeResponse+ 26, // 56: pasteferry.v1.DaemonService.GetConfig:output_type -> pasteferry.v1.Config+ 26, // 57: pasteferry.v1.DaemonService.UpdateConfig:output_type -> pasteferry.v1.Config+ 31, // 58: pasteferry.v1.DaemonService.GetStatus:output_type -> pasteferry.v1.Status+ 4, // 59: pasteferry.v1.DaemonService.RequestClipboardPermission:output_type -> pasteferry.v1.Empty+ 4, // 60: pasteferry.v1.DaemonService.RequestLocalNetworkPermission:output_type -> pasteferry.v1.Empty+ 27, // 61: pasteferry.v1.DaemonService.GetNetwork:output_type -> pasteferry.v1.NetworkInfo+ 33, // 62: pasteferry.v1.DaemonService.ExportDiagnostics:output_type -> pasteferry.v1.Diagnostics+ 31, // 63: pasteferry.v1.DaemonService.SetVerboseLog:output_type -> pasteferry.v1.Status42, // [42:64] is the sub-list for method output_type20, // [20:42] is the sub-list for method input_type20, // [20:20] is the sub-list for extension type_name@@ -2892,12 +2892,12 @@ var file_copysync_v1_daemon_proto_depIdxs = []int32{0, // [0:20] is the sub-list for field type_name}-func init() { file_copysync_v1_daemon_proto_init() }-func file_copysync_v1_daemon_proto_init() {- if File_copysync_v1_daemon_proto != nil {+func init() { file_pasteferry_v1_daemon_proto_init() }+func file_pasteferry_v1_daemon_proto_init() {+ if File_pasteferry_v1_daemon_proto != nil {return}- file_copysync_v1_daemon_proto_msgTypes[6].OneofWrappers = []any{+ file_pasteferry_v1_daemon_proto_msgTypes[6].OneofWrappers = []any{(*Event_ClipAdded)(nil),(*Event_ClipUpdated)(nil),(*Event_ClipRemoved)(nil),@@ -2910,18 +2910,18 @@ func file_copysync_v1_daemon_proto_init() {out := protoimpl.TypeBuilder{File: protoimpl.DescBuilder{GoPackagePath: reflect.TypeOf(x{}).PkgPath(),- RawDescriptor: unsafe.Slice(unsafe.StringData(file_copysync_v1_daemon_proto_rawDesc), len(file_copysync_v1_daemon_proto_rawDesc)),+ RawDescriptor: unsafe.Slice(unsafe.StringData(file_pasteferry_v1_daemon_proto_rawDesc), len(file_pasteferry_v1_daemon_proto_rawDesc)),NumEnums: 4,NumMessages: 33,NumExtensions: 0,NumServices: 1,},- GoTypes: file_copysync_v1_daemon_proto_goTypes,- DependencyIndexes: file_copysync_v1_daemon_proto_depIdxs,- EnumInfos: file_copysync_v1_daemon_proto_enumTypes,- MessageInfos: file_copysync_v1_daemon_proto_msgTypes,+ GoTypes: file_pasteferry_v1_daemon_proto_goTypes,+ DependencyIndexes: file_pasteferry_v1_daemon_proto_depIdxs,+ EnumInfos: file_pasteferry_v1_daemon_proto_enumTypes,+ MessageInfos: file_pasteferry_v1_daemon_proto_msgTypes,}.Build()- File_copysync_v1_daemon_proto = out.File- file_copysync_v1_daemon_proto_goTypes = nil- file_copysync_v1_daemon_proto_depIdxs = nil+ File_pasteferry_v1_daemon_proto = out.File+ file_pasteferry_v1_daemon_proto_goTypes = nil+ file_pasteferry_v1_daemon_proto_depIdxs = nil}diff --git a/proto/gen/copysync/v1/daemon_grpc.pb.go b/proto/gen/pasteferry/v1/daemon_grpc.pb.gosimilarity index 97%rename from proto/gen/copysync/v1/daemon_grpc.pb.gorename to proto/gen/pasteferry/v1/daemon_grpc.pb.goindex 18ca84c..07fa0a1 100644--- a/proto/gen/copysync/v1/daemon_grpc.pb.go+++ b/proto/gen/pasteferry/v1/daemon_grpc.pb.go@@ -7,9 +7,9 @@// versions:// - protoc-gen-go-grpc v1.6.2// - protoc (unknown)-// source: copysync/v1/daemon.proto+// source: pasteferry/v1/daemon.proto-package copysyncv1+package pasteferryv1import (context "context"@@ -24,28 +24,28 @@ import (const _ = grpc.SupportPackageIsVersion9const (- DaemonService_Subscribe_FullMethodName = "/copysync.v1.DaemonService/Subscribe"- DaemonService_ListHistory_FullMethodName = "/copysync.v1.DaemonService/ListHistory"- DaemonService_DeleteHistory_FullMethodName = "/copysync.v1.DaemonService/DeleteHistory"- DaemonService_Fetch_FullMethodName = "/copysync.v1.DaemonService/Fetch"- DaemonService_ApplyToClipboard_FullMethodName = "/copysync.v1.DaemonService/ApplyToClipboard"- DaemonService_GetImagePreview_FullMethodName = "/copysync.v1.DaemonService/GetImagePreview"- DaemonService_ListDevices_FullMethodName = "/copysync.v1.DaemonService/ListDevices"- DaemonService_CreatePairingCode_FullMethodName = "/copysync.v1.DaemonService/CreatePairingCode"- DaemonService_RedeemPairingCode_FullMethodName = "/copysync.v1.DaemonService/RedeemPairingCode"- DaemonService_ConfirmPairing_FullMethodName = "/copysync.v1.DaemonService/ConfirmPairing"- DaemonService_Unpair_FullMethodName = "/copysync.v1.DaemonService/Unpair"- DaemonService_SetDeviceAddress_FullMethodName = "/copysync.v1.DaemonService/SetDeviceAddress"- DaemonService_WatchNearby_FullMethodName = "/copysync.v1.DaemonService/WatchNearby"- DaemonService_PairNearby_FullMethodName = "/copysync.v1.DaemonService/PairNearby"- DaemonService_GetConfig_FullMethodName = "/copysync.v1.DaemonService/GetConfig"- DaemonService_UpdateConfig_FullMethodName = "/copysync.v1.DaemonService/UpdateConfig"- DaemonService_GetStatus_FullMethodName = "/copysync.v1.DaemonService/GetStatus"- DaemonService_RequestClipboardPermission_FullMethodName = "/copysync.v1.DaemonService/RequestClipboardPermission"- DaemonService_RequestLocalNetworkPermission_FullMethodName = "/copysync.v1.DaemonService/RequestLocalNetworkPermission"- DaemonService_GetNetwork_FullMethodName = "/copysync.v1.DaemonService/GetNetwork"- DaemonService_ExportDiagnostics_FullMethodName = "/copysync.v1.DaemonService/ExportDiagnostics"- DaemonService_SetVerboseLog_FullMethodName = "/copysync.v1.DaemonService/SetVerboseLog"+ DaemonService_Subscribe_FullMethodName = "/pasteferry.v1.DaemonService/Subscribe"+ DaemonService_ListHistory_FullMethodName = "/pasteferry.v1.DaemonService/ListHistory"+ DaemonService_DeleteHistory_FullMethodName = "/pasteferry.v1.DaemonService/DeleteHistory"+ DaemonService_Fetch_FullMethodName = "/pasteferry.v1.DaemonService/Fetch"+ DaemonService_ApplyToClipboard_FullMethodName = "/pasteferry.v1.DaemonService/ApplyToClipboard"+ DaemonService_GetImagePreview_FullMethodName = "/pasteferry.v1.DaemonService/GetImagePreview"+ DaemonService_ListDevices_FullMethodName = "/pasteferry.v1.DaemonService/ListDevices"+ DaemonService_CreatePairingCode_FullMethodName = "/pasteferry.v1.DaemonService/CreatePairingCode"+ DaemonService_RedeemPairingCode_FullMethodName = "/pasteferry.v1.DaemonService/RedeemPairingCode"+ DaemonService_ConfirmPairing_FullMethodName = "/pasteferry.v1.DaemonService/ConfirmPairing"+ DaemonService_Unpair_FullMethodName = "/pasteferry.v1.DaemonService/Unpair"+ DaemonService_SetDeviceAddress_FullMethodName = "/pasteferry.v1.DaemonService/SetDeviceAddress"+ DaemonService_WatchNearby_FullMethodName = "/pasteferry.v1.DaemonService/WatchNearby"+ DaemonService_PairNearby_FullMethodName = "/pasteferry.v1.DaemonService/PairNearby"+ DaemonService_GetConfig_FullMethodName = "/pasteferry.v1.DaemonService/GetConfig"+ DaemonService_UpdateConfig_FullMethodName = "/pasteferry.v1.DaemonService/UpdateConfig"+ DaemonService_GetStatus_FullMethodName = "/pasteferry.v1.DaemonService/GetStatus"+ DaemonService_RequestClipboardPermission_FullMethodName = "/pasteferry.v1.DaemonService/RequestClipboardPermission"+ DaemonService_RequestLocalNetworkPermission_FullMethodName = "/pasteferry.v1.DaemonService/RequestLocalNetworkPermission"+ DaemonService_GetNetwork_FullMethodName = "/pasteferry.v1.DaemonService/GetNetwork"+ DaemonService_ExportDiagnostics_FullMethodName = "/pasteferry.v1.DaemonService/ExportDiagnostics"+ DaemonService_SetVerboseLog_FullMethodName = "/pasteferry.v1.DaemonService/SetVerboseLog")// DaemonServiceClient is the client API for DaemonService service.@@ -83,7 +83,7 @@ type DaemonServiceClient interface {// 让系统放行局域网访问:macOS 打开「本地网络」设置面板;// Windows 申请管理员权限,在防火墙里放行后台服务。其他平台返回 UNIMPLEMENTED。RequestLocalNetworkPermission(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Empty, error)- // 网络出口与打洞诊断:本机有几个出口、各自的公网地址,见 copysync-cli nat+ // 网络出口与打洞诊断:本机有几个出口、各自的公网地址,见 pasteferry-cli natGetNetwork(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*NetworkInfo, error)// 反馈问题用的诊断报告:版本、系统、设置、设备与网络状态、最近的日志。// 设备名、服务器地址、公网 IP、用户目录、文件名已换成占位符,用户看过后自己贴进 issue@@ -373,7 +373,7 @@ type DaemonServiceServer interface {// 让系统放行局域网访问:macOS 打开「本地网络」设置面板;// Windows 申请管理员权限,在防火墙里放行后台服务。其他平台返回 UNIMPLEMENTED。RequestLocalNetworkPermission(context.Context, *Empty) (*Empty, error)- // 网络出口与打洞诊断:本机有几个出口、各自的公网地址,见 copysync-cli nat+ // 网络出口与打洞诊断:本机有几个出口、各自的公网地址,见 pasteferry-cli natGetNetwork(context.Context, *Empty) (*NetworkInfo, error)// 反馈问题用的诊断报告:版本、系统、设置、设备与网络状态、最近的日志。// 设备名、服务器地址、公网 IP、用户目录、文件名已换成占位符,用户看过后自己贴进 issue@@ -863,7 +863,7 @@ func _DaemonService_SetVerboseLog_Handler(srv interface{}, ctx context.Context,// It's only intended for direct use with grpc.RegisterService,// and not to be introspected or modified (even as a copy)var DaemonService_ServiceDesc = grpc.ServiceDesc{- ServiceName: "copysync.v1.DaemonService",+ ServiceName: "pasteferry.v1.DaemonService",HandlerType: (*DaemonServiceServer)(nil),Methods: []grpc.MethodDesc{{@@ -959,5 +959,5 @@ var DaemonService_ServiceDesc = grpc.ServiceDesc{ServerStreams: true,},},- Metadata: "copysync/v1/daemon.proto",+ Metadata: "pasteferry/v1/daemon.proto",}diff --git a/proto/gen/copysync/v1/wire.pb.go b/proto/gen/pasteferry/v1/wire.pb.gosimilarity index 80%rename from proto/gen/copysync/v1/wire.pb.gorename to proto/gen/pasteferry/v1/wire.pb.goindex f4cdf3c..b046b87 100644--- a/proto/gen/copysync/v1/wire.pb.go+++ b/proto/gen/pasteferry/v1/wire.pb.go@@ -9,9 +9,9 @@// versions:// protoc-gen-go v1.36.12// protoc (unknown)-// source: copysync/v1/wire.proto+// source: pasteferry/v1/wire.proto-package copysyncv1+package pasteferryv1import (protoreflect "google.golang.org/protobuf/reflect/protoreflect"@@ -61,11 +61,11 @@ func (x Compression) String() string {}func (Compression) Descriptor() protoreflect.EnumDescriptor {- return file_copysync_v1_wire_proto_enumTypes[0].Descriptor()+ return file_pasteferry_v1_wire_proto_enumTypes[0].Descriptor()}func (Compression) Type() protoreflect.EnumType {- return &file_copysync_v1_wire_proto_enumTypes[0]+ return &file_pasteferry_v1_wire_proto_enumTypes[0]}func (x Compression) Number() protoreflect.EnumNumber {@@ -74,7 +74,7 @@ func (x Compression) Number() protoreflect.EnumNumber {// Deprecated: Use Compression.Descriptor instead.func (Compression) EnumDescriptor() ([]byte, []int) {- return file_copysync_v1_wire_proto_rawDescGZIP(), []int{0}+ return file_pasteferry_v1_wire_proto_rawDescGZIP(), []int{0}}type Packaging int32@@ -110,11 +110,11 @@ func (x Packaging) String() string {}func (Packaging) Descriptor() protoreflect.EnumDescriptor {- return file_copysync_v1_wire_proto_enumTypes[1].Descriptor()+ return file_pasteferry_v1_wire_proto_enumTypes[1].Descriptor()}func (Packaging) Type() protoreflect.EnumType {- return &file_copysync_v1_wire_proto_enumTypes[1]+ return &file_pasteferry_v1_wire_proto_enumTypes[1]}func (x Packaging) Number() protoreflect.EnumNumber {@@ -123,7 +123,7 @@ func (x Packaging) Number() protoreflect.EnumNumber {// Deprecated: Use Packaging.Descriptor instead.func (Packaging) EnumDescriptor() ([]byte, []int) {- return file_copysync_v1_wire_proto_rawDescGZIP(), []int{1}+ return file_pasteferry_v1_wire_proto_rawDescGZIP(), []int{1}}// 经服务器转发的消息一律包一层签名。接收方用配对时存下的@@ -139,7 +139,7 @@ type Signed struct {func (x *Signed) Reset() {*x = Signed{}- mi := &file_copysync_v1_wire_proto_msgTypes[0]+ mi := &file_pasteferry_v1_wire_proto_msgTypes[0]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -151,7 +151,7 @@ func (x *Signed) String() string {func (*Signed) ProtoMessage() {}func (x *Signed) ProtoReflect() protoreflect.Message {- mi := &file_copysync_v1_wire_proto_msgTypes[0]+ mi := &file_pasteferry_v1_wire_proto_msgTypes[0]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -164,7 +164,7 @@ func (x *Signed) ProtoReflect() protoreflect.Message {// Deprecated: Use Signed.ProtoReflect.Descriptor instead.func (*Signed) Descriptor() ([]byte, []int) {- return file_copysync_v1_wire_proto_rawDescGZIP(), []int{0}+ return file_pasteferry_v1_wire_proto_rawDescGZIP(), []int{0}}func (x *Signed) GetPayload() []byte {@@ -209,7 +209,7 @@ type SignalMessage struct {func (x *SignalMessage) Reset() {*x = SignalMessage{}- mi := &file_copysync_v1_wire_proto_msgTypes[1]+ mi := &file_pasteferry_v1_wire_proto_msgTypes[1]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -221,7 +221,7 @@ func (x *SignalMessage) String() string {func (*SignalMessage) ProtoMessage() {}func (x *SignalMessage) ProtoReflect() protoreflect.Message {- mi := &file_copysync_v1_wire_proto_msgTypes[1]+ mi := &file_pasteferry_v1_wire_proto_msgTypes[1]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -234,7 +234,7 @@ func (x *SignalMessage) ProtoReflect() protoreflect.Message {// Deprecated: Use SignalMessage.ProtoReflect.Descriptor instead.func (*SignalMessage) Descriptor() ([]byte, []int) {- return file_copysync_v1_wire_proto_rawDescGZIP(), []int{1}+ return file_pasteferry_v1_wire_proto_rawDescGZIP(), []int{1}}func (x *SignalMessage) GetTimestampUnix() int64 {@@ -360,7 +360,7 @@ type SdpOffer struct {func (x *SdpOffer) Reset() {*x = SdpOffer{}- mi := &file_copysync_v1_wire_proto_msgTypes[2]+ mi := &file_pasteferry_v1_wire_proto_msgTypes[2]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -372,7 +372,7 @@ func (x *SdpOffer) String() string {func (*SdpOffer) ProtoMessage() {}func (x *SdpOffer) ProtoReflect() protoreflect.Message {- mi := &file_copysync_v1_wire_proto_msgTypes[2]+ mi := &file_pasteferry_v1_wire_proto_msgTypes[2]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -385,7 +385,7 @@ func (x *SdpOffer) ProtoReflect() protoreflect.Message {// Deprecated: Use SdpOffer.ProtoReflect.Descriptor instead.func (*SdpOffer) Descriptor() ([]byte, []int) {- return file_copysync_v1_wire_proto_rawDescGZIP(), []int{2}+ return file_pasteferry_v1_wire_proto_rawDescGZIP(), []int{2}}func (x *SdpOffer) GetSdp() string {@@ -419,7 +419,7 @@ type SdpAnswer struct {func (x *SdpAnswer) Reset() {*x = SdpAnswer{}- mi := &file_copysync_v1_wire_proto_msgTypes[3]+ mi := &file_pasteferry_v1_wire_proto_msgTypes[3]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -431,7 +431,7 @@ func (x *SdpAnswer) String() string {func (*SdpAnswer) ProtoMessage() {}func (x *SdpAnswer) ProtoReflect() protoreflect.Message {- mi := &file_copysync_v1_wire_proto_msgTypes[3]+ mi := &file_pasteferry_v1_wire_proto_msgTypes[3]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -444,7 +444,7 @@ func (x *SdpAnswer) ProtoReflect() protoreflect.Message {// Deprecated: Use SdpAnswer.ProtoReflect.Descriptor instead.func (*SdpAnswer) Descriptor() ([]byte, []int) {- return file_copysync_v1_wire_proto_rawDescGZIP(), []int{3}+ return file_pasteferry_v1_wire_proto_rawDescGZIP(), []int{3}}func (x *SdpAnswer) GetSdp() string {@@ -472,7 +472,7 @@ type IceCandidate struct {func (x *IceCandidate) Reset() {*x = IceCandidate{}- mi := &file_copysync_v1_wire_proto_msgTypes[4]+ mi := &file_pasteferry_v1_wire_proto_msgTypes[4]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -484,7 +484,7 @@ func (x *IceCandidate) String() string {func (*IceCandidate) ProtoMessage() {}func (x *IceCandidate) ProtoReflect() protoreflect.Message {- mi := &file_copysync_v1_wire_proto_msgTypes[4]+ mi := &file_pasteferry_v1_wire_proto_msgTypes[4]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -497,7 +497,7 @@ func (x *IceCandidate) ProtoReflect() protoreflect.Message {// Deprecated: Use IceCandidate.ProtoReflect.Descriptor instead.func (*IceCandidate) Descriptor() ([]byte, []int) {- return file_copysync_v1_wire_proto_rawDescGZIP(), []int{4}+ return file_pasteferry_v1_wire_proto_rawDescGZIP(), []int{4}}func (x *IceCandidate) GetCandidate() string {@@ -530,7 +530,7 @@ type Ping struct {func (x *Ping) Reset() {*x = Ping{}- mi := &file_copysync_v1_wire_proto_msgTypes[5]+ mi := &file_pasteferry_v1_wire_proto_msgTypes[5]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -542,7 +542,7 @@ func (x *Ping) String() string {func (*Ping) ProtoMessage() {}func (x *Ping) ProtoReflect() protoreflect.Message {- mi := &file_copysync_v1_wire_proto_msgTypes[5]+ mi := &file_pasteferry_v1_wire_proto_msgTypes[5]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -555,7 +555,7 @@ func (x *Ping) ProtoReflect() protoreflect.Message {// Deprecated: Use Ping.ProtoReflect.Descriptor instead.func (*Ping) Descriptor() ([]byte, []int) {- return file_copysync_v1_wire_proto_rawDescGZIP(), []int{5}+ return file_pasteferry_v1_wire_proto_rawDescGZIP(), []int{5}}func (x *Ping) GetSentAtUnix() int64 {@@ -579,7 +579,7 @@ type ClientHello struct {func (x *ClientHello) Reset() {*x = ClientHello{}- mi := &file_copysync_v1_wire_proto_msgTypes[6]+ mi := &file_pasteferry_v1_wire_proto_msgTypes[6]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -591,7 +591,7 @@ func (x *ClientHello) String() string {func (*ClientHello) ProtoMessage() {}func (x *ClientHello) ProtoReflect() protoreflect.Message {- mi := &file_copysync_v1_wire_proto_msgTypes[6]+ mi := &file_pasteferry_v1_wire_proto_msgTypes[6]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -604,7 +604,7 @@ func (x *ClientHello) ProtoReflect() protoreflect.Message {// Deprecated: Use ClientHello.ProtoReflect.Descriptor instead.func (*ClientHello) Descriptor() ([]byte, []int) {- return file_copysync_v1_wire_proto_rawDescGZIP(), []int{6}+ return file_pasteferry_v1_wire_proto_rawDescGZIP(), []int{6}}func (x *ClientHello) GetDeviceId() string {@@ -660,7 +660,7 @@ type ServerHello struct {func (x *ServerHello) Reset() {*x = ServerHello{}- mi := &file_copysync_v1_wire_proto_msgTypes[7]+ mi := &file_pasteferry_v1_wire_proto_msgTypes[7]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -672,7 +672,7 @@ func (x *ServerHello) String() string {func (*ServerHello) ProtoMessage() {}func (x *ServerHello) ProtoReflect() protoreflect.Message {- mi := &file_copysync_v1_wire_proto_msgTypes[7]+ mi := &file_pasteferry_v1_wire_proto_msgTypes[7]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -685,7 +685,7 @@ func (x *ServerHello) ProtoReflect() protoreflect.Message {// Deprecated: Use ServerHello.ProtoReflect.Descriptor instead.func (*ServerHello) Descriptor() ([]byte, []int) {- return file_copysync_v1_wire_proto_rawDescGZIP(), []int{7}+ return file_pasteferry_v1_wire_proto_rawDescGZIP(), []int{7}}func (x *ServerHello) GetChallenge() []byte {@@ -721,7 +721,7 @@ type IceServer struct {func (x *IceServer) Reset() {*x = IceServer{}- mi := &file_copysync_v1_wire_proto_msgTypes[8]+ mi := &file_pasteferry_v1_wire_proto_msgTypes[8]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -733,7 +733,7 @@ func (x *IceServer) String() string {func (*IceServer) ProtoMessage() {}func (x *IceServer) ProtoReflect() protoreflect.Message {- mi := &file_copysync_v1_wire_proto_msgTypes[8]+ mi := &file_pasteferry_v1_wire_proto_msgTypes[8]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -746,7 +746,7 @@ func (x *IceServer) ProtoReflect() protoreflect.Message {// Deprecated: Use IceServer.ProtoReflect.Descriptor instead.func (*IceServer) Descriptor() ([]byte, []int) {- return file_copysync_v1_wire_proto_rawDescGZIP(), []int{8}+ return file_pasteferry_v1_wire_proto_rawDescGZIP(), []int{8}}func (x *IceServer) GetUrls() []string {@@ -787,7 +787,7 @@ type PeerPresence struct {func (x *PeerPresence) Reset() {*x = PeerPresence{}- mi := &file_copysync_v1_wire_proto_msgTypes[9]+ mi := &file_pasteferry_v1_wire_proto_msgTypes[9]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -799,7 +799,7 @@ func (x *PeerPresence) String() string {func (*PeerPresence) ProtoMessage() {}func (x *PeerPresence) ProtoReflect() protoreflect.Message {- mi := &file_copysync_v1_wire_proto_msgTypes[9]+ mi := &file_pasteferry_v1_wire_proto_msgTypes[9]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -812,7 +812,7 @@ func (x *PeerPresence) ProtoReflect() protoreflect.Message {// Deprecated: Use PeerPresence.ProtoReflect.Descriptor instead.func (*PeerPresence) Descriptor() ([]byte, []int) {- return file_copysync_v1_wire_proto_rawDescGZIP(), []int{9}+ return file_pasteferry_v1_wire_proto_rawDescGZIP(), []int{9}}func (x *PeerPresence) GetDeviceId() string {@@ -839,7 +839,7 @@ type PairingCreateRequest struct {func (x *PairingCreateRequest) Reset() {*x = PairingCreateRequest{}- mi := &file_copysync_v1_wire_proto_msgTypes[10]+ mi := &file_pasteferry_v1_wire_proto_msgTypes[10]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -851,7 +851,7 @@ func (x *PairingCreateRequest) String() string {func (*PairingCreateRequest) ProtoMessage() {}func (x *PairingCreateRequest) ProtoReflect() protoreflect.Message {- mi := &file_copysync_v1_wire_proto_msgTypes[10]+ mi := &file_pasteferry_v1_wire_proto_msgTypes[10]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -864,7 +864,7 @@ func (x *PairingCreateRequest) ProtoReflect() protoreflect.Message {// Deprecated: Use PairingCreateRequest.ProtoReflect.Descriptor instead.func (*PairingCreateRequest) Descriptor() ([]byte, []int) {- return file_copysync_v1_wire_proto_rawDescGZIP(), []int{10}+ return file_pasteferry_v1_wire_proto_rawDescGZIP(), []int{10}}func (x *PairingCreateRequest) GetDeviceName() string {@@ -891,7 +891,7 @@ type PairingCreateResponse struct {func (x *PairingCreateResponse) Reset() {*x = PairingCreateResponse{}- mi := &file_copysync_v1_wire_proto_msgTypes[11]+ mi := &file_pasteferry_v1_wire_proto_msgTypes[11]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -903,7 +903,7 @@ func (x *PairingCreateResponse) String() string {func (*PairingCreateResponse) ProtoMessage() {}func (x *PairingCreateResponse) ProtoReflect() protoreflect.Message {- mi := &file_copysync_v1_wire_proto_msgTypes[11]+ mi := &file_pasteferry_v1_wire_proto_msgTypes[11]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -916,7 +916,7 @@ func (x *PairingCreateResponse) ProtoReflect() protoreflect.Message {// Deprecated: Use PairingCreateResponse.ProtoReflect.Descriptor instead.func (*PairingCreateResponse) Descriptor() ([]byte, []int) {- return file_copysync_v1_wire_proto_rawDescGZIP(), []int{11}+ return file_pasteferry_v1_wire_proto_rawDescGZIP(), []int{11}}func (x *PairingCreateResponse) GetCode() string {@@ -945,7 +945,7 @@ type PairingRedeemRequest struct {func (x *PairingRedeemRequest) Reset() {*x = PairingRedeemRequest{}- mi := &file_copysync_v1_wire_proto_msgTypes[12]+ mi := &file_pasteferry_v1_wire_proto_msgTypes[12]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -957,7 +957,7 @@ func (x *PairingRedeemRequest) String() string {func (*PairingRedeemRequest) ProtoMessage() {}func (x *PairingRedeemRequest) ProtoReflect() protoreflect.Message {- mi := &file_copysync_v1_wire_proto_msgTypes[12]+ mi := &file_pasteferry_v1_wire_proto_msgTypes[12]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -970,7 +970,7 @@ func (x *PairingRedeemRequest) ProtoReflect() protoreflect.Message {// Deprecated: Use PairingRedeemRequest.ProtoReflect.Descriptor instead.func (*PairingRedeemRequest) Descriptor() ([]byte, []int) {- return file_copysync_v1_wire_proto_rawDescGZIP(), []int{12}+ return file_pasteferry_v1_wire_proto_rawDescGZIP(), []int{12}}func (x *PairingRedeemRequest) GetCode() string {@@ -1013,7 +1013,7 @@ type PairingRedeemResponse struct {func (x *PairingRedeemResponse) Reset() {*x = PairingRedeemResponse{}- mi := &file_copysync_v1_wire_proto_msgTypes[13]+ mi := &file_pasteferry_v1_wire_proto_msgTypes[13]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -1025,7 +1025,7 @@ func (x *PairingRedeemResponse) String() string {func (*PairingRedeemResponse) ProtoMessage() {}func (x *PairingRedeemResponse) ProtoReflect() protoreflect.Message {- mi := &file_copysync_v1_wire_proto_msgTypes[13]+ mi := &file_pasteferry_v1_wire_proto_msgTypes[13]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -1038,7 +1038,7 @@ func (x *PairingRedeemResponse) ProtoReflect() protoreflect.Message {// Deprecated: Use PairingRedeemResponse.ProtoReflect.Descriptor instead.func (*PairingRedeemResponse) Descriptor() ([]byte, []int) {- return file_copysync_v1_wire_proto_rawDescGZIP(), []int{13}+ return file_pasteferry_v1_wire_proto_rawDescGZIP(), []int{13}}func (x *PairingRedeemResponse) GetPeerDeviceId() string {@@ -1082,7 +1082,7 @@ type PairingRedeemed struct {func (x *PairingRedeemed) Reset() {*x = PairingRedeemed{}- mi := &file_copysync_v1_wire_proto_msgTypes[14]+ mi := &file_pasteferry_v1_wire_proto_msgTypes[14]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -1094,7 +1094,7 @@ func (x *PairingRedeemed) String() string {func (*PairingRedeemed) ProtoMessage() {}func (x *PairingRedeemed) ProtoReflect() protoreflect.Message {- mi := &file_copysync_v1_wire_proto_msgTypes[14]+ mi := &file_pasteferry_v1_wire_proto_msgTypes[14]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -1107,7 +1107,7 @@ func (x *PairingRedeemed) ProtoReflect() protoreflect.Message {// Deprecated: Use PairingRedeemed.ProtoReflect.Descriptor instead.func (*PairingRedeemed) Descriptor() ([]byte, []int) {- return file_copysync_v1_wire_proto_rawDescGZIP(), []int{14}+ return file_pasteferry_v1_wire_proto_rawDescGZIP(), []int{14}}func (x *PairingRedeemed) GetPeerDeviceId() string {@@ -1149,7 +1149,7 @@ type IceConfig struct {func (x *IceConfig) Reset() {*x = IceConfig{}- mi := &file_copysync_v1_wire_proto_msgTypes[15]+ mi := &file_pasteferry_v1_wire_proto_msgTypes[15]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -1161,7 +1161,7 @@ func (x *IceConfig) String() string {func (*IceConfig) ProtoMessage() {}func (x *IceConfig) ProtoReflect() protoreflect.Message {- mi := &file_copysync_v1_wire_proto_msgTypes[15]+ mi := &file_pasteferry_v1_wire_proto_msgTypes[15]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -1174,7 +1174,7 @@ func (x *IceConfig) ProtoReflect() protoreflect.Message {// Deprecated: Use IceConfig.ProtoReflect.Descriptor instead.func (*IceConfig) Descriptor() ([]byte, []int) {- return file_copysync_v1_wire_proto_rawDescGZIP(), []int{15}+ return file_pasteferry_v1_wire_proto_rawDescGZIP(), []int{15}}func (x *IceConfig) GetIceServers() []*IceServer {@@ -1204,7 +1204,7 @@ type ServerEnvelope struct {func (x *ServerEnvelope) Reset() {*x = ServerEnvelope{}- mi := &file_copysync_v1_wire_proto_msgTypes[16]+ mi := &file_pasteferry_v1_wire_proto_msgTypes[16]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -1216,7 +1216,7 @@ func (x *ServerEnvelope) String() string {func (*ServerEnvelope) ProtoMessage() {}func (x *ServerEnvelope) ProtoReflect() protoreflect.Message {- mi := &file_copysync_v1_wire_proto_msgTypes[16]+ mi := &file_pasteferry_v1_wire_proto_msgTypes[16]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -1229,7 +1229,7 @@ func (x *ServerEnvelope) ProtoReflect() protoreflect.Message {// Deprecated: Use ServerEnvelope.ProtoReflect.Descriptor instead.func (*ServerEnvelope) Descriptor() ([]byte, []int) {- return file_copysync_v1_wire_proto_rawDescGZIP(), []int{16}+ return file_pasteferry_v1_wire_proto_rawDescGZIP(), []int{16}}func (x *ServerEnvelope) GetPayload() isServerEnvelope_Payload {@@ -1378,7 +1378,7 @@ type ClientEnvelope struct {func (x *ClientEnvelope) Reset() {*x = ClientEnvelope{}- mi := &file_copysync_v1_wire_proto_msgTypes[17]+ mi := &file_pasteferry_v1_wire_proto_msgTypes[17]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -1390,7 +1390,7 @@ func (x *ClientEnvelope) String() string {func (*ClientEnvelope) ProtoMessage() {}func (x *ClientEnvelope) ProtoReflect() protoreflect.Message {- mi := &file_copysync_v1_wire_proto_msgTypes[17]+ mi := &file_pasteferry_v1_wire_proto_msgTypes[17]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -1403,7 +1403,7 @@ func (x *ClientEnvelope) ProtoReflect() protoreflect.Message {// Deprecated: Use ClientEnvelope.ProtoReflect.Descriptor instead.func (*ClientEnvelope) Descriptor() ([]byte, []int) {- return file_copysync_v1_wire_proto_rawDescGZIP(), []int{17}+ return file_pasteferry_v1_wire_proto_rawDescGZIP(), []int{17}}func (x *ClientEnvelope) GetPayload() isClientEnvelope_Payload {@@ -1487,7 +1487,7 @@ type ServerError struct {func (x *ServerError) Reset() {*x = ServerError{}- mi := &file_copysync_v1_wire_proto_msgTypes[18]+ mi := &file_pasteferry_v1_wire_proto_msgTypes[18]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -1499,7 +1499,7 @@ func (x *ServerError) String() string {func (*ServerError) ProtoMessage() {}func (x *ServerError) ProtoReflect() protoreflect.Message {- mi := &file_copysync_v1_wire_proto_msgTypes[18]+ mi := &file_pasteferry_v1_wire_proto_msgTypes[18]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -1512,7 +1512,7 @@ func (x *ServerError) ProtoReflect() protoreflect.Message {// Deprecated: Use ServerError.ProtoReflect.Descriptor instead.func (*ServerError) Descriptor() ([]byte, []int) {- return file_copysync_v1_wire_proto_rawDescGZIP(), []int{18}+ return file_pasteferry_v1_wire_proto_rawDescGZIP(), []int{18}}func (x *ServerError) GetCode() string {@@ -1546,7 +1546,7 @@ type LanPacket struct {func (x *LanPacket) Reset() {*x = LanPacket{}- mi := &file_copysync_v1_wire_proto_msgTypes[19]+ mi := &file_pasteferry_v1_wire_proto_msgTypes[19]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -1558,7 +1558,7 @@ func (x *LanPacket) String() string {func (*LanPacket) ProtoMessage() {}func (x *LanPacket) ProtoReflect() protoreflect.Message {- mi := &file_copysync_v1_wire_proto_msgTypes[19]+ mi := &file_pasteferry_v1_wire_proto_msgTypes[19]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -1571,7 +1571,7 @@ func (x *LanPacket) ProtoReflect() protoreflect.Message {// Deprecated: Use LanPacket.ProtoReflect.Descriptor instead.func (*LanPacket) Descriptor() ([]byte, []int) {- return file_copysync_v1_wire_proto_rawDescGZIP(), []int{19}+ return file_pasteferry_v1_wire_proto_rawDescGZIP(), []int{19}}func (x *LanPacket) GetPayload() isLanPacket_Payload {@@ -1691,7 +1691,7 @@ type LanHello struct {func (x *LanHello) Reset() {*x = LanHello{}- mi := &file_copysync_v1_wire_proto_msgTypes[20]+ mi := &file_pasteferry_v1_wire_proto_msgTypes[20]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -1703,7 +1703,7 @@ func (x *LanHello) String() string {func (*LanHello) ProtoMessage() {}func (x *LanHello) ProtoReflect() protoreflect.Message {- mi := &file_copysync_v1_wire_proto_msgTypes[20]+ mi := &file_pasteferry_v1_wire_proto_msgTypes[20]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -1716,7 +1716,7 @@ func (x *LanHello) ProtoReflect() protoreflect.Message {// Deprecated: Use LanHello.ProtoReflect.Descriptor instead.func (*LanHello) Descriptor() ([]byte, []int) {- return file_copysync_v1_wire_proto_rawDescGZIP(), []int{20}+ return file_pasteferry_v1_wire_proto_rawDescGZIP(), []int{20}}func (x *LanHello) GetAddresses() []string {@@ -1758,7 +1758,7 @@ type LanPairSigned struct {func (x *LanPairSigned) Reset() {*x = LanPairSigned{}- mi := &file_copysync_v1_wire_proto_msgTypes[21]+ mi := &file_pasteferry_v1_wire_proto_msgTypes[21]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -1770,7 +1770,7 @@ func (x *LanPairSigned) String() string {func (*LanPairSigned) ProtoMessage() {}func (x *LanPairSigned) ProtoReflect() protoreflect.Message {- mi := &file_copysync_v1_wire_proto_msgTypes[21]+ mi := &file_pasteferry_v1_wire_proto_msgTypes[21]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -1783,7 +1783,7 @@ func (x *LanPairSigned) ProtoReflect() protoreflect.Message {// Deprecated: Use LanPairSigned.ProtoReflect.Descriptor instead.func (*LanPairSigned) Descriptor() ([]byte, []int) {- return file_copysync_v1_wire_proto_rawDescGZIP(), []int{21}+ return file_pasteferry_v1_wire_proto_rawDescGZIP(), []int{21}}func (x *LanPairSigned) GetPayload() []byte {@@ -1817,7 +1817,7 @@ type LanPairInfo struct {func (x *LanPairInfo) Reset() {*x = LanPairInfo{}- mi := &file_copysync_v1_wire_proto_msgTypes[22]+ mi := &file_pasteferry_v1_wire_proto_msgTypes[22]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -1829,7 +1829,7 @@ func (x *LanPairInfo) String() string {func (*LanPairInfo) ProtoMessage() {}func (x *LanPairInfo) ProtoReflect() protoreflect.Message {- mi := &file_copysync_v1_wire_proto_msgTypes[22]+ mi := &file_pasteferry_v1_wire_proto_msgTypes[22]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -1842,7 +1842,7 @@ func (x *LanPairInfo) ProtoReflect() protoreflect.Message {// Deprecated: Use LanPairInfo.ProtoReflect.Descriptor instead.func (*LanPairInfo) Descriptor() ([]byte, []int) {- return file_copysync_v1_wire_proto_rawDescGZIP(), []int{22}+ return file_pasteferry_v1_wire_proto_rawDescGZIP(), []int{22}}func (x *LanPairInfo) GetCode() string {@@ -1918,7 +1918,7 @@ type LanPairReject struct {func (x *LanPairReject) Reset() {*x = LanPairReject{}- mi := &file_copysync_v1_wire_proto_msgTypes[23]+ mi := &file_pasteferry_v1_wire_proto_msgTypes[23]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -1930,7 +1930,7 @@ func (x *LanPairReject) String() string {func (*LanPairReject) ProtoMessage() {}func (x *LanPairReject) ProtoReflect() protoreflect.Message {- mi := &file_copysync_v1_wire_proto_msgTypes[23]+ mi := &file_pasteferry_v1_wire_proto_msgTypes[23]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -1943,7 +1943,7 @@ func (x *LanPairReject) ProtoReflect() protoreflect.Message {// Deprecated: Use LanPairReject.ProtoReflect.Descriptor instead.func (*LanPairReject) Descriptor() ([]byte, []int) {- return file_copysync_v1_wire_proto_rawDescGZIP(), []int{23}+ return file_pasteferry_v1_wire_proto_rawDescGZIP(), []int{23}}func (x *LanPairReject) GetRequestNonce() []byte {@@ -1972,7 +1972,7 @@ type LanNearbyPing struct {func (x *LanNearbyPing) Reset() {*x = LanNearbyPing{}- mi := &file_copysync_v1_wire_proto_msgTypes[24]+ mi := &file_pasteferry_v1_wire_proto_msgTypes[24]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -1984,7 +1984,7 @@ func (x *LanNearbyPing) String() string {func (*LanNearbyPing) ProtoMessage() {}func (x *LanNearbyPing) ProtoReflect() protoreflect.Message {- mi := &file_copysync_v1_wire_proto_msgTypes[24]+ mi := &file_pasteferry_v1_wire_proto_msgTypes[24]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -1997,7 +1997,7 @@ func (x *LanNearbyPing) ProtoReflect() protoreflect.Message {// Deprecated: Use LanNearbyPing.ProtoReflect.Descriptor instead.func (*LanNearbyPing) Descriptor() ([]byte, []int) {- return file_copysync_v1_wire_proto_rawDescGZIP(), []int{24}+ return file_pasteferry_v1_wire_proto_rawDescGZIP(), []int{24}}func (x *LanNearbyPing) GetInstance() string {@@ -2046,7 +2046,7 @@ type PeerMessage struct {func (x *PeerMessage) Reset() {*x = PeerMessage{}- mi := &file_copysync_v1_wire_proto_msgTypes[25]+ mi := &file_pasteferry_v1_wire_proto_msgTypes[25]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -2058,7 +2058,7 @@ func (x *PeerMessage) String() string {func (*PeerMessage) ProtoMessage() {}func (x *PeerMessage) ProtoReflect() protoreflect.Message {- mi := &file_copysync_v1_wire_proto_msgTypes[25]+ mi := &file_pasteferry_v1_wire_proto_msgTypes[25]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -2071,7 +2071,7 @@ func (x *PeerMessage) ProtoReflect() protoreflect.Message {// Deprecated: Use PeerMessage.ProtoReflect.Descriptor instead.func (*PeerMessage) Descriptor() ([]byte, []int) {- return file_copysync_v1_wire_proto_rawDescGZIP(), []int{25}+ return file_pasteferry_v1_wire_proto_rawDescGZIP(), []int{25}}func (x *PeerMessage) GetPayload() isPeerMessage_Payload {@@ -2187,7 +2187,7 @@ type LinkInfo struct {func (x *LinkInfo) Reset() {*x = LinkInfo{}- mi := &file_copysync_v1_wire_proto_msgTypes[26]+ mi := &file_pasteferry_v1_wire_proto_msgTypes[26]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -2199,7 +2199,7 @@ func (x *LinkInfo) String() string {func (*LinkInfo) ProtoMessage() {}func (x *LinkInfo) ProtoReflect() protoreflect.Message {- mi := &file_copysync_v1_wire_proto_msgTypes[26]+ mi := &file_pasteferry_v1_wire_proto_msgTypes[26]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -2212,7 +2212,7 @@ func (x *LinkInfo) ProtoReflect() protoreflect.Message {// Deprecated: Use LinkInfo.ProtoReflect.Descriptor instead.func (*LinkInfo) Descriptor() ([]byte, []int) {- return file_copysync_v1_wire_proto_rawDescGZIP(), []int{26}+ return file_pasteferry_v1_wire_proto_rawDescGZIP(), []int{26}}func (x *LinkInfo) GetRelayed() bool {@@ -2227,7 +2227,7 @@ func (x *LinkInfo) GetRelayed() bool {type ClipOffer struct {state protoimpl.MessageState `protogen:"open.v1"`ClipId string `protobuf:"bytes,1,opt,name=clip_id,json=clipId,proto3" json:"clip_id,omitempty"`- Kind ClipKind `protobuf:"varint,2,opt,name=kind,proto3,enum=copysync.v1.ClipKind" json:"kind,omitempty"`+ Kind ClipKind `protobuf:"varint,2,opt,name=kind,proto3,enum=pasteferry.v1.ClipKind" json:"kind,omitempty"`Items []*ClipItem `protobuf:"bytes,3,rep,name=items,proto3" json:"items,omitempty"`TotalSize int64 `protobuf:"varint,4,opt,name=total_size,json=totalSize,proto3" json:"total_size,omitempty"`TextContent string `protobuf:"bytes,5,opt,name=text_content,json=textContent,proto3" json:"text_content,omitempty"` // 文本/HTML 直接内联,无需二次传输@@ -2245,7 +2245,7 @@ type ClipOffer struct {func (x *ClipOffer) Reset() {*x = ClipOffer{}- mi := &file_copysync_v1_wire_proto_msgTypes[27]+ mi := &file_pasteferry_v1_wire_proto_msgTypes[27]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -2257,7 +2257,7 @@ func (x *ClipOffer) String() string {func (*ClipOffer) ProtoMessage() {}func (x *ClipOffer) ProtoReflect() protoreflect.Message {- mi := &file_copysync_v1_wire_proto_msgTypes[27]+ mi := &file_pasteferry_v1_wire_proto_msgTypes[27]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -2270,7 +2270,7 @@ func (x *ClipOffer) ProtoReflect() protoreflect.Message {// Deprecated: Use ClipOffer.ProtoReflect.Descriptor instead.func (*ClipOffer) Descriptor() ([]byte, []int) {- return file_copysync_v1_wire_proto_rawDescGZIP(), []int{27}+ return file_pasteferry_v1_wire_proto_rawDescGZIP(), []int{27}}func (x *ClipOffer) GetClipId() string {@@ -2346,7 +2346,7 @@ type PeerFetch struct {func (x *PeerFetch) Reset() {*x = PeerFetch{}- mi := &file_copysync_v1_wire_proto_msgTypes[28]+ mi := &file_pasteferry_v1_wire_proto_msgTypes[28]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -2358,7 +2358,7 @@ func (x *PeerFetch) String() string {func (*PeerFetch) ProtoMessage() {}func (x *PeerFetch) ProtoReflect() protoreflect.Message {- mi := &file_copysync_v1_wire_proto_msgTypes[28]+ mi := &file_pasteferry_v1_wire_proto_msgTypes[28]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -2371,7 +2371,7 @@ func (x *PeerFetch) ProtoReflect() protoreflect.Message {// Deprecated: Use PeerFetch.ProtoReflect.Descriptor instead.func (*PeerFetch) Descriptor() ([]byte, []int) {- return file_copysync_v1_wire_proto_rawDescGZIP(), []int{28}+ return file_pasteferry_v1_wire_proto_rawDescGZIP(), []int{28}}func (x *PeerFetch) GetClipId() string {@@ -2391,7 +2391,7 @@ type FetchReject struct {func (x *FetchReject) Reset() {*x = FetchReject{}- mi := &file_copysync_v1_wire_proto_msgTypes[29]+ mi := &file_pasteferry_v1_wire_proto_msgTypes[29]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -2403,7 +2403,7 @@ func (x *FetchReject) String() string {func (*FetchReject) ProtoMessage() {}func (x *FetchReject) ProtoReflect() protoreflect.Message {- mi := &file_copysync_v1_wire_proto_msgTypes[29]+ mi := &file_pasteferry_v1_wire_proto_msgTypes[29]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -2416,7 +2416,7 @@ func (x *FetchReject) ProtoReflect() protoreflect.Message {// Deprecated: Use FetchReject.ProtoReflect.Descriptor instead.func (*FetchReject) Descriptor() ([]byte, []int) {- return file_copysync_v1_wire_proto_rawDescGZIP(), []int{29}+ return file_pasteferry_v1_wire_proto_rawDescGZIP(), []int{29}}func (x *FetchReject) GetClipId() string {@@ -2439,15 +2439,15 @@ type TransferHeader struct {ClipId string `protobuf:"bytes,1,opt,name=clip_id,json=clipId,proto3" json:"clip_id,omitempty"`StreamId string `protobuf:"bytes,2,opt,name=stream_id,json=streamId,proto3" json:"stream_id,omitempty"`TotalBytes int64 `protobuf:"varint,3,opt,name=total_bytes,json=totalBytes,proto3" json:"total_bytes,omitempty"` // 压缩后的字节数;0 表示未知(流式打包)- Compression Compression `protobuf:"varint,4,opt,name=compression,proto3,enum=copysync.v1.Compression" json:"compression,omitempty"`- Packaging Packaging `protobuf:"varint,5,opt,name=packaging,proto3,enum=copysync.v1.Packaging" json:"packaging,omitempty"`+ Compression Compression `protobuf:"varint,4,opt,name=compression,proto3,enum=pasteferry.v1.Compression" json:"compression,omitempty"`+ Packaging Packaging `protobuf:"varint,5,opt,name=packaging,proto3,enum=pasteferry.v1.Packaging" json:"packaging,omitempty"`unknownFields protoimpl.UnknownFieldssizeCache protoimpl.SizeCache}func (x *TransferHeader) Reset() {*x = TransferHeader{}- mi := &file_copysync_v1_wire_proto_msgTypes[30]+ mi := &file_pasteferry_v1_wire_proto_msgTypes[30]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -2459,7 +2459,7 @@ func (x *TransferHeader) String() string {func (*TransferHeader) ProtoMessage() {}func (x *TransferHeader) ProtoReflect() protoreflect.Message {- mi := &file_copysync_v1_wire_proto_msgTypes[30]+ mi := &file_pasteferry_v1_wire_proto_msgTypes[30]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -2472,7 +2472,7 @@ func (x *TransferHeader) ProtoReflect() protoreflect.Message {// Deprecated: Use TransferHeader.ProtoReflect.Descriptor instead.func (*TransferHeader) Descriptor() ([]byte, []int) {- return file_copysync_v1_wire_proto_rawDescGZIP(), []int{30}+ return file_pasteferry_v1_wire_proto_rawDescGZIP(), []int{30}}func (x *TransferHeader) GetClipId() string {@@ -2523,7 +2523,7 @@ type TransferDone struct {func (x *TransferDone) Reset() {*x = TransferDone{}- mi := &file_copysync_v1_wire_proto_msgTypes[31]+ mi := &file_pasteferry_v1_wire_proto_msgTypes[31]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -2535,7 +2535,7 @@ func (x *TransferDone) String() string {func (*TransferDone) ProtoMessage() {}func (x *TransferDone) ProtoReflect() protoreflect.Message {- mi := &file_copysync_v1_wire_proto_msgTypes[31]+ mi := &file_pasteferry_v1_wire_proto_msgTypes[31]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -2548,7 +2548,7 @@ func (x *TransferDone) ProtoReflect() protoreflect.Message {// Deprecated: Use TransferDone.ProtoReflect.Descriptor instead.func (*TransferDone) Descriptor() ([]byte, []int) {- return file_copysync_v1_wire_proto_rawDescGZIP(), []int{31}+ return file_pasteferry_v1_wire_proto_rawDescGZIP(), []int{31}}func (x *TransferDone) GetClipId() string {@@ -2586,26 +2586,26 @@ func (x *TransferDone) GetSha256() []byte {return nil}-var File_copysync_v1_wire_proto protoreflect.FileDescriptor+var File_pasteferry_v1_wire_proto protoreflect.FileDescriptor-const file_copysync_v1_wire_proto_rawDesc = "" ++const file_pasteferry_v1_wire_proto_rawDesc = "" +"\n" +- "\x16copysync/v1/wire.proto\x12\vcopysync.v1\x1a\x18copysync/v1/daemon.proto\"f\n" ++ "\x18pasteferry/v1/wire.proto\x12\rpasteferry.v1\x1a\x1apasteferry/v1/daemon.proto\"f\n" +"\x06Signed\x12\x18\n" +"\apayload\x18\x01 \x01(\fR\apayload\x12\x1c\n" +"\tsignature\x18\x02 \x01(\fR\tsignature\x12$\n" +- "\x0efrom_device_id\x18\x03 \x01(\tR\ffromDeviceId\"\xf4\x02\n" ++ "\x0efrom_device_id\x18\x03 \x01(\tR\ffromDeviceId\"\xfe\x02\n" +"\rSignalMessage\x12%\n" +"\x0etimestamp_unix\x18\x01 \x01(\x03R\rtimestampUnix\x12\x14\n" +"\x05nonce\x18\x02 \x01(\fR\x05nonce\x12 \n" +"\fto_device_id\x18\x03 \x01(\tR\n" +- "toDeviceId\x12-\n" ++ "toDeviceId\x12/\n" +"\x05offer\x18\n" +- " \x01(\v2\x15.copysync.v1.SdpOfferH\x00R\x05offer\x120\n" +- "\x06answer\x18\v \x01(\v2\x16.copysync.v1.SdpAnswerH\x00R\x06answer\x129\n" +- "\tcandidate\x18\f \x01(\v2\x19.copysync.v1.IceCandidateH\x00R\tcandidate\x12'\n" +- "\x04ping\x18\r \x01(\v2\x11.copysync.v1.PingH\x00R\x04ping\x124\n" +- "\tlan_hello\x18\x0e \x01(\v2\x15.copysync.v1.LanHelloH\x00R\blanHelloB\t\n" ++ " \x01(\v2\x17.pasteferry.v1.SdpOfferH\x00R\x05offer\x122\n" ++ "\x06answer\x18\v \x01(\v2\x18.pasteferry.v1.SdpAnswerH\x00R\x06answer\x12;\n" ++ "\tcandidate\x18\f \x01(\v2\x1b.pasteferry.v1.IceCandidateH\x00R\tcandidate\x12)\n" ++ "\x04ping\x18\r \x01(\v2\x13.pasteferry.v1.PingH\x00R\x04ping\x126\n" ++ "\tlan_hello\x18\x0e \x01(\v2\x17.pasteferry.v1.LanHelloH\x00R\blanHelloB\t\n" +"\apayload\"n\n" +"\bSdpOffer\x12\x10\n" +"\x03sdp\x18\x01 \x01(\tR\x03sdp\x12)\n" +@@ -2629,10 +2629,10 @@ const file_copysync_v1_wire_proto_rawDesc = "" +"\n" +"public_key\x18\x04 \x01(\fR\tpublicKey\x12\x1c\n" +"\tsignature\x18\x05 \x01(\fR\tsignature\x12*\n" +- "\x11paired_device_ids\x18\x06 \x03(\tR\x0fpairedDeviceIds\"\x8e\x01\n" ++ "\x11paired_device_ids\x18\x06 \x03(\tR\x0fpairedDeviceIds\"\x90\x01\n" +"\vServerHello\x12\x1c\n" +- "\tchallenge\x18\x01 \x01(\fR\tchallenge\x127\n" +- "\vice_servers\x18\x02 \x03(\v2\x16.copysync.v1.IceServerR\n" ++ "\tchallenge\x18\x01 \x01(\fR\tchallenge\x129\n" ++ "\vice_servers\x18\x02 \x03(\v2\x18.pasteferry.v1.IceServerR\n" +"iceServers\x12(\n" +"\x10server_time_unix\x18\x03 \x01(\x03R\x0eserverTimeUnix\"\x83\x01\n" +"\tIceServer\x12\x12\n" +@@ -2669,38 +2669,38 @@ const file_copysync_v1_wire_proto_rawDesc = "" +"\x0epeer_device_id\x18\x01 \x01(\tR\fpeerDeviceId\x12(\n" +"\x10peer_device_name\x18\x02 \x01(\tR\x0epeerDeviceName\x12#\n" +"\rpeer_platform\x18\x03 \x01(\tR\fpeerPlatform\x12&\n" +- "\x0fpeer_public_key\x18\x04 \x01(\fR\rpeerPublicKey\"D\n" +- "\tIceConfig\x127\n" +- "\vice_servers\x18\x01 \x03(\v2\x16.copysync.v1.IceServerR\n" +- "iceServers\"\x9e\x04\n" +- "\x0eServerEnvelope\x120\n" +- "\x05hello\x18\x01 \x01(\v2\x18.copysync.v1.ServerHelloH\x00R\x05hello\x123\n" +- "\tforwarded\x18\x02 \x01(\v2\x13.copysync.v1.SignedH\x00R\tforwarded\x127\n" +- "\bpresence\x18\x03 \x01(\v2\x19.copysync.v1.PeerPresenceH\x00R\bpresence\x12M\n" +- "\x0fpairing_created\x18\x04 \x01(\v2\".copysync.v1.PairingCreateResponseH\x00R\x0epairingCreated\x12\\\n" +- "\x17pairing_redeemed_result\x18\x05 \x01(\v2\".copysync.v1.PairingRedeemResponseH\x00R\x15pairingRedeemedResult\x12I\n" +- "\x10pairing_redeemed\x18\x06 \x01(\v2\x1c.copysync.v1.PairingRedeemedH\x00R\x0fpairingRedeemed\x120\n" +- "\x05error\x18\a \x01(\v2\x18.copysync.v1.ServerErrorH\x00R\x05error\x127\n" ++ "\x0fpeer_public_key\x18\x04 \x01(\fR\rpeerPublicKey\"F\n" ++ "\tIceConfig\x129\n" ++ "\vice_servers\x18\x01 \x03(\v2\x18.pasteferry.v1.IceServerR\n" ++ "iceServers\"\xae\x04\n" ++ "\x0eServerEnvelope\x122\n" ++ "\x05hello\x18\x01 \x01(\v2\x1a.pasteferry.v1.ServerHelloH\x00R\x05hello\x125\n" ++ "\tforwarded\x18\x02 \x01(\v2\x15.pasteferry.v1.SignedH\x00R\tforwarded\x129\n" ++ "\bpresence\x18\x03 \x01(\v2\x1b.pasteferry.v1.PeerPresenceH\x00R\bpresence\x12O\n" ++ "\x0fpairing_created\x18\x04 \x01(\v2$.pasteferry.v1.PairingCreateResponseH\x00R\x0epairingCreated\x12^\n" ++ "\x17pairing_redeemed_result\x18\x05 \x01(\v2$.pasteferry.v1.PairingRedeemResponseH\x00R\x15pairingRedeemedResult\x12K\n" ++ "\x10pairing_redeemed\x18\x06 \x01(\v2\x1e.pasteferry.v1.PairingRedeemedH\x00R\x0fpairingRedeemed\x122\n" ++ "\x05error\x18\a \x01(\v2\x1a.pasteferry.v1.ServerErrorH\x00R\x05error\x129\n" +"\n" +- "ice_config\x18\b \x01(\v2\x16.copysync.v1.IceConfigH\x00R\ticeConfigB\t\n" +- "\apayload\"\x96\x02\n" +- "\x0eClientEnvelope\x120\n" +- "\x05hello\x18\x01 \x01(\v2\x18.copysync.v1.ClientHelloH\x00R\x05hello\x12/\n" +- "\aforward\x18\x02 \x01(\v2\x13.copysync.v1.SignedH\x00R\aforward\x12J\n" +- "\x0epairing_create\x18\x03 \x01(\v2!.copysync.v1.PairingCreateRequestH\x00R\rpairingCreate\x12J\n" +- "\x0epairing_redeem\x18\x04 \x01(\v2!.copysync.v1.PairingRedeemRequestH\x00R\rpairingRedeemB\t\n" ++ "ice_config\x18\b \x01(\v2\x18.pasteferry.v1.IceConfigH\x00R\ticeConfigB\t\n" ++ "\apayload\"\x9e\x02\n" ++ "\x0eClientEnvelope\x122\n" ++ "\x05hello\x18\x01 \x01(\v2\x1a.pasteferry.v1.ClientHelloH\x00R\x05hello\x121\n" ++ "\aforward\x18\x02 \x01(\v2\x15.pasteferry.v1.SignedH\x00R\aforward\x12L\n" ++ "\x0epairing_create\x18\x03 \x01(\v2#.pasteferry.v1.PairingCreateRequestH\x00R\rpairingCreate\x12L\n" ++ "\x0epairing_redeem\x18\x04 \x01(\v2#.pasteferry.v1.PairingRedeemRequestH\x00R\rpairingRedeemB\t\n" +"\apayload\";\n" +"\vServerError\x12\x12\n" +"\x04code\x18\x01 \x01(\tR\x04code\x12\x18\n" +- "\amessage\x18\x02 \x01(\tR\amessage\"\x8c\x03\n" +- "\tLanPacket\x12-\n" +- "\x06signal\x18\x01 \x01(\v2\x13.copysync.v1.SignedH\x00R\x06signal\x12?\n" +- "\fpair_request\x18\x02 \x01(\v2\x1a.copysync.v1.LanPairSignedH\x00R\vpairRequest\x12A\n" +- "\rpair_response\x18\x03 \x01(\v2\x1a.copysync.v1.LanPairSignedH\x00R\fpairResponse\x12=\n" +- "\vpair_reject\x18\x04 \x01(\v2\x1a.copysync.v1.LanPairRejectH\x00R\n" +- "pairReject\x12C\n" +- "\x0enearby_request\x18\x05 \x01(\v2\x1a.copysync.v1.LanPairSignedH\x00R\rnearbyRequest\x12=\n" +- "\vnearby_ping\x18\x06 \x01(\v2\x1a.copysync.v1.LanNearbyPingH\x00R\n" ++ "\amessage\x18\x02 \x01(\tR\amessage\"\x98\x03\n" ++ "\tLanPacket\x12/\n" ++ "\x06signal\x18\x01 \x01(\v2\x15.pasteferry.v1.SignedH\x00R\x06signal\x12A\n" ++ "\fpair_request\x18\x02 \x01(\v2\x1c.pasteferry.v1.LanPairSignedH\x00R\vpairRequest\x12C\n" ++ "\rpair_response\x18\x03 \x01(\v2\x1c.pasteferry.v1.LanPairSignedH\x00R\fpairResponse\x12?\n" ++ "\vpair_reject\x18\x04 \x01(\v2\x1c.pasteferry.v1.LanPairRejectH\x00R\n" ++ "pairReject\x12E\n" ++ "\x0enearby_request\x18\x05 \x01(\v2\x1c.pasteferry.v1.LanPairSignedH\x00R\rnearbyRequest\x12?\n" ++ "\vnearby_ping\x18\x06 \x01(\v2\x1c.pasteferry.v1.LanNearbyPingH\x00R\n" +"nearbyPingB\t\n" +"\apayload\"\x8a\x01\n" +"\bLanHello\x12\x1c\n" +@@ -2730,21 +2730,21 @@ const file_copysync_v1_wire_proto_rawDesc = "" +"\binstance\x18\x01 \x01(\tR\binstance\x12\x12\n" +"\x04name\x18\x02 \x01(\tR\x04name\x12\x1a\n" +"\bplatform\x18\x03 \x01(\tR\bplatform\x12\x14\n" +- "\x05token\x18\x04 \x01(\tR\x05token\"\xc1\x02\n" +- "\vPeerMessage\x12.\n" +- "\x05offer\x18\x01 \x01(\v2\x16.copysync.v1.ClipOfferH\x00R\x05offer\x12.\n" +- "\x05fetch\x18\x02 \x01(\v2\x16.copysync.v1.PeerFetchH\x00R\x05fetch\x122\n" +- "\x06reject\x18\x03 \x01(\v2\x18.copysync.v1.FetchRejectH\x00R\x06reject\x125\n" +- "\x06header\x18\x04 \x01(\v2\x1b.copysync.v1.TransferHeaderH\x00R\x06header\x12/\n" +- "\x04done\x18\x05 \x01(\v2\x19.copysync.v1.TransferDoneH\x00R\x04done\x12+\n" +- "\x04link\x18\x06 \x01(\v2\x15.copysync.v1.LinkInfoH\x00R\x04linkB\t\n" ++ "\x05token\x18\x04 \x01(\tR\x05token\"\xcd\x02\n" ++ "\vPeerMessage\x120\n" ++ "\x05offer\x18\x01 \x01(\v2\x18.pasteferry.v1.ClipOfferH\x00R\x05offer\x120\n" ++ "\x05fetch\x18\x02 \x01(\v2\x18.pasteferry.v1.PeerFetchH\x00R\x05fetch\x124\n" ++ "\x06reject\x18\x03 \x01(\v2\x1a.pasteferry.v1.FetchRejectH\x00R\x06reject\x127\n" ++ "\x06header\x18\x04 \x01(\v2\x1d.pasteferry.v1.TransferHeaderH\x00R\x06header\x121\n" ++ "\x04done\x18\x05 \x01(\v2\x1b.pasteferry.v1.TransferDoneH\x00R\x04done\x12-\n" ++ "\x04link\x18\x06 \x01(\v2\x17.pasteferry.v1.LinkInfoH\x00R\x04linkB\t\n" +"\apayload\"$\n" +"\bLinkInfo\x12\x18\n" +- "\arelayed\x18\x01 \x01(\bR\arelayed\"\xbc\x02\n" ++ "\arelayed\x18\x01 \x01(\bR\arelayed\"\xc0\x02\n" +"\tClipOffer\x12\x17\n" +- "\aclip_id\x18\x01 \x01(\tR\x06clipId\x12)\n" +- "\x04kind\x18\x02 \x01(\x0e2\x15.copysync.v1.ClipKindR\x04kind\x12+\n" +- "\x05items\x18\x03 \x03(\v2\x15.copysync.v1.ClipItemR\x05items\x12\x1d\n" ++ "\aclip_id\x18\x01 \x01(\tR\x06clipId\x12+\n" ++ "\x04kind\x18\x02 \x01(\x0e2\x17.pasteferry.v1.ClipKindR\x04kind\x12-\n" ++ "\x05items\x18\x03 \x03(\v2\x17.pasteferry.v1.ClipItemR\x05items\x12\x1d\n" +"\n" +"total_size\x18\x04 \x01(\x03R\ttotalSize\x12!\n" +"\ftext_content\x18\x05 \x01(\tR\vtextContent\x12&\n" +@@ -2757,14 +2757,14 @@ const file_copysync_v1_wire_proto_rawDesc = "" +"\aclip_id\x18\x01 \x01(\tR\x06clipId\">\n" +"\vFetchReject\x12\x17\n" +"\aclip_id\x18\x01 \x01(\tR\x06clipId\x12\x16\n" +- "\x06reason\x18\x02 \x01(\tR\x06reason\"\xd9\x01\n" ++ "\x06reason\x18\x02 \x01(\tR\x06reason\"\xdd\x01\n" +"\x0eTransferHeader\x12\x17\n" +"\aclip_id\x18\x01 \x01(\tR\x06clipId\x12\x1b\n" +"\tstream_id\x18\x02 \x01(\tR\bstreamId\x12\x1f\n" +"\vtotal_bytes\x18\x03 \x01(\x03R\n" +- "totalBytes\x12:\n" +- "\vcompression\x18\x04 \x01(\x0e2\x18.copysync.v1.CompressionR\vcompression\x124\n" +- "\tpackaging\x18\x05 \x01(\x0e2\x16.copysync.v1.PackagingR\tpackaging\"\x82\x01\n" ++ "totalBytes\x12<\n" ++ "\vcompression\x18\x04 \x01(\x0e2\x1a.pasteferry.v1.CompressionR\vcompression\x126\n" ++ "\tpackaging\x18\x05 \x01(\x0e2\x18.pasteferry.v1.PackagingR\tpackaging\"\x82\x01\n" +"\fTransferDone\x12\x17\n" +"\aclip_id\x18\x01 \x01(\tR\x06clipId\x12\x1b\n" +"\tstream_id\x18\x02 \x01(\tR\bstreamId\x12\x0e\n" +@@ -2778,96 +2778,96 @@ const file_copysync_v1_wire_proto_rawDesc = "" +"\tPackaging\x12\x19\n" +"\x15PACKAGING_UNSPECIFIED\x10\x00\x12\x11\n" +"\rPACKAGING_RAW\x10\x01\x12\x11\n" +- "\rPACKAGING_TAR\x10\x02B>Z<github.com/baiyuze/copysync/proto/gen/copysync/v1;copysyncv1b\x06proto3"+ "\rPACKAGING_TAR\x10\x02BDZBgithub.com/baiyuze/pasteferry/proto/gen/pasteferry/v1;pasteferryv1b\x06proto3"var (- file_copysync_v1_wire_proto_rawDescOnce sync.Once- file_copysync_v1_wire_proto_rawDescData []byte+ file_pasteferry_v1_wire_proto_rawDescOnce sync.Once+ file_pasteferry_v1_wire_proto_rawDescData []byte)-func file_copysync_v1_wire_proto_rawDescGZIP() []byte {- file_copysync_v1_wire_proto_rawDescOnce.Do(func() {- file_copysync_v1_wire_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_copysync_v1_wire_proto_rawDesc), len(file_copysync_v1_wire_proto_rawDesc)))+func file_pasteferry_v1_wire_proto_rawDescGZIP() []byte {+ file_pasteferry_v1_wire_proto_rawDescOnce.Do(func() {+ file_pasteferry_v1_wire_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_pasteferry_v1_wire_proto_rawDesc), len(file_pasteferry_v1_wire_proto_rawDesc)))})- return file_copysync_v1_wire_proto_rawDescData-}--var file_copysync_v1_wire_proto_enumTypes = make([]protoimpl.EnumInfo, 2)-var file_copysync_v1_wire_proto_msgTypes = make([]protoimpl.MessageInfo, 32)-var file_copysync_v1_wire_proto_goTypes = []any{- (Compression)(0), // 0: copysync.v1.Compression- (Packaging)(0), // 1: copysync.v1.Packaging- (*Signed)(nil), // 2: copysync.v1.Signed- (*SignalMessage)(nil), // 3: copysync.v1.SignalMessage- (*SdpOffer)(nil), // 4: copysync.v1.SdpOffer- (*SdpAnswer)(nil), // 5: copysync.v1.SdpAnswer- (*IceCandidate)(nil), // 6: copysync.v1.IceCandidate- (*Ping)(nil), // 7: copysync.v1.Ping- (*ClientHello)(nil), // 8: copysync.v1.ClientHello- (*ServerHello)(nil), // 9: copysync.v1.ServerHello- (*IceServer)(nil), // 10: copysync.v1.IceServer- (*PeerPresence)(nil), // 11: copysync.v1.PeerPresence- (*PairingCreateRequest)(nil), // 12: copysync.v1.PairingCreateRequest- (*PairingCreateResponse)(nil), // 13: copysync.v1.PairingCreateResponse- (*PairingRedeemRequest)(nil), // 14: copysync.v1.PairingRedeemRequest- (*PairingRedeemResponse)(nil), // 15: copysync.v1.PairingRedeemResponse- (*PairingRedeemed)(nil), // 16: copysync.v1.PairingRedeemed- (*IceConfig)(nil), // 17: copysync.v1.IceConfig- (*ServerEnvelope)(nil), // 18: copysync.v1.ServerEnvelope- (*ClientEnvelope)(nil), // 19: copysync.v1.ClientEnvelope- (*ServerError)(nil), // 20: copysync.v1.ServerError- (*LanPacket)(nil), // 21: copysync.v1.LanPacket- (*LanHello)(nil), // 22: copysync.v1.LanHello- (*LanPairSigned)(nil), // 23: copysync.v1.LanPairSigned- (*LanPairInfo)(nil), // 24: copysync.v1.LanPairInfo- (*LanPairReject)(nil), // 25: copysync.v1.LanPairReject- (*LanNearbyPing)(nil), // 26: copysync.v1.LanNearbyPing- (*PeerMessage)(nil), // 27: copysync.v1.PeerMessage- (*LinkInfo)(nil), // 28: copysync.v1.LinkInfo- (*ClipOffer)(nil), // 29: copysync.v1.ClipOffer- (*PeerFetch)(nil), // 30: copysync.v1.PeerFetch- (*FetchReject)(nil), // 31: copysync.v1.FetchReject- (*TransferHeader)(nil), // 32: copysync.v1.TransferHeader- (*TransferDone)(nil), // 33: copysync.v1.TransferDone- (ClipKind)(0), // 34: copysync.v1.ClipKind- (*ClipItem)(nil), // 35: copysync.v1.ClipItem-}-var file_copysync_v1_wire_proto_depIdxs = []int32{- 4, // 0: copysync.v1.SignalMessage.offer:type_name -> copysync.v1.SdpOffer- 5, // 1: copysync.v1.SignalMessage.answer:type_name -> copysync.v1.SdpAnswer- 6, // 2: copysync.v1.SignalMessage.candidate:type_name -> copysync.v1.IceCandidate- 7, // 3: copysync.v1.SignalMessage.ping:type_name -> copysync.v1.Ping- 22, // 4: copysync.v1.SignalMessage.lan_hello:type_name -> copysync.v1.LanHello- 10, // 5: copysync.v1.ServerHello.ice_servers:type_name -> copysync.v1.IceServer- 10, // 6: copysync.v1.IceConfig.ice_servers:type_name -> copysync.v1.IceServer- 9, // 7: copysync.v1.ServerEnvelope.hello:type_name -> copysync.v1.ServerHello- 2, // 8: copysync.v1.ServerEnvelope.forwarded:type_name -> copysync.v1.Signed- 11, // 9: copysync.v1.ServerEnvelope.presence:type_name -> copysync.v1.PeerPresence- 13, // 10: copysync.v1.ServerEnvelope.pairing_created:type_name -> copysync.v1.PairingCreateResponse- 15, // 11: copysync.v1.ServerEnvelope.pairing_redeemed_result:type_name -> copysync.v1.PairingRedeemResponse- 16, // 12: copysync.v1.ServerEnvelope.pairing_redeemed:type_name -> copysync.v1.PairingRedeemed- 20, // 13: copysync.v1.ServerEnvelope.error:type_name -> copysync.v1.ServerError- 17, // 14: copysync.v1.ServerEnvelope.ice_config:type_name -> copysync.v1.IceConfig- 8, // 15: copysync.v1.ClientEnvelope.hello:type_name -> copysync.v1.ClientHello- 2, // 16: copysync.v1.ClientEnvelope.forward:type_name -> copysync.v1.Signed- 12, // 17: copysync.v1.ClientEnvelope.pairing_create:type_name -> copysync.v1.PairingCreateRequest- 14, // 18: copysync.v1.ClientEnvelope.pairing_redeem:type_name -> copysync.v1.PairingRedeemRequest- 2, // 19: copysync.v1.LanPacket.signal:type_name -> copysync.v1.Signed- 23, // 20: copysync.v1.LanPacket.pair_request:type_name -> copysync.v1.LanPairSigned- 23, // 21: copysync.v1.LanPacket.pair_response:type_name -> copysync.v1.LanPairSigned- 25, // 22: copysync.v1.LanPacket.pair_reject:type_name -> copysync.v1.LanPairReject- 23, // 23: copysync.v1.LanPacket.nearby_request:type_name -> copysync.v1.LanPairSigned- 26, // 24: copysync.v1.LanPacket.nearby_ping:type_name -> copysync.v1.LanNearbyPing- 29, // 25: copysync.v1.PeerMessage.offer:type_name -> copysync.v1.ClipOffer- 30, // 26: copysync.v1.PeerMessage.fetch:type_name -> copysync.v1.PeerFetch- 31, // 27: copysync.v1.PeerMessage.reject:type_name -> copysync.v1.FetchReject- 32, // 28: copysync.v1.PeerMessage.header:type_name -> copysync.v1.TransferHeader- 33, // 29: copysync.v1.PeerMessage.done:type_name -> copysync.v1.TransferDone- 28, // 30: copysync.v1.PeerMessage.link:type_name -> copysync.v1.LinkInfo- 34, // 31: copysync.v1.ClipOffer.kind:type_name -> copysync.v1.ClipKind- 35, // 32: copysync.v1.ClipOffer.items:type_name -> copysync.v1.ClipItem- 0, // 33: copysync.v1.TransferHeader.compression:type_name -> copysync.v1.Compression- 1, // 34: copysync.v1.TransferHeader.packaging:type_name -> copysync.v1.Packaging+ return file_pasteferry_v1_wire_proto_rawDescData+}++var file_pasteferry_v1_wire_proto_enumTypes = make([]protoimpl.EnumInfo, 2)+var file_pasteferry_v1_wire_proto_msgTypes = make([]protoimpl.MessageInfo, 32)+var file_pasteferry_v1_wire_proto_goTypes = []any{+ (Compression)(0), // 0: pasteferry.v1.Compression+ (Packaging)(0), // 1: pasteferry.v1.Packaging+ (*Signed)(nil), // 2: pasteferry.v1.Signed+ (*SignalMessage)(nil), // 3: pasteferry.v1.SignalMessage+ (*SdpOffer)(nil), // 4: pasteferry.v1.SdpOffer+ (*SdpAnswer)(nil), // 5: pasteferry.v1.SdpAnswer+ (*IceCandidate)(nil), // 6: pasteferry.v1.IceCandidate+ (*Ping)(nil), // 7: pasteferry.v1.Ping+ (*ClientHello)(nil), // 8: pasteferry.v1.ClientHello+ (*ServerHello)(nil), // 9: pasteferry.v1.ServerHello+ (*IceServer)(nil), // 10: pasteferry.v1.IceServer+ (*PeerPresence)(nil), // 11: pasteferry.v1.PeerPresence+ (*PairingCreateRequest)(nil), // 12: pasteferry.v1.PairingCreateRequest+ (*PairingCreateResponse)(nil), // 13: pasteferry.v1.PairingCreateResponse+ (*PairingRedeemRequest)(nil), // 14: pasteferry.v1.PairingRedeemRequest+ (*PairingRedeemResponse)(nil), // 15: pasteferry.v1.PairingRedeemResponse+ (*PairingRedeemed)(nil), // 16: pasteferry.v1.PairingRedeemed+ (*IceConfig)(nil), // 17: pasteferry.v1.IceConfig+ (*ServerEnvelope)(nil), // 18: pasteferry.v1.ServerEnvelope+ (*ClientEnvelope)(nil), // 19: pasteferry.v1.ClientEnvelope+ (*ServerError)(nil), // 20: pasteferry.v1.ServerError+ (*LanPacket)(nil), // 21: pasteferry.v1.LanPacket+ (*LanHello)(nil), // 22: pasteferry.v1.LanHello+ (*LanPairSigned)(nil), // 23: pasteferry.v1.LanPairSigned+ (*LanPairInfo)(nil), // 24: pasteferry.v1.LanPairInfo+ (*LanPairReject)(nil), // 25: pasteferry.v1.LanPairReject+ (*LanNearbyPing)(nil), // 26: pasteferry.v1.LanNearbyPing+ (*PeerMessage)(nil), // 27: pasteferry.v1.PeerMessage+ (*LinkInfo)(nil), // 28: pasteferry.v1.LinkInfo+ (*ClipOffer)(nil), // 29: pasteferry.v1.ClipOffer+ (*PeerFetch)(nil), // 30: pasteferry.v1.PeerFetch+ (*FetchReject)(nil), // 31: pasteferry.v1.FetchReject+ (*TransferHeader)(nil), // 32: pasteferry.v1.TransferHeader+ (*TransferDone)(nil), // 33: pasteferry.v1.TransferDone+ (ClipKind)(0), // 34: pasteferry.v1.ClipKind+ (*ClipItem)(nil), // 35: pasteferry.v1.ClipItem+}+var file_pasteferry_v1_wire_proto_depIdxs = []int32{+ 4, // 0: pasteferry.v1.SignalMessage.offer:type_name -> pasteferry.v1.SdpOffer+ 5, // 1: pasteferry.v1.SignalMessage.answer:type_name -> pasteferry.v1.SdpAnswer+ 6, // 2: pasteferry.v1.SignalMessage.candidate:type_name -> pasteferry.v1.IceCandidate+ 7, // 3: pasteferry.v1.SignalMessage.ping:type_name -> pasteferry.v1.Ping+ 22, // 4: pasteferry.v1.SignalMessage.lan_hello:type_name -> pasteferry.v1.LanHello+ 10, // 5: pasteferry.v1.ServerHello.ice_servers:type_name -> pasteferry.v1.IceServer+ 10, // 6: pasteferry.v1.IceConfig.ice_servers:type_name -> pasteferry.v1.IceServer+ 9, // 7: pasteferry.v1.ServerEnvelope.hello:type_name -> pasteferry.v1.ServerHello+ 2, // 8: pasteferry.v1.ServerEnvelope.forwarded:type_name -> pasteferry.v1.Signed+ 11, // 9: pasteferry.v1.ServerEnvelope.presence:type_name -> pasteferry.v1.PeerPresence+ 13, // 10: pasteferry.v1.ServerEnvelope.pairing_created:type_name -> pasteferry.v1.PairingCreateResponse+ 15, // 11: pasteferry.v1.ServerEnvelope.pairing_redeemed_result:type_name -> pasteferry.v1.PairingRedeemResponse+ 16, // 12: pasteferry.v1.ServerEnvelope.pairing_redeemed:type_name -> pasteferry.v1.PairingRedeemed+ 20, // 13: pasteferry.v1.ServerEnvelope.error:type_name -> pasteferry.v1.ServerError+ 17, // 14: pasteferry.v1.ServerEnvelope.ice_config:type_name -> pasteferry.v1.IceConfig+ 8, // 15: pasteferry.v1.ClientEnvelope.hello:type_name -> pasteferry.v1.ClientHello+ 2, // 16: pasteferry.v1.ClientEnvelope.forward:type_name -> pasteferry.v1.Signed+ 12, // 17: pasteferry.v1.ClientEnvelope.pairing_create:type_name -> pasteferry.v1.PairingCreateRequest+ 14, // 18: pasteferry.v1.ClientEnvelope.pairing_redeem:type_name -> pasteferry.v1.PairingRedeemRequest+ 2, // 19: pasteferry.v1.LanPacket.signal:type_name -> pasteferry.v1.Signed+ 23, // 20: pasteferry.v1.LanPacket.pair_request:type_name -> pasteferry.v1.LanPairSigned+ 23, // 21: pasteferry.v1.LanPacket.pair_response:type_name -> pasteferry.v1.LanPairSigned+ 25, // 22: pasteferry.v1.LanPacket.pair_reject:type_name -> pasteferry.v1.LanPairReject+ 23, // 23: pasteferry.v1.LanPacket.nearby_request:type_name -> pasteferry.v1.LanPairSigned+ 26, // 24: pasteferry.v1.LanPacket.nearby_ping:type_name -> pasteferry.v1.LanNearbyPing+ 29, // 25: pasteferry.v1.PeerMessage.offer:type_name -> pasteferry.v1.ClipOffer+ 30, // 26: pasteferry.v1.PeerMessage.fetch:type_name -> pasteferry.v1.PeerFetch+ 31, // 27: pasteferry.v1.PeerMessage.reject:type_name -> pasteferry.v1.FetchReject+ 32, // 28: pasteferry.v1.PeerMessage.header:type_name -> pasteferry.v1.TransferHeader+ 33, // 29: pasteferry.v1.PeerMessage.done:type_name -> pasteferry.v1.TransferDone+ 28, // 30: pasteferry.v1.PeerMessage.link:type_name -> pasteferry.v1.LinkInfo+ 34, // 31: pasteferry.v1.ClipOffer.kind:type_name -> pasteferry.v1.ClipKind+ 35, // 32: pasteferry.v1.ClipOffer.items:type_name -> pasteferry.v1.ClipItem+ 0, // 33: pasteferry.v1.TransferHeader.compression:type_name -> pasteferry.v1.Compression+ 1, // 34: pasteferry.v1.TransferHeader.packaging:type_name -> pasteferry.v1.Packaging35, // [35:35] is the sub-list for method output_type35, // [35:35] is the sub-list for method input_type35, // [35:35] is the sub-list for extension type_name@@ -2875,20 +2875,20 @@ var file_copysync_v1_wire_proto_depIdxs = []int32{0, // [0:35] is the sub-list for field type_name}-func init() { file_copysync_v1_wire_proto_init() }-func file_copysync_v1_wire_proto_init() {- if File_copysync_v1_wire_proto != nil {+func init() { file_pasteferry_v1_wire_proto_init() }+func file_pasteferry_v1_wire_proto_init() {+ if File_pasteferry_v1_wire_proto != nil {return}- file_copysync_v1_daemon_proto_init()- file_copysync_v1_wire_proto_msgTypes[1].OneofWrappers = []any{+ file_pasteferry_v1_daemon_proto_init()+ file_pasteferry_v1_wire_proto_msgTypes[1].OneofWrappers = []any{(*SignalMessage_Offer)(nil),(*SignalMessage_Answer)(nil),(*SignalMessage_Candidate)(nil),(*SignalMessage_Ping)(nil),(*SignalMessage_LanHello)(nil),}- file_copysync_v1_wire_proto_msgTypes[16].OneofWrappers = []any{+ file_pasteferry_v1_wire_proto_msgTypes[16].OneofWrappers = []any{(*ServerEnvelope_Hello)(nil),(*ServerEnvelope_Forwarded)(nil),(*ServerEnvelope_Presence)(nil),@@ -2898,13 +2898,13 @@ func file_copysync_v1_wire_proto_init() {(*ServerEnvelope_Error)(nil),(*ServerEnvelope_IceConfig)(nil),}- file_copysync_v1_wire_proto_msgTypes[17].OneofWrappers = []any{+ file_pasteferry_v1_wire_proto_msgTypes[17].OneofWrappers = []any{(*ClientEnvelope_Hello)(nil),(*ClientEnvelope_Forward)(nil),(*ClientEnvelope_PairingCreate)(nil),(*ClientEnvelope_PairingRedeem)(nil),}- file_copysync_v1_wire_proto_msgTypes[19].OneofWrappers = []any{+ file_pasteferry_v1_wire_proto_msgTypes[19].OneofWrappers = []any{(*LanPacket_Signal)(nil),(*LanPacket_PairRequest)(nil),(*LanPacket_PairResponse)(nil),@@ -2912,7 +2912,7 @@ func file_copysync_v1_wire_proto_init() {(*LanPacket_NearbyRequest)(nil),(*LanPacket_NearbyPing)(nil),}- file_copysync_v1_wire_proto_msgTypes[25].OneofWrappers = []any{+ file_pasteferry_v1_wire_proto_msgTypes[25].OneofWrappers = []any{(*PeerMessage_Offer)(nil),(*PeerMessage_Fetch)(nil),(*PeerMessage_Reject)(nil),@@ -2924,18 +2924,18 @@ func file_copysync_v1_wire_proto_init() {out := protoimpl.TypeBuilder{File: protoimpl.DescBuilder{GoPackagePath: reflect.TypeOf(x{}).PkgPath(),- RawDescriptor: unsafe.Slice(unsafe.StringData(file_copysync_v1_wire_proto_rawDesc), len(file_copysync_v1_wire_proto_rawDesc)),+ RawDescriptor: unsafe.Slice(unsafe.StringData(file_pasteferry_v1_wire_proto_rawDesc), len(file_pasteferry_v1_wire_proto_rawDesc)),NumEnums: 2,NumMessages: 32,NumExtensions: 0,NumServices: 0,},- GoTypes: file_copysync_v1_wire_proto_goTypes,- DependencyIndexes: file_copysync_v1_wire_proto_depIdxs,- EnumInfos: file_copysync_v1_wire_proto_enumTypes,- MessageInfos: file_copysync_v1_wire_proto_msgTypes,+ GoTypes: file_pasteferry_v1_wire_proto_goTypes,+ DependencyIndexes: file_pasteferry_v1_wire_proto_depIdxs,+ EnumInfos: file_pasteferry_v1_wire_proto_enumTypes,+ MessageInfos: file_pasteferry_v1_wire_proto_msgTypes,}.Build()- File_copysync_v1_wire_proto = out.File- file_copysync_v1_wire_proto_goTypes = nil- file_copysync_v1_wire_proto_depIdxs = nil+ File_pasteferry_v1_wire_proto = out.File+ file_pasteferry_v1_wire_proto_goTypes = nil+ file_pasteferry_v1_wire_proto_depIdxs = nil}diff --git a/proto/go.mod b/proto/go.modindex aec562a..44ada57 100644--- a/proto/go.mod+++ b/proto/go.mod@@ -1,4 +1,4 @@-module github.com/baiyuze/copysync/proto+module github.com/baiyuze/pasteferry/protogo 1.26.3diff --git a/proto/copysync/v1/daemon.proto b/proto/pasteferry/v1/daemon.protosimilarity index 97%rename from proto/copysync/v1/daemon.protorename to proto/pasteferry/v1/daemon.protoindex e76a7b2..dab9c31 100644--- a/proto/copysync/v1/daemon.proto+++ b/proto/pasteferry/v1/daemon.proto@@ -5,9 +5,9 @@syntax = "proto3";-package copysync.v1;+package pasteferry.v1;-option go_package = "github.com/baiyuze/copysync/proto/gen/copysync/v1;copysyncv1";+option go_package = "github.com/baiyuze/pasteferry/proto/gen/pasteferry/v1;pasteferryv1";service DaemonService {// 订阅事件流。UI 启动后第一件事,断线需重连。@@ -47,7 +47,7 @@ service DaemonService {// Windows 申请管理员权限,在防火墙里放行后台服务。其他平台返回 UNIMPLEMENTED。rpc RequestLocalNetworkPermission(Empty) returns (Empty);- // 网络出口与打洞诊断:本机有几个出口、各自的公网地址,见 copysync-cli nat+ // 网络出口与打洞诊断:本机有几个出口、各自的公网地址,见 pasteferry-cli natrpc GetNetwork(Empty) returns (NetworkInfo);// 反馈问题用的诊断报告:版本、系统、设置、设备与网络状态、最近的日志。@@ -300,12 +300,12 @@ message NetworkInfo {LanInfo lan = 6;}-// 局域网直连的诊断信息,见 copysync-cli nat。+// 局域网直连的诊断信息,见 pasteferry-cli nat。message LanInfo {bool enabled = 1;int32 port = 2; // 局域网信令的 UDP 端口repeated string local_addresses = 3;- int32 discovered = 4; // mDNS 发现的 CopySync 实例数(含未配对的)+ int32 discovered = 4; // mDNS 发现的 PasteFerry 实例数(含未配对的)repeated LanPeer peers = 5;bool blocked = 6; // 系统拦下了本机发往局域网的包(macOS 本地网络权限)}diff --git a/proto/copysync/v1/wire.proto b/proto/pasteferry/v1/wire.protosimilarity index 98%rename from proto/copysync/v1/wire.protorename to proto/pasteferry/v1/wire.protoindex 46967c6..4d7a4b5 100644--- a/proto/copysync/v1/wire.proto+++ b/proto/pasteferry/v1/wire.proto@@ -7,12 +7,12 @@syntax = "proto3";-package copysync.v1;+package pasteferry.v1;// ClipKind / ClipItem 在此复用,避免两套等价定义-import "copysync/v1/daemon.proto";+import "pasteferry/v1/daemon.proto";-option go_package = "github.com/baiyuze/copysync/proto/gen/copysync/v1;copysyncv1";+option go_package = "github.com/baiyuze/pasteferry/proto/gen/pasteferry/v1;pasteferryv1";// ═══════════════════ 信令层(WebSocket 承载)═══════════════════@@ -166,7 +166,7 @@ message ServerError {// ═══════════════════ 局域网层(UDP 承载)═══════════════════//// 同一局域网里的设备不经服务器,用固定的 UDP 端口直接互发 LanPacket,-// 每个包前面加 4 字节魔数 "CSL1"。设备靠 mDNS(_copysync._udp)互相发现。+// 每个包前面加 4 字节魔数 "CSL1"。设备靠 mDNS(_pasteferry._udp)互相发现。//// 已配对设备之间发的是与服务器转发时完全相同的 Signed,信任模型不变。// 只有魔数、没有内容的空包是「敲门」:显示配对码的一方看到有人在找人配对(mDNS 里带 s=1),diff --git a/scripts/build-windows.ps1 b/scripts/build-windows.ps1index 356b571..39c2e8b 100644--- a/scripts/build-windows.ps1+++ b/scripts/build-windows.ps1@@ -1,8 +1,8 @@-# 在 Windows 上构建 CopySync,产物放在 dist\windows\:+# 在 Windows 上构建 PasteFerry,产物放在 dist\windows\:#-# CopySync\ 可以直接运行的目录:界面、后台服务、命令行工具-# CopySync-Setup.exe 安装程序(需要 Inno Setup 6)-# CopySync-windows-x64.zip 便携版+# PasteFerry\ 可以直接运行的目录:界面、后台服务、命令行工具+# PasteFerry-Setup.exe 安装程序(需要 Inno Setup 6)+# PasteFerry-windows-x64.zip 便携版## powershell -ExecutionPolicy Bypass -File scripts\build-windows.ps1 [-Version 1.3.2]#@@ -22,7 +22,7 @@ if (-not $Version) {}$out = Join-Path $root 'dist\windows'-$app = Join-Path $out 'CopySync'+$app = Join-Path $out 'PasteFerry'if (Test-Path $out) { Remove-Item -Recurse -Force $out }New-Item -ItemType Directory -Force $app | Out-Null@@ -36,8 +36,8 @@ $env:CGO_ENABLED = '0'; $env:GOOS = 'windows'; $env:GOARCH = 'amd64'Push-Location client-coretry {# -H=windowsgui:后台服务没有控制台窗口,开机自启时不会闪一下黑框- Invoke-Checked { go build -trimpath -ldflags "-s -w -H=windowsgui -X main.version=$Version" -o "$app\copysyncd.exe" ./cmd/copysyncd } 'go build copysyncd'- Invoke-Checked { go build -trimpath -ldflags '-s -w' -o "$app\copysync-cli.exe" ./cmd/copysync-cli } 'go build copysync-cli'+ Invoke-Checked { go build -trimpath -ldflags "-s -w -H=windowsgui -X main.version=$Version" -o "$app\pasteferryd.exe" ./cmd/pasteferryd } 'go build pasteferryd'+ Invoke-Checked { go build -trimpath -ldflags '-s -w' -o "$app\pasteferry-cli.exe" ./cmd/pasteferry-cli } 'go build pasteferry-cli'} finally {Pop-LocationRemove-Item Env:CGO_ENABLED, Env:GOOS, Env:GOARCH@@ -67,7 +67,7 @@ foreach ($dll in 'msvcp140.dll', 'vcruntime140.dll', 'vcruntime140_1.dll') {Write-Host " $($crt.FullName)"Write-Host '▶ 打包'-Compress-Archive -Path $app -DestinationPath (Join-Path $out 'CopySync-windows-x64.zip')+Compress-Archive -Path $app -DestinationPath (Join-Path $out 'PasteFerry-windows-x64.zip')$iscc = Get-Command iscc.exe -ErrorAction SilentlyContinue | Select-Object -ExpandProperty Sourceif (-not $iscc) {@@ -78,7 +78,7 @@ if (-not $iscc) {) | Where-Object { Test-Path $_ } | Select-Object -First 1}if ($iscc) {- Invoke-Checked { & $iscc /Qp "/DAppVersion=$Version" "/DSourceDir=$app" "/DOutputDir=$out" tools\installer\copysync.iss } 'Inno Setup'+ Invoke-Checked { & $iscc /Qp "/DAppVersion=$Version" "/DSourceDir=$app" "/DOutputDir=$out" tools\installer\pasteferry.iss } 'Inno Setup'} else {Write-Warning '没有找到 Inno Setup 6,跳过安装程序,只出便携版 zip'}diff --git a/scripts/build.sh b/scripts/build.shindex 3dc1143..6ac7326 100755--- a/scripts/build.sh+++ b/scripts/build.sh@@ -1,10 +1,10 @@#!/usr/bin/env bash# 构建全部产物到 dist/。#-# dist/CopySync.app 发给用户的 App:界面 + 内置的后台服务与命令行工具-# dist/CopySyncDaemon.app 后台服务单独一份,供 install-macos.sh 在开发时安装-# dist/copysync-server 信令 + TURN 中转服务器(macOS 版)-# dist/copysync-cli 调试用命令行+# dist/PasteFerry.app 发给用户的 App:界面 + 内置的后台服务与命令行工具+# dist/PasteFerryDaemon.app 后台服务单独一份,供 install-macos.sh 在开发时安装+# dist/pasteferry-server 信令 + TURN 中转服务器(macOS 版)+# dist/pasteferry-cli 调试用命令行## daemon 刻意打包成 .app 而非裸二进制:macOS 的剪贴板授权(TCC)以# bundle identifier 为主体,下个大版本起剪贴板隐私机制将强制执行,@@ -39,28 +39,28 @@ build_universal() { # <模块目录> <包路径> <输出路径> <ldflags>}echo "▶ 构建 daemon"-build_universal client-core ./cmd/copysyncd "$DIST/copysyncd" \+build_universal client-core ./cmd/pasteferryd "$DIST/pasteferryd" \"-s -w -X main.version=$VERSION"echo "▶ 构建 CLI"-build_universal client-core ./cmd/copysync-cli "$DIST/copysync-cli" "-s -w"+build_universal client-core ./cmd/pasteferry-cli "$DIST/pasteferry-cli" "-s -w"echo "▶ 构建服务器"-build_universal server ./cmd/copysync-server "$DIST/copysync-server" \+build_universal server ./cmd/pasteferry-server "$DIST/pasteferry-server" \"-s -w -X main.version=$VERSION"# ── 把 daemon 包成 .app ──-APP="$DIST/CopySyncDaemon.app"+APP="$DIST/PasteFerryDaemon.app"mkdir -p "$APP/Contents/MacOS"-mv "$DIST/copysyncd" "$APP/Contents/MacOS/copysyncd"+mv "$DIST/pasteferryd" "$APP/Contents/MacOS/pasteferryd"cat > "$APP/Contents/Info.plist" <<PLIST<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"><plist version="1.0"><dict>- <key>CFBundleExecutable</key> <string>copysyncd</string>- <key>CFBundleIdentifier</key> <string>com.copysync.daemon</string>- <key>CFBundleName</key> <string>CopySync Daemon</string>+ <key>CFBundleExecutable</key> <string>pasteferryd</string>+ <key>CFBundleIdentifier</key> <string>com.pasteferry.daemon</string>+ <key>CFBundleName</key> <string>PasteFerry Daemon</string><key>CFBundleDevelopmentRegion</key> <string>en</string><key>CFBundleIconFile</key> <string>AppIcon</string><key>CFBundlePackageType</key> <string>APPL</string>@@ -71,9 +71,9 @@ cat > "$APP/Contents/Info.plist" <<PLIST<key>LSUIElement</key> <true/><!-- macOS 15 起,后台服务连接局域网里的设备要经用户允许,系统弹窗里显示这段说明 --><key>NSLocalNetworkUsageDescription</key>- <string>CopySync finds your other computers on this network and syncs the clipboard with them directly.</string>+ <string>PasteFerry finds your other computers on this network and syncs the clipboard with them directly.</string><key>NSBonjourServices</key>- <array><string>_copysync._udp</string></array>+ <array><string>_pasteferry._udp</string></array></dict></plist>PLIST@@ -86,11 +86,11 @@ localize() {printf '"NSLocalNetworkUsageDescription" = "%s";\n' "$2" \> "$APP/Contents/Resources/$1.lproj/InfoPlist.strings"}-localize en "CopySync finds your other computers on this network and syncs the clipboard with them directly."-localize zh-Hans "CopySync 在局域网里查找你的其他电脑,直接与它们同步剪贴板。"-localize zh-Hant "CopySync 會在區域網路中尋找你的其他電腦,直接與它們同步剪貼簿。"-localize zh-HK "CopySync 會在區域網絡中尋找你的其他電腦,直接與它們同步剪貼簿。"-localize ja "CopySync はこのネットワーク上のほかのコンピューターを見つけ、クリップボードを直接同期します。"+localize en "PasteFerry finds your other computers on this network and syncs the clipboard with them directly."+localize zh-Hans "PasteFerry 在局域网里查找你的其他电脑,直接与它们同步剪贴板。"+localize zh-Hant "PasteFerry 會在區域網路中尋找你的其他電腦,直接與它們同步剪貼簿。"+localize zh-HK "PasteFerry 會在區域網絡中尋找你的其他電腦,直接與它們同步剪貼簿。"+localize ja "PasteFerry はこのネットワーク上のほかのコンピューターを見つけ、クリップボードを直接同期します。"# ad-hoc 签名即可让 TCC 记住授权决定;正式分发应换成 Developer IDcodesign --force --sign - "$APP"echo " ✓ $APP"@@ -98,20 +98,20 @@ echo " ✓ $APP"echo "▶ 构建图形界面"(cd ui && flutter build macos --release \--build-name "$VERSION" --dart-define=APP_VERSION="$VERSION" 2>&1 | tail -1)-UI="$DIST/CopySync.app"-cp -R ui/build/macos/Build/Products/Release/CopySync.app "$UI"+UI="$DIST/PasteFerry.app"+cp -R ui/build/macos/Build/Products/Release/PasteFerry.app "$UI"# 后台服务与命令行工具内置进 App:用户只需把一个 App 拖进「应用程序」,# 首次打开时由界面把后台服务注册为登录项(见 ui/lib/background_service.dart)mkdir -p "$UI/Contents/Helpers"cp -R "$APP" "$UI/Contents/Helpers/"-cp "$DIST/copysync-cli" "$UI/Contents/Helpers/copysync-cli"+cp "$DIST/pasteferry-cli" "$UI/Contents/Helpers/pasteferry-cli"# 签名由内向外:先签内置的组件,最后签外层 App。# Flutter 增量构建在 Dart 代码变化后会重新生成 App.framework 却不重签,# 留下失效签名,Apple Silicon 上会直接拒绝运行,这里一并重签。-codesign --force --sign - "$UI/Contents/Helpers/copysync-cli"-codesign --force --sign - "$UI/Contents/Helpers/CopySyncDaemon.app"+codesign --force --sign - "$UI/Contents/Helpers/pasteferry-cli"+codesign --force --sign - "$UI/Contents/Helpers/PasteFerryDaemon.app"codesign --force --sign - "$UI/Contents/Frameworks/App.framework"codesign --force --sign - --preserve-metadata=entitlements,requirements,flags "$UI"codesign --verify --deep --strict "$UI" "$APP"@@ -123,7 +123,7 @@ ls -1 "$DIST"cat <<'EOF'下一步:- open dist/CopySync.app 首次打开会引导启用后台同步+ open dist/PasteFerry.app 首次打开会引导启用后台同步./scripts/package.sh 打出 DMG 与服务器发布包- ./dist/copysync-server -h 查看服务器参数+ ./dist/pasteferry-server -h 查看服务器参数EOFdiff --git a/scripts/install-macos.sh b/scripts/install-macos.shindex f511b58..c57f401 100755--- a/scripts/install-macos.sh+++ b/scripts/install-macos.sh@@ -8,23 +8,23 @@ set -euo pipefailHERE="$(cd "$(dirname "$0")" && pwd)"# 发布包里 app 与本脚本同级;源码仓库里则在 dist/ 下-if [[ -d "$HERE/CopySyncDaemon.app" ]]; then- APP_SRC="$HERE/CopySyncDaemon.app"+if [[ -d "$HERE/PasteFerryDaemon.app" ]]; then+ APP_SRC="$HERE/PasteFerryDaemon.app"else- APP_SRC="$HERE/../dist/CopySyncDaemon.app"+ APP_SRC="$HERE/../dist/PasteFerryDaemon.app"fiINSTALL_DIR="$HOME/Applications"-APP_DST="$INSTALL_DIR/CopySyncDaemon.app"-BIN="$APP_DST/Contents/MacOS/copysyncd"-LABEL="com.copysync.daemon"+APP_DST="$INSTALL_DIR/PasteFerryDaemon.app"+BIN="$APP_DST/Contents/MacOS/pasteferryd"+LABEL="com.pasteferry.daemon"PLIST="$HOME/Library/LaunchAgents/$LABEL.plist"-LOG_DIR="$HOME/Library/Logs/CopySync"+LOG_DIR="$HOME/Library/Logs/PasteFerry"[[ -d "$APP_SRC" ]] || { echo "找不到 $APP_SRC,请先运行 ./scripts/build.sh"; exit 1; }echo "▶ 停止已在运行的实例"launchctl bootout "gui/$(id -u)/$LABEL" 2>/dev/null || true-pkill -f copysyncd 2>/dev/null || true+pkill -f pasteferryd 2>/dev/null || true# bootout 是异步的:旧服务没注销干净就 bootstrap 会报 "Bootstrap failed: 5"for _ in {1..20}; dolaunchctl print "gui/$(id -u)/$LABEL" &>/dev/null || break@@ -65,7 +65,7 @@ echo "▶ 启动"launchctl bootstrap "gui/$(id -u)" "$PLIST"sleep 2-if pgrep -f copysyncd > /dev/null; then+if pgrep -f pasteferryd > /dev/null; thenecho " ✓ daemon 已启动"elseecho " ✗ 启动失败,查看 $LOG_DIR/daemon.log"@@ -77,12 +77,12 @@ cat <<EOF安装完成。日志 $LOG_DIR/daemon.log- 数据目录 ~/Library/Application Support/CopySync+ 数据目录 ~/Library/Application Support/PasteFerry停止 launchctl bootout gui/\$(id -u)/$LABEL卸载 上面的命令 + rm -rf "$APP_DST" "$PLIST"接下来:- 1. 打开 CopySync.app 配置信令服务器地址并配对设备+ 1. 打开 PasteFerry.app 配置信令服务器地址并配对设备2. 若系统弹出「想要从其他 App 粘贴」,选择允许;之后可在 系统设置 → 隐私与安全性 → 从其他 App 粘贴 中改为「始终允许」EOFdiff --git a/scripts/package-linux.sh b/scripts/package-linux.shindex e29325e..cec8dee 100755--- a/scripts/package-linux.sh+++ b/scripts/package-linux.sh@@ -1,11 +1,11 @@#!/usr/bin/env bash-# 在 Linux 上构建并打包 CopySync 客户端:界面(Flutter,GTK)、后台服务 copysyncd、命令行 copysync-cli。+# 在 Linux 上构建并打包 PasteFerry 客户端:界面(Flutter,GTK)、后台服务 pasteferryd、命令行 pasteferry-cli。## ./scripts/package-linux.sh## 产出放在 dist/linux/:-# CopySync-linux-<arch>.deb Debian、Ubuntu 及其衍生版,装在 /opt/CopySync,自动出现在应用菜单里-# CopySync-linux-<arch>.tar.gz 其他发行版:解压即用,运行里面的 install.sh 加进应用菜单+# PasteFerry-linux-<arch>.deb Debian、Ubuntu 及其衍生版,装在 /opt/PasteFerry,自动出现在应用菜单里+# PasteFerry-linux-<arch>.tar.gz 其他发行版:解压即用,运行里面的 install.sh 加进应用菜单## <arch> 是 amd64 或 arm64,取决于运行脚本的机器:Flutter 不能交叉编译 Linux 桌面程序,# 所以 CI 在两种架构的机器上各跑一次。@@ -27,71 +27,76 @@ case "$(uname -m)" inesacOUT=dist/linux-APP=$OUT/CopySync+APP=$OUT/PasteFerryrm -rf "$OUT" && mkdir -p "$APP"echo "▶ 后台服务与命令行($VERSION,$ARCH)"# 纯 Go,不依赖 glibc 版本:剪贴板经 X11 协议直接通信,不链接 libX11(cd client-core && CGO_ENABLED=0 go build -trimpath -ldflags "-s -w -X main.version=$VERSION" \- -o "../$APP/copysyncd" ./cmd/copysyncd)-(cd client-core && CGO_ENABLED=0 go build -trimpath -ldflags "-s -w" -o "../$APP/copysync-cli" ./cmd/copysync-cli)+ -o "../$APP/pasteferryd" ./cmd/pasteferryd)+(cd client-core && CGO_ENABLED=0 go build -trimpath -ldflags "-s -w" -o "../$APP/pasteferry-cli" ./cmd/pasteferry-cli)echo "▶ 界面"(cd ui && flutter build linux --release --build-name "$VERSION" --dart-define=APP_VERSION="$VERSION")cp -R "ui/build/linux/$FLUTTER_ARCH/release/bundle/." "$APP/"# ── tar.gz:解压即用 ──-echo "▶ CopySync-linux-$ARCH.tar.gz"-TAR=$OUT/tar/CopySync+echo "▶ PasteFerry-linux-$ARCH.tar.gz"+TAR=$OUT/tar/PasteFerrymkdir -p "$TAR/share"cp -R "$APP/." "$TAR/"cp tools/linux/install.sh tools/linux/uninstall.sh "$TAR/"-cp tools/linux/com.copysync.app.desktop tools/linux/icons/*.png "$TAR/share/"-tar -C "$OUT/tar" -czf "$OUT/CopySync-linux-$ARCH.tar.gz" --owner=0 --group=0 CopySync+cp tools/linux/com.pasteferry.app.desktop tools/linux/icons/*.png "$TAR/share/"+tar -C "$OUT/tar" -czf "$OUT/PasteFerry-linux-$ARCH.tar.gz" --owner=0 --group=0 PasteFerry-# ── deb:装在 /opt/CopySync ──-echo "▶ CopySync-linux-$ARCH.deb"+# ── deb:装在 /opt/PasteFerry ──+echo "▶ PasteFerry-linux-$ARCH.deb"DEB=$OUT/debmkdir -p "$DEB/DEBIAN" "$DEB/opt" "$DEB/usr/bin" "$DEB/usr/share/applications"-cp -R "$APP" "$DEB/opt/CopySync"-sed 's#@EXEC@#/opt/CopySync/copysync#' tools/linux/com.copysync.app.desktop \- > "$DEB/usr/share/applications/com.copysync.app.desktop"+cp -R "$APP" "$DEB/opt/PasteFerry"+sed 's#@EXEC@#/opt/PasteFerry/pasteferry#' tools/linux/com.pasteferry.app.desktop \+ > "$DEB/usr/share/applications/com.pasteferry.app.desktop"for size in 256 512; domkdir -p "$DEB/usr/share/icons/hicolor/${size}x$size/apps"- cp "tools/linux/icons/com.copysync.app-$size.png" "$DEB/usr/share/icons/hicolor/${size}x$size/apps/com.copysync.app.png"+ cp "tools/linux/icons/com.pasteferry.app-$size.png" "$DEB/usr/share/icons/hicolor/${size}x$size/apps/com.pasteferry.app.png"done-ln -s /opt/CopySync/copysync "$DEB/usr/bin/copysync"-ln -s /opt/CopySync/copysync-cli "$DEB/usr/bin/copysync-cli"+ln -s /opt/PasteFerry/pasteferry "$DEB/usr/bin/pasteferry"+ln -s /opt/PasteFerry/pasteferry-cli "$DEB/usr/bin/pasteferry-cli"# libgtk-3-0:Ubuntu 24.04 起改名为 libgtk-3-0t64,新包也提供旧名字,写旧名字两边都能装cat > "$DEB/DEBIAN/control" <<EOF-Package: copysync+Package: pasteferryVersion: $VERSIONArchitecture: $ARCHMaintainer: baiyuze <[email protected]>Installed-Size: $(du -sk "$DEB" | cut -f1)Depends: libgtk-3-0 (>= 3.22)Recommends: fonts-noto-cjk+Conflicts: copysync+Replaces: copysyncSection: utilsPriority: optionalHomepage: https://baiyuze.github.io/pasteferry/Description: Sync what you copy between your computers- CopySync keeps the clipboard in sync across Mac, Windows and Linux:+ PasteFerry keeps the clipboard in sync across Mac, Windows and Linux:text, images and files, directly over the local network or throughyour own server. Content is end-to-end encrypted.EOF+# 2.0.0 之前的包叫 copysync:上面的 Conflicts/Replaces 让 apt 装这个包时自动卸掉旧的,+# 旧的后台服务与开机自启项由界面第一次启动时清理(ui/lib/background_service_linux.dart 的 removeLegacy)+## 卸载时结束正在运行的后台服务:程序文件已经没了。升级时不结束,界面打开时会按新版本重启它cat > "$DEB/DEBIAN/prerm" <<'EOF'#!/bin/shset -eif [ "$1" = remove ]; then- pkill -x copysyncd || true+ pkill -x pasteferryd || truefiEOFchmod 755 "$DEB/DEBIAN/prerm"-dpkg-deb --build --root-owner-group "$DEB" "$OUT/CopySync-linux-$ARCH.deb" >/dev/null+dpkg-deb --build --root-owner-group "$DEB" "$OUT/PasteFerry-linux-$ARCH.deb" >/dev/nullrm -rf "$OUT/tar" "$DEB"echoecho "完成:"-ls -lh "$OUT"/CopySync-linux-*+ls -lh "$OUT"/PasteFerry-linux-*diff --git a/scripts/package.sh b/scripts/package.shindex 5e3f9c7..080934f 100755--- a/scripts/package.sh+++ b/scripts/package.sh@@ -1,21 +1,21 @@#!/usr/bin/env bash# 构建并打出可分发的发布包到 release/。#-# CopySync-mac-apple-silicon.dmg macOS 客户端,Apple 芯片(M1 及更新)-# CopySync-mac-intel.dmg macOS 客户端,Intel 芯片-# CopySync.dmg macOS 客户端,两种芯片通用(体积约为单芯片版的两倍;+# PasteFerry-mac-apple-silicon.dmg macOS 客户端,Apple 芯片(M1 及更新)+# PasteFerry-mac-intel.dmg macOS 客户端,Intel 芯片+# PasteFerry.dmg macOS 客户端,两种芯片通用(体积约为单芯片版的两倍;# 早期版本的下载链接指向它,一直保留)-# copysync-server-linux-amd64.tar.gz 信令服务器 + systemd / Docker 部署文件-# copysync-server-linux-arm64.tar.gz-# copysync-server-macos.tar.gz 把服务器放在其中一台 Mac 上时用(LaunchAgent 安装脚本)-# copysync-server-windows-amd64.zip 把服务器放在 Windows 电脑上时用(注册为系统服务)+# pasteferry-server-linux-amd64.tar.gz 信令服务器 + systemd / Docker 部署文件+# pasteferry-server-linux-arm64.tar.gz+# pasteferry-server-macos.tar.gz 把服务器放在其中一台 Mac 上时用(LaunchAgent 安装脚本)+# pasteferry-server-windows-amd64.zip 把服务器放在 Windows 电脑上时用(注册为系统服务)#-# Windows 的安装程序与便携版(CopySync-Setup.exe、CopySync-windows-x64.zip)只能在 Windows 上+# Windows 的安装程序与便携版(PasteFerry-Setup.exe、PasteFerry-windows-x64.zip)只能在 Windows 上# 构建:由 CI 的 Windows 任务运行 scripts/build-windows.ps1 产出,发布时从构建产物里取。# Linux 的 .deb 与 tar.gz 同理,由 CI 的 Linux 任务运行 scripts/package-linux.sh 产出。## 文件名不带版本号:网站与 README 用 releases/latest/download/<文件名> 直链下载,-# 带版本号的话每发一版这些链接都会失效。版本号见 Release 标题与 copysync-server -version。+# 带版本号的话每发一版这些链接都会失效。版本号见 Release 标题与 pasteferry-server -version。# SHA256SUMS## 服务器是纯 Go,直接交叉编译;客户端依赖 cgo 与 Flutter,只能在 Mac 上构建。@@ -51,7 +51,7 @@ tell application "Finder"set icon size of opts to 112set text size of opts to 13set background picture of opts to file ".background:background.tiff"- set position of item "CopySync.app" of container window to {160, 190}+ set position of item "PasteFerry.app" of container window to {160, 190}set position of item "Applications" of container window to {480, 190}update without registering applicationsdelay 1@@ -80,8 +80,8 @@ thin_app() { # <通用 App> <输出 App> <arm64 | x86_64>mv "$f.thin" "$f"fidone < <(find "$dst" -type f -print0)- codesign --force --sign - "$dst/Contents/Helpers/copysync-cli"- codesign --force --sign - "$dst/Contents/Helpers/CopySyncDaemon.app"+ codesign --force --sign - "$dst/Contents/Helpers/pasteferry-cli"+ codesign --force --sign - "$dst/Contents/Helpers/PasteFerryDaemon.app"codesign --force --sign - "$dst/Contents/Frameworks/App.framework"codesign --force --sign - "$dst/Contents/Frameworks/FlutterMacOS.framework"codesign --force --sign - --preserve-metadata=entitlements,requirements,flags "$dst"@@ -94,9 +94,9 @@ tiffutil -cathidpicheck "$STAGE/bg/background.png" "$STAGE/bg/[email protected]"-out "$STAGE/background.tiff" 2>/dev/nullmake_dmg() { # <App> <输出文件名>- local app=$1 name=$2 vol=CopySync src="$STAGE/dmg-$2" mnt+ local app=$1 name=$2 vol=PasteFerry src="$STAGE/dmg-$2" mntmkdir -p "$src/.background"- ditto "$app" "$src/CopySync.app"+ ditto "$app" "$src/PasteFerry.app"ln -s /Applications "$src/Applications"cp "$STAGE/background.tiff" "$src/.background/background.tiff"@@ -122,41 +122,41 @@ make_dmg() { # <App> <输出文件名>}echo "▶ 打包 DMG"-thin_app dist/CopySync.app "$STAGE/arm64/CopySync.app" arm64-thin_app dist/CopySync.app "$STAGE/x86_64/CopySync.app" x86_64-make_dmg "$STAGE/arm64/CopySync.app" CopySync-mac-apple-silicon.dmg-make_dmg "$STAGE/x86_64/CopySync.app" CopySync-mac-intel.dmg-make_dmg dist/CopySync.app CopySync.dmg+thin_app dist/PasteFerry.app "$STAGE/arm64/PasteFerry.app" arm64+thin_app dist/PasteFerry.app "$STAGE/x86_64/PasteFerry.app" x86_64+make_dmg "$STAGE/arm64/PasteFerry.app" PasteFerry-mac-apple-silicon.dmg+make_dmg "$STAGE/x86_64/PasteFerry.app" PasteFerry-mac-intel.dmg+make_dmg dist/PasteFerry.app PasteFerry.dmg# ─────────────────────────── 服务器 ───────────────────────────echo "▶ 打包服务器"for arch in amd64 arm64; do- name="copysync-server-linux-$arch"+ name="pasteferry-server-linux-$arch"d="$STAGE/$name"mkdir -p "$d"(cd server && CGO_ENABLED=0 GOOS=linux GOARCH=$arch go build -trimpath \-ldflags "-s -w -X main.version=$VERSION" \- -o "$d/copysync-server" ./cmd/copysync-server)- cp server/deploy/{install.sh,copysync-server.service,Dockerfile,docker-compose.yml,env.example,README.md} "$d/"+ -o "$d/pasteferry-server" ./cmd/pasteferry-server)+ cp server/deploy/{install.sh,pasteferry-server.service,Dockerfile,docker-compose.yml,env.example,README.md} "$d/"tar -C "$STAGE" -czf "$OUT/$name.tar.gz" "$name"echo " ✓ $name.tar.gz"done-name="copysync-server-macos"+name="pasteferry-server-macos"mkdir -p "$STAGE/$name"-cp dist/copysync-server server/deploy/README.md "$STAGE/$name/"+cp dist/pasteferry-server server/deploy/README.md "$STAGE/$name/"install -m 755 server/deploy/install-macos.sh "$STAGE/$name/install.sh"tar -C "$STAGE" -czf "$OUT/$name.tar.gz" "$name"echo " ✓ $name.tar.gz"# Windows 用 zip:系统自带解压。install.ps1 与 .cmd 必须保持带 BOM 的 UTF-8 与 CRLF,原样拷贝-name="copysync-server-windows-amd64"+name="pasteferry-server-windows-amd64"d="$STAGE/$name"mkdir -p "$d"(cd server && CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build -trimpath \-ldflags "-s -w -X main.version=$VERSION" \- -o "$d/copysync-server.exe" ./cmd/copysync-server)+ -o "$d/pasteferry-server.exe" ./cmd/pasteferry-server)cp server/deploy/{install.ps1,install.cmd,uninstall.cmd,README.md} "$d/"zip_out="$PWD/$OUT/$name.zip"(cd "$STAGE" && zip -qr -X "$zip_out" "$name")diff --git a/server/cmd/copysync-server/logfile.go b/server/cmd/pasteferry-server/logfile.gosimilarity index 100%rename from server/cmd/copysync-server/logfile.gorename to server/cmd/pasteferry-server/logfile.godiff --git a/server/cmd/copysync-server/logfile_test.go b/server/cmd/pasteferry-server/logfile_test.gosimilarity index 100%rename from server/cmd/copysync-server/logfile_test.gorename to server/cmd/pasteferry-server/logfile_test.godiff --git a/server/cmd/copysync-server/main.go b/server/cmd/pasteferry-server/main.gosimilarity index 94%rename from server/cmd/copysync-server/main.gorename to server/cmd/pasteferry-server/main.goindex 26f6712..758493b 100644--- a/server/cmd/copysync-server/main.go+++ b/server/cmd/pasteferry-server/main.go@@ -1,4 +1,4 @@-// copysync-server 是 CopySync 的信令服务器。+// pasteferry-server 是 PasteFerry 的信令服务器。//// 它只做三件事:校验连上来的设备确实持有其声称公钥的私钥、// 转达配对码、在设备间转发带签名的信令。它不存用户,@@ -22,9 +22,9 @@ import ("syscall""time"- pb "github.com/baiyuze/copysync/proto/gen/copysync/v1"- "github.com/baiyuze/copysync/server/relay"- "github.com/baiyuze/copysync/server/signal"+ pb "github.com/baiyuze/pasteferry/proto/gen/pasteferry/v1"+ "github.com/baiyuze/pasteferry/server/relay"+ "github.com/baiyuze/pasteferry/server/signal")var version = "0.1.0-dev"@@ -41,14 +41,14 @@ func main() {"TURN 凭证派生密钥。留空自动生成(重启后已签发的凭证失效)")logPath = flag.String("log", "","日志写到这个文件,超过 10 MB 换新。默认输出到标准错误;作为 Windows 服务运行时默认写到 "+- `%ProgramData%\CopySync Server\server.log`)+ `%ProgramData%\PasteFerry Server\server.log`)verbose = flag.Bool("v", false, "输出调试日志")showVersion = flag.Bool("version", false, "打印版本号后退出"))flag.Parse()if *showVersion {- fmt.Println("copysync-server", version)+ fmt.Println("pasteferry-server", version)return}diff --git a/server/cmd/copysync-server/service_other.go b/server/cmd/pasteferry-server/service_other.gosimilarity index 100%rename from server/cmd/copysync-server/service_other.gorename to server/cmd/pasteferry-server/service_other.godiff --git a/server/cmd/copysync-server/service_windows.go b/server/cmd/pasteferry-server/service_windows.gosimilarity index 92%rename from server/cmd/copysync-server/service_windows.gorename to server/cmd/pasteferry-server/service_windows.goindex 0bd1100..3614d0d 100644--- a/server/cmd/copysync-server/service_windows.go+++ b/server/cmd/pasteferry-server/service_windows.go@@ -10,7 +10,7 @@ import ()// 与 server/deploy/install.ps1 注册的服务名一致-const serviceName = "CopySyncServer"+const serviceName = "PasteFerryServer"// isService 判断是否由 Windows 服务管理器启动。func isService() bool {@@ -19,7 +19,7 @@ func isService() bool {}func defaultServiceLog() string {- return filepath.Join(os.Getenv("ProgramData"), "CopySync Server", "server.log")+ return filepath.Join(os.Getenv("ProgramData"), "PasteFerry Server", "server.log")}// runService 在服务管理器下运行,收到停止或关机通知时退出。diff --git a/server/deploy/Dockerfile b/server/deploy/Dockerfileindex 867a368..f05a1f5 100644--- a/server/deploy/Dockerfile+++ b/server/deploy/Dockerfile@@ -1,10 +1,10 @@-# 发布包里的 copysync-server 是静态链接的 Linux 二进制,直接放进空镜像即可。+# 发布包里的 pasteferry-server 是静态链接的 Linux 二进制,直接放进空镜像即可。## docker compose up -d## 也可以从源码构建:在仓库根目录执行-# docker build -f server/deploy/Dockerfile.source -t copysync-server .+# docker build -f server/deploy/Dockerfile.source -t pasteferry-server .FROM scratch-COPY copysync-server /copysync-server+COPY pasteferry-server /pasteferry-serverEXPOSE 8787/tcp 3478/udp-ENTRYPOINT ["/copysync-server"]+ENTRYPOINT ["/pasteferry-server"]diff --git a/server/deploy/Dockerfile.source b/server/deploy/Dockerfile.sourceindex d52ffc8..b7dd8ad 100644--- a/server/deploy/Dockerfile.source+++ b/server/deploy/Dockerfile.source@@ -1,6 +1,6 @@# 从源码构建服务器镜像。在仓库根目录执行:#-# docker build -f server/deploy/Dockerfile.source -t copysync-server .+# docker build -f server/deploy/Dockerfile.source -t pasteferry-server .FROM golang:1.26 AS buildWORKDIR /srcCOPY proto ./proto@@ -8,9 +8,9 @@ COPY server ./serverARG VERSION=devRUN cd server && CGO_ENABLED=0 go build -trimpath \-ldflags "-s -w -X main.version=${VERSION}" \- -o /out/copysync-server ./cmd/copysync-server+ -o /out/pasteferry-server ./cmd/pasteferry-serverFROM scratch-COPY --from=build /out/copysync-server /copysync-server+COPY --from=build /out/pasteferry-server /pasteferry-serverEXPOSE 8787/tcp 3478/udp-ENTRYPOINT ["/copysync-server"]+ENTRYPOINT ["/pasteferry-server"]diff --git a/server/deploy/README.md b/server/deploy/README.mdindex 2f66241..5aa0766 100644--- a/server/deploy/README.md+++ b/server/deploy/README.md@@ -1,8 +1,8 @@-# Server deployment / CopySync 服务器部署+# Server deployment / 隔空贴服务器部署The server only does two things: it lets your devices find each other (signaling), and relays encrypted traffic when a direct connection can't be established (TURN). It keeps no accounts and cannot read what you copy.-CopySync 的服务器只做两件事:让你的设备找到彼此(信令),以及在设备之间打不通直连时转发加密后的数据(TURN 中转)。它不存账号,也看不到你复制的内容。+隔空贴的服务器只做两件事:让你的设备找到彼此(信令),以及在设备之间打不通直连时转发加密后的数据(TURN 中转)。它不存账号,也看不到你复制的内容。**You may not need one.** Since 1.4.0, computers on the same network find each other and pair without a server, and computers on Tailscale pair by entering each other's Tailscale address. A server is for syncing across networks, or for subnets that can't reach each other.@@ -35,29 +35,33 @@ The install scripts below find the computer's LAN address, enable the TURN relay下面的安装脚本会找到本机的局域网地址并在它上面启用 TURN 中转、把服务器设为自动运行,最后打印出客户端要填的地址。重复运行即为升级,原来的设置保留。+Upgrading from CopySync (before 2.0.0): the install scripts stop and remove the old `copysync-server` service and carry its settings over. With Docker, remove the old container first: `docker rm -f copysync-server`.++从 CopySync(2.0.0 之前的名字)升级:安装脚本会停掉并删除旧的 `copysync-server` 服务,原来的设置照样沿用。用 Docker 的话先删掉旧容器:`docker rm -f copysync-server`。+## Windows-Download `copysync-server-windows-amd64.zip`, extract it, and double-click `install.cmd` (it asks for administrator rights).+Download `pasteferry-server-windows-amd64.zip`, extract it, and double-click `install.cmd` (it asks for administrator rights).-下载 `copysync-server-windows-amd64.zip`,解压后双击 `install.cmd`(会请求管理员权限)。+下载 `pasteferry-server-windows-amd64.zip`,解压后双击 `install.cmd`(会请求管理员权限)。-- Runs as the Windows service `CopySyncServer` under the low-privilege LOCAL SERVICE account, starts with Windows and restarts after failures. 以低权限的 LOCAL SERVICE 账户注册为 Windows 服务 `CopySyncServer`,开机启动,出错后自动重启。-- Adds a Windows Firewall rule for `copysync-server.exe` only. 在 Windows 防火墙里只为 `copysync-server.exe` 添加一条入站规则。+- Runs as the Windows service `PasteFerryServer` under the low-privilege LOCAL SERVICE account, starts with Windows and restarts after failures. 以低权限的 LOCAL SERVICE 账户注册为 Windows 服务 `PasteFerryServer`,开机启动,出错后自动重启。+- Adds a Windows Firewall rule for `pasteferry-server.exe` only. 在 Windows 防火墙里只为 `pasteferry-server.exe` 添加一条入站规则。- Wrong address picked? Run `install.cmd 192.168.1.20` with yours. 认错了地址就运行 `install.cmd 192.168.1.20`,换成你的地址。| | ||---|---|-| Program 程序 | `C:\Program Files\CopySync Server` |-| Settings 设置 | `C:\ProgramData\CopySync Server\server.conf` (administrators only 仅管理员可读) |-| Logs 日志 | `C:\ProgramData\CopySync Server\server.log` |-| Restart 重启 | `Restart-Service CopySyncServer` (administrator PowerShell 管理员 PowerShell) |+| Program 程序 | `C:\Program Files\PasteFerry Server` |+| Settings 设置 | `C:\ProgramData\PasteFerry Server\server.conf` (administrators only 仅管理员可读) |+| Logs 日志 | `C:\ProgramData\PasteFerry Server\server.log` |+| Restart 重启 | `Restart-Service PasteFerryServer` (administrator PowerShell 管理员 PowerShell) || Uninstall 卸载 | double-click `uninstall.cmd` 双击 `uninstall.cmd` |## macOS```bash-tar xzf copysync-server-macos.tar.gz-cd copysync-server-macos+tar xzf pasteferry-server-macos.tar.gz+cd pasteferry-server-macos./install.sh # or ./install.sh 192.168.1.20```@@ -67,27 +71,27 @@ No administrator rights needed: it registers a LaunchAgent that runs whenever yo| | ||---|---|-| Logs 日志 | `~/Library/Logs/CopySync/server.log` |-| Restart 重启 | `launchctl kickstart -k gui/$(id -u)/com.copysync.server` |+| Logs 日志 | `~/Library/Logs/PasteFerry/server.log` |+| Restart 重启 | `launchctl kickstart -k gui/$(id -u)/com.pasteferry.server` || Uninstall 卸载 | `./install.sh uninstall` |## Linux: systemd (recommended) / Linux:systemd(推荐)```bash-tar xzf copysync-server-linux-amd64.tar.gz-cd copysync-server-linux-amd64+tar xzf pasteferry-server-linux-amd64.tar.gz+cd pasteferry-server-linux-amd64sudo ./install.sh # on a LAN: uses this machine's LAN address / 局域网:用本机的局域网地址sudo ./install.sh <public IP> # on a cloud server / 云服务器:填公网 IP```-The script installs the binary to `/usr/local/bin`, writes `/etc/copysync/server.env` with a random TURN secret, and registers a systemd service that starts on boot. If ufw or firewalld is active, it prints the commands to open the ports.+The script installs the binary to `/usr/local/bin`, writes `/etc/pasteferry/server.env` with a random TURN secret, and registers a systemd service that starts on boot. If ufw or firewalld is active, it prints the commands to open the ports.-脚本会把程序装到 `/usr/local/bin`,生成配置 `/etc/copysync/server.env`(含随机的 TURN 密钥),注册为开机自启的 systemd 服务。开着 ufw 或 firewalld 时,最后会给出放行端口的命令。+脚本会把程序装到 `/usr/local/bin`,生成配置 `/etc/pasteferry/server.env`(含随机的 TURN 密钥),注册为开机自启的 systemd 服务。开着 ufw 或 firewalld 时,最后会给出放行端口的命令。```bash-journalctl -u copysync-server -f # logs / 日志-systemctl restart copysync-server # restart after editing the config / 改完配置后重启-copysync-server -version # version / 版本+journalctl -u pasteferry-server -f # logs / 日志+systemctl restart pasteferry-server # restart after editing the config / 改完配置后重启+pasteferry-server -version # version / 版本sudo ./install.sh uninstall # uninstall / 卸载```@@ -121,31 +125,31 @@ install.cmd 100.101.102.103 # Windowssudo ./install.sh 100.101.102.103 # Linux, fresh install / Linux 首次安装```-Windows and macOS switch to the new address when you run the script again. The Linux script keeps an existing config, so replace the old address (it appears in `-turn-ip` and `-stun`) in `/etc/copysync/server.env` and run `systemctl restart copysync-server`. Then use `ws://100.101.102.103:8787/signal` in the apps, at home too.+Windows and macOS switch to the new address when you run the script again. The Linux script keeps an existing config, so replace the old address (it appears in `-turn-ip` and `-stun`) in `/etc/pasteferry/server.env` and run `systemctl restart pasteferry-server`. Then use `ws://100.101.102.103:8787/signal` in the apps, at home too.-Windows 与 macOS 带上新地址再运行一次脚本即可切换。Linux 的脚本不改已有配置:把 `/etc/copysync/server.env` 里原来的地址(`-turn-ip` 与 `-stun` 两处)换成 Tailscale 地址,再 `systemctl restart copysync-server`。之后每台电脑都填 `ws://100.101.102.103:8787/signal`,家里的也一样。+Windows 与 macOS 带上新地址再运行一次脚本即可切换。Linux 的脚本不改已有配置:把 `/etc/pasteferry/server.env` 里原来的地址(`-turn-ip` 与 `-stun` 两处)换成 Tailscale 地址,再 `systemctl restart pasteferry-server`。之后每台电脑都填 `ws://100.101.102.103:8787/signal`,家里的也一样。-On the server computer: turn on **Run unattended** in Tailscale on Windows (otherwise it disconnects when you sign out), and **Disable key expiry** for it in the Tailscale admin console. If CopySync shows Direct but transfers are slow, `tailscale ping <peer>` tells you whether Tailscale itself is relaying through DERP. The same approach works with ZeroTier or any tool that gives each device a fixed virtual address.+On the server computer: turn on **Run unattended** in Tailscale on Windows (otherwise it disconnects when you sign out), and **Disable key expiry** for it in the Tailscale admin console. If 隔空贴 shows Direct but transfers are slow, `tailscale ping <peer>` tells you whether Tailscale itself is relaying through DERP. The same approach works with ZeroTier or any tool that gives each device a fixed virtual address.-服务器所在的电脑:Windows 上在 Tailscale 里打开 **Run unattended**(否则注销后会断开),并在 Tailscale 管理后台给它 **Disable key expiry**。CopySync 显示直连但传输很慢时,用 `tailscale ping <对方>` 看 Tailscale 自己是不是在经 DERP 中转。ZeroTier 等能给每台设备分配固定虚拟地址的工具,做法相同。+服务器所在的电脑:Windows 上在 Tailscale 里打开 **Run unattended**(否则注销后会断开),并在 Tailscale 管理后台给它 **Disable key expiry**。隔空贴显示直连但传输很慢时,用 `tailscale ping <对方>` 看 Tailscale 自己是不是在经 DERP 中转。ZeroTier 等能给每台设备分配固定虚拟地址的工具,做法相同。## Run it directly / 直接运行```bash-./copysync-server -addr :8787 -turn-ip <address> -turn-secret <random string>+./pasteferry-server -addr :8787 -turn-ip <address> -turn-secret <random string>```-`-turn-ip` is the address clients use to reach the relay: the LAN address on a LAN, the Tailscale address with Tailscale, the public IP on a cloud server. Without it there is no relay. `-log <file>` writes the log to a file instead of standard error. Run `copysync-server -h` for all options.+`-turn-ip` is the address clients use to reach the relay: the LAN address on a LAN, the Tailscale address with Tailscale, the public IP on a cloud server. Without it there is no relay. `-log <file>` writes the log to a file instead of standard error. Run `pasteferry-server -h` for all options.-`-turn-ip` 是客户端访问中转用的地址:局域网里填局域网地址,用 Tailscale 时填 Tailscale 地址,云服务器填公网 IP;不填就没有中转。`-log <文件>` 把日志写到文件而不是标准错误。全部参数见 `copysync-server -h`。+`-turn-ip` 是客户端访问中转用的地址:局域网里填局域网地址,用 Tailscale 时填 Tailscale 地址,云服务器填公网 IP;不填就没有中转。`-log <文件>` 把日志写到文件而不是标准错误。全部参数见 `pasteferry-server -h`。## Client setup / 客户端设置-The server field is empty by default, which means "this network only". On each computer (Mac or Windows), open CopySync → Settings → Signaling server and enter the address the script printed:+The server field is empty by default, which means "this network only". On each computer (Mac or Windows), open 隔空贴 → Settings → Signaling server and enter the address the script printed:「信令服务器地址」默认是空的,表示只在局域网里同步。-在每台电脑(Mac 或 Windows)上打开 CopySync →「设置」→「信令服务器地址」,填入脚本打印的地址:+在每台电脑(Mac 或 Windows)上打开隔空贴 →「设置」→「信令服务器地址」,填入脚本打印的地址:```ws://<server address>:8787/signaldiff --git a/server/deploy/docker-compose.yml b/server/deploy/docker-compose.ymlindex 826232e..1033457 100644--- a/server/deploy/docker-compose.yml+++ b/server/deploy/docker-compose.yml@@ -1,4 +1,4 @@-# CopySync 信令服务器+# PasteFerry 信令服务器## cp env.example .env 然后把 .env 里的 TURN_IP 改成这台服务器的公网 IP# docker compose up -d@@ -8,10 +8,10 @@# 必须用 host 网络:TURN 中转为每个会话随机分配 UDP 端口,# 端口映射模式下这些端口不可达,P2P 打不通时的兜底就会失效。services:- copysync-server:+ pasteferry-server:build: .- image: copysync-server:local- container_name: copysync-server+ image: pasteferry-server:local+ container_name: pasteferry-servernetwork_mode: hostrestart: unless-stoppedcommand: >diff --git a/server/deploy/install-macos.sh b/server/deploy/install-macos.shindex 5c4c88a..eb920c9 100755--- a/server/deploy/install-macos.sh+++ b/server/deploy/install-macos.sh@@ -1,6 +1,6 @@#!/usr/bin/env bash-# 在 Mac 上安装 copysync-server,登录后自动在后台运行(launchd LaunchAgent),不需要管理员权限。-# 发布包 copysync-server-macos.tar.gz 里的 install.sh 就是这个文件。+# 在 Mac 上安装 pasteferry-server,登录后自动在后台运行(launchd LaunchAgent),不需要管理员权限。+# 发布包 pasteferry-server-macos.tar.gz 里的 install.sh 就是这个文件。## ./install.sh 用本机的局域网地址启用 TURN 中转# ./install.sh <IP> 指定 TURN 对外公布的地址@@ -16,12 +16,12 @@ LANGS=$(defaults read -g AppleLanguages 2>/dev/null | tr -d ' \n' || true)[[ ${LANGS#(\"} == zh* || ${LC_ALL:-${LANG:-}} == zh* ]] && ZH=1 || ZH=say() { if [[ $ZH ]]; then echo "$1"; else echo "$2"; fi; }-LABEL=com.copysync.server-DIR="$HOME/Library/Application Support/CopySync Server"-BIN="$DIR/copysync-server"+LABEL=com.pasteferry.server+DIR="$HOME/Library/Application Support/PasteFerry Server"+BIN="$DIR/pasteferry-server"CONF="$DIR/server.conf"PLIST="$HOME/Library/LaunchAgents/$LABEL.plist"-LOG="$HOME/Library/Logs/CopySync/server.log"+LOG="$HOME/Library/Logs/PasteFerry/server.log"DOMAIN="gui/$(id -u)"stop() {@@ -56,6 +56,19 @@ lan_ip() {echo "$ip"}+# 2.0.0 之前叫 CopySync Server:停掉旧服务(它占着 8787 与 3478 端口),配置挪过来接着用+OLD_DIR="$HOME/Library/Application Support/CopySync Server"+OLD_PLIST="$HOME/Library/LaunchAgents/com.copysync.server.plist"+if [[ -f $OLD_PLIST || -d $OLD_DIR ]]; then+ say "▶ 停用旧的 CopySync Server" "▶ Removing the old CopySync Server"+ launchctl bootout "$DOMAIN/com.copysync.server" 2>/dev/null || true+ if [[ -f $OLD_DIR/server.conf && ! -f $CONF ]]; then+ mkdir -p "$DIR"+ cp "$OLD_DIR/server.conf" "$CONF"+ fi+ rm -rf "$OLD_DIR" "$OLD_PLIST"+fi+TURN_IP= TURN_SECRET=# shellcheck source=/dev/null[[ -f $CONF ]] && source "$CONF"@@ -76,7 +89,7 @@ stopsay "▶ 安装到 $DIR" "▶ Installing to $DIR"mkdir -p "$DIR" "$(dirname "$LOG")" "$(dirname "$PLIST")"-cp copysync-server "$BIN"+cp pasteferry-server "$BIN"chmod 755 "$BIN"# 用浏览器下载的包带隔离属性,Gatekeeper 会拦下没有公证的程序,而 launchd 拉起时没有弹窗可以放行xattr -d com.apple.quarantine "$BIN" 2>/dev/null || true@@ -129,7 +142,7 @@ if [[ $ZH ]]; thencat <<EOF安装完成:$VERSION,登录这台 Mac 后自动运行-在每台电脑的 CopySync「设置 → 信令服务器地址」填:+在每台电脑的 PasteFerry「设置 → 信令服务器地址」填:ws://$TURN_IP:8787/signal@@ -141,7 +154,7 @@ elsecat <<EOFInstalled: $VERSION. It starts whenever you log in to this Mac.-In CopySync on each computer, set Settings → Signaling server to:+In PasteFerry on each computer, set Settings → Signaling server to:ws://$TURN_IP:8787/signal@@ -155,7 +168,7 @@ fiFW=/usr/libexec/ApplicationFirewall/socketfilterfwif [[ -x $FW ]] && "$FW" --getglobalstate 2>/dev/null | grep -q "enabled"; thenecho- say "系统防火墙已开启,放行 copysync-server(需要输入密码):" \- "The macOS firewall is on. Allow copysync-server through it (asks for your password):"+ say "系统防火墙已开启,放行 pasteferry-server(需要输入密码):" \+ "The macOS firewall is on. Allow pasteferry-server through it (asks for your password):"echo " sudo $FW --add \"$BIN\" && sudo $FW --unblockapp \"$BIN\""fidiff --git a/server/deploy/install.cmd b/server/deploy/install.cmdindex 7cb91ee..7891bb8 100644--- a/server/deploy/install.cmd+++ b/server/deploy/install.cmd@@ -1,5 +1,5 @@@echo off-rem Double-click to install copysync-server as a Windows service (asks for administrator rights).+rem Double-click to install pasteferry-server as a Windows service (asks for administrator rights).rem To set the relay address yourself: install.cmd 192.168.1.20powershell -NoProfile -ExecutionPolicy Bypass -File "%~dp0install.ps1" %*if errorlevel 1 pausediff --git a/server/deploy/install.ps1 b/server/deploy/install.ps1index 51d0946..1590881 100644--- a/server/deploy/install.ps1+++ b/server/deploy/install.ps1@@ -1,5 +1,5 @@<#-在 Windows 上安装 copysync-server:注册为开机自启的系统服务,并在 Windows 防火墙里放行。+在 Windows 上安装 pasteferry-server:注册为开机自启的系统服务,并在 Windows 防火墙里放行。双击 install.cmd 用本机的局域网地址启用 TURN 中转install.cmd 192.168.1.20 指定 TURN 对外公布的地址@@ -39,11 +39,11 @@ if (-not $admin) {exit 0}-$Name = 'CopySyncServer'-$Display = 'CopySync Server'-$InstallDir = Join-Path $env:ProgramFiles 'CopySync Server'-$DataDir = Join-Path $env:ProgramData 'CopySync Server'-$Exe = Join-Path $InstallDir 'copysync-server.exe'+$Name = 'PasteFerryServer'+$Display = 'PasteFerry Server'+$InstallDir = Join-Path $env:ProgramFiles 'PasteFerry Server'+$DataDir = Join-Path $env:ProgramData 'PasteFerry Server'+$Exe = Join-Path $InstallDir 'pasteferry-server.exe'$Conf = Join-Path $DataDir 'server.conf'$Log = Join-Path $DataDir 'server.log'@@ -52,7 +52,7 @@ function Stop-Server {Stop-Service $Name -Force -ErrorAction SilentlyContinue}# 服务停了进程不一定立刻退出,退出前替换不了程序文件- for ($i = 0; $i -lt 20 -and (Get-Process copysync-server -ErrorAction SilentlyContinue); $i++) {+ for ($i = 0; $i -lt 20 -and (Get-Process pasteferry-server -ErrorAction SilentlyContinue); $i++) {Start-Sleep -Milliseconds 250}}@@ -78,11 +78,30 @@ function Get-LanIp {}}-$src = Join-Path $PSScriptRoot 'copysync-server.exe'+$src = Join-Path $PSScriptRoot 'pasteferry-server.exe'if (-not (Test-Path $src)) {throw (Say "找不到 $src,请把压缩包完整解压后再运行" "$src not found. Extract the whole zip first.")}+# 2.0.0 之前叫 CopySync Server:停掉并删除旧服务(它占着 8787 与 3478 端口),配置挪过来接着用+$OldName = 'CopySyncServer'+if (Get-Service $OldName -ErrorAction SilentlyContinue) {+ Write-Host (Say '停用旧的 CopySync Server' 'Removing the old CopySync Server')+ Stop-Service $OldName -Force -ErrorAction SilentlyContinue+ for ($i = 0; $i -lt 20 -and (Get-Process copysync-server -ErrorAction SilentlyContinue); $i++) {+ Start-Sleep -Milliseconds 250+ }+ sc.exe delete $OldName | Out-Null+ Get-NetFirewallRule -DisplayName 'CopySync Server' -ErrorAction SilentlyContinue | Remove-NetFirewallRule+ $OldConf = Join-Path $env:ProgramData 'CopySync Server\server.conf'+ if ((Test-Path $OldConf) -and -not (Test-Path $Conf)) {+ New-Item -ItemType Directory -Force $DataDir | Out-Null+ Copy-Item $OldConf $Conf+ }+ Remove-Item (Join-Path $env:ProgramFiles 'CopySync Server'), (Join-Path $env:ProgramData 'CopySync Server') `+ -Recurse -Force -ErrorAction SilentlyContinue+}+# 读取已有设置$cfg = @{}if (Test-Path $Conf) {@@ -118,7 +137,7 @@ icacls $Conf /inheritance:r /grant:r '*S-1-5-32-544:F' '*S-1-5-18:F' | Out-NullStep "注册服务 $Name(中转地址 $turnIp)" "Registering the service $Name (relay address $turnIp)"$bin = "`"$Exe`" -addr :8787 -turn-ip $turnIp -turn-secret $($cfg.TURN_SECRET) " +"-stun stun:${turnIp}:3478,stun:stun.l.google.com:19302 -log `"$Log`""-$desc = Say 'CopySync 的信令与 TURN 中转服务器' 'Signaling and TURN relay server for CopySync'+$desc = Say 'PasteFerry 的信令与 TURN 中转服务器' 'Signaling and TURN relay server for PasteFerry'$existing = Get-CimInstance Win32_Service -Filter "Name='$Name'"if ($existing) {$r = $existing | Invoke-CimMethod -MethodName Change -Arguments @{ PathName = $bin; StartMode = 'Automatic' }@@ -157,7 +176,7 @@ if ($zh) {Write-Host @"安装完成:$version,作为 Windows 服务开机自动运行-在每台电脑的 CopySync「设置 → 信令服务器地址」填:+在每台电脑的 PasteFerry「设置 → 信令服务器地址」填:ws://${turnIp}:8787/signal@@ -170,7 +189,7 @@ if ($zh) {Write-Host @"Installed: $version. It runs as a Windows service and starts with Windows.-In CopySync on each computer, set Settings > Signaling server to:+In PasteFerry on each computer, set Settings > Signaling server to:ws://${turnIp}:8787/signaldiff --git a/server/deploy/install.sh b/server/deploy/install.shindex db002ee..f88996b 100755--- a/server/deploy/install.sh+++ b/server/deploy/install.sh@@ -1,11 +1,11 @@#!/usr/bin/env bash-# 在 Linux 上安装 copysync-server 并注册为开机自启的 systemd 服务。+# 在 Linux 上安装 pasteferry-server 并注册为开机自启的 systemd 服务。## sudo ./install.sh 用本机的局域网地址启用 TURN 中转(局域网部署)# sudo ./install.sh <公网IP> 用公网 IP 启用 TURN 中转(云服务器,跨公网使用)# sudo ./install.sh uninstall 卸载#-# 重复执行即为升级:替换二进制并重启,已有的 /etc/copysync/server.env 不会被覆盖。+# 重复执行即为升级:替换二进制并重启,已有的 /etc/pasteferry/server.env 不会被覆盖。set -euo pipefailcd "$(dirname "$0")"@@ -16,12 +16,12 @@ say() { if [[ $ZH ]]; then echo "$1"; else echo "$2"; fi; }[[ $EUID -eq 0 ]] || { say "请用 root 运行:sudo $0 $*" "Run as root: sudo $0 $*"; exit 1; }-ENV_FILE=/etc/copysync/server.env+ENV_FILE=/etc/pasteferry/server.envif [[ ${1:-} == uninstall ]]; then- systemctl disable --now copysync-server 2>/dev/null || true- rm -f /usr/local/bin/copysync-server /etc/systemd/system/copysync-server.service- rm -rf /etc/copysync+ systemctl disable --now pasteferry-server 2>/dev/null || true+ rm -f /usr/local/bin/pasteferry-server /etc/systemd/system/pasteferry-server.service+ rm -rf /etc/pasteferrysystemctl daemon-reloadsay "✓ 已卸载" "✓ Uninstalled"exit 0@@ -39,18 +39,30 @@ lan_ip() {echo "$ip"}+# 2.0.0 之前叫 copysync-server:停掉旧服务(它占着 8787 与 3478 端口),配置挪过来接着用+if [[ -f /etc/systemd/system/copysync-server.service ]]; then+ say "▶ 停用旧的 copysync-server" "▶ Removing the old copysync-server"+ systemctl disable --now copysync-server 2>/dev/null || true+ rm -f /usr/local/bin/copysync-server /etc/systemd/system/copysync-server.service+ if [[ -f /etc/copysync/server.env && ! -f $ENV_FILE ]]; then+ mkdir -p /etc/pasteferry+ mv /etc/copysync/server.env "$ENV_FILE"+ fi+ rm -rf /etc/copysync+fi+say "▶ 安装二进制到 /usr/local/bin" "▶ Installing the binary to /usr/local/bin"-install -m 755 copysync-server /usr/local/bin/copysync-server+install -m 755 pasteferry-server /usr/local/bin/pasteferry-serversay "▶ 写入 systemd 单元" "▶ Writing the systemd unit"-install -m 644 copysync-server.service /etc/systemd/system/copysync-server.service+install -m 644 pasteferry-server.service /etc/systemd/system/pasteferry-server.serviceif [[ -f $ENV_FILE ]]; thensay "▶ 保留已有配置 $ENV_FILE" "▶ Keeping the existing config $ENV_FILE"TURN_IP=$(sed -n 's/.*-turn-ip \([^ "]*\).*/\1/p' "$ENV_FILE")if [[ -n ${1:-} && ${1:-} != "$TURN_IP" ]]; then- say " 要改用 $1,编辑 $ENV_FILE 里的 -turn-ip 后执行 systemctl restart copysync-server" \- " To switch to $1, edit -turn-ip in $ENV_FILE and run systemctl restart copysync-server"+ say " 要改用 $1,编辑 $ENV_FILE 里的 -turn-ip 后执行 systemctl restart pasteferry-server" \+ " To switch to $1, edit -turn-ip in $ENV_FILE and run systemctl restart pasteferry-server"fielseTURN_IP=${1:-$(lan_ip)}@@ -59,7 +71,7 @@ elseexit 1}say "▶ 生成配置 $ENV_FILE(中转地址 $TURN_IP)" "▶ Writing $ENV_FILE (relay address $TURN_IP)"- mkdir -p /etc/copysync+ mkdir -p /etc/pasteferry# 固定 secret:自动生成的话每次重启都会让已签发的 TURN 凭证失效# STUN 优先用自己:国内网络访问公共 STUN(如 Google 的)时通时断OPTIONS="-addr :8787 -turn-ip $TURN_IP -turn-secret $(head -c 32 /dev/urandom | od -An -tx1 | tr -d ' \n')"@@ -70,32 +82,32 @@ fisay "▶ 启动" "▶ Starting"systemctl daemon-reload-systemctl enable copysync-server >/dev/null 2>&1-systemctl restart copysync-server+systemctl enable pasteferry-server >/dev/null 2>&1+systemctl restart pasteferry-serversleep 1-if systemctl is-active --quiet copysync-server; then+if systemctl is-active --quiet pasteferry-server; thensay " ✓ 已启动" " ✓ Running"else- say " ✗ 启动失败,查看日志:journalctl -u copysync-server -n 50" \- " ✗ Failed to start. See the log: journalctl -u copysync-server -n 50"+ say " ✗ 启动失败,查看日志:journalctl -u pasteferry-server -n 50" \+ " ✗ Failed to start. See the log: journalctl -u pasteferry-server -n 50"exit 1fiADDR=${TURN_IP:-$(lan_ip)}PORTS=$(tr '\t' '-' < /proc/sys/net/ipv4/ip_local_port_range 2>/dev/null || echo 32768-60999)-VERSION=$(/usr/local/bin/copysync-server -version)+VERSION=$(/usr/local/bin/pasteferry-server -version)if [[ $ZH ]]; thencat <<EOF安装完成:$VERSION-在每台电脑的 CopySync「设置 → 信令服务器地址」填:+在每台电脑的 PasteFerry「设置 → 信令服务器地址」填:ws://$ADDR:8787/signal配置 $ENV_FILE- 日志 journalctl -u copysync-server -f- 重启 systemctl restart copysync-server+ 日志 journalctl -u pasteferry-server -f+ 重启 systemctl restart pasteferry-server卸载 sudo $0 uninstall防火墙需放行:TCP 8787(信令)、UDP 3478(STUN 与 TURN)、UDP $PORTS(中转端口,系统随机分配)@@ -104,13 +116,13 @@ elsecat <<EOFInstalled: $VERSION-In CopySync on each computer, set Settings → Signaling server to:+In PasteFerry on each computer, set Settings → Signaling server to:ws://$ADDR:8787/signalConfig $ENV_FILE- Logs journalctl -u copysync-server -f- Restart systemctl restart copysync-server+ Logs journalctl -u pasteferry-server -f+ Restart systemctl restart pasteferry-serverUninstall sudo $0 uninstallOpen in your firewall: TCP 8787 (signaling), UDP 3478 (STUN and TURN), UDP $PORTS (relay ports, assigned by the OS)diff --git a/server/deploy/copysync-server.service b/server/deploy/pasteferry-server.servicesimilarity index 57%rename from server/deploy/copysync-server.servicerename to server/deploy/pasteferry-server.serviceindex 8136a4a..98eabfe 100644--- a/server/deploy/copysync-server.service+++ b/server/deploy/pasteferry-server.service@@ -1,12 +1,12 @@[Unit]-Description=CopySync 信令与 TURN 中转服务器+Description=PasteFerry 信令与 TURN 中转服务器After=network-online.targetWants=network-online.target[Service]-# 启动参数写在这里,改完 systemctl restart copysync-server 即可-EnvironmentFile=/etc/copysync/server.env-ExecStart=/usr/local/bin/copysync-server $OPTIONS+# 启动参数写在这里,改完 systemctl restart pasteferry-server 即可+EnvironmentFile=/etc/pasteferry/server.env+ExecStart=/usr/local/bin/pasteferry-server $OPTIONSRestart=on-failureRestartSec=5diff --git a/server/deploy/uninstall.cmd b/server/deploy/uninstall.cmdindex d33c999..280e737 100644--- a/server/deploy/uninstall.cmd+++ b/server/deploy/uninstall.cmd@@ -1,4 +1,4 @@@echo off-rem Double-click to remove the copysync-server service, its firewall rule and its files.+rem Double-click to remove the pasteferry-server service, its firewall rule and its files.powershell -NoProfile -ExecutionPolicy Bypass -File "%~dp0install.ps1" -Uninstallif errorlevel 1 pausediff --git a/server/go.mod b/server/go.modindex d74f3a2..03e2dfb 100644--- a/server/go.mod+++ b/server/go.mod@@ -1,11 +1,11 @@-module github.com/baiyuze/copysync/server+module github.com/baiyuze/pasteferry/servergo 1.26.3-replace github.com/baiyuze/copysync/proto => ../proto+replace github.com/baiyuze/pasteferry/proto => ../protorequire (- github.com/baiyuze/copysync/proto v0.0.0-00010101000000-000000000000+ github.com/baiyuze/pasteferry/proto v0.0.0-00010101000000-000000000000github.com/coder/websocket v1.8.15github.com/pion/turn/v4 v4.1.4golang.org/x/sys v0.47.0diff --git a/server/pairing/pairing.go b/server/pairing/pairing.goindex aabe294..32b0d3d 100644--- a/server/pairing/pairing.go+++ b/server/pairing/pairing.go@@ -9,7 +9,7 @@ import ("sync""time"- "github.com/baiyuze/copysync/proto/pairingcode"+ "github.com/baiyuze/pasteferry/proto/pairingcode")// 配对码的格式与局域网里设备自己生成的一致,见 proto/pairingcode。diff --git a/server/pairing/pairing_test.go b/server/pairing/pairing_test.goindex 1cc1ed5..25ee857 100644--- a/server/pairing/pairing_test.go+++ b/server/pairing/pairing_test.go@@ -5,7 +5,7 @@ import ("testing""time"- "github.com/baiyuze/copysync/proto/pairingcode"+ "github.com/baiyuze/pasteferry/proto/pairingcode")func peerNamed(id string) Peer {diff --git a/server/relay/turn.go b/server/relay/turn.goindex 94690e5..1850b56 100644--- a/server/relay/turn.go+++ b/server/relay/turn.go@@ -55,7 +55,7 @@ func New(opts Options) (*Server, error) {opts.ListenIP = "0.0.0.0"}if opts.Realm == "" {- opts.Realm = "copysync"+ opts.Realm = "pasteferry"}if opts.CredentialTTL == 0 {opts.CredentialTTL = 12 * time.Hourdiff --git a/server/signal/server.go b/server/signal/server.goindex 42faa64..18b34ae 100644--- a/server/signal/server.go+++ b/server/signal/server.go@@ -13,9 +13,9 @@ import ("github.com/coder/websocket""google.golang.org/protobuf/proto"- "github.com/baiyuze/copysync/proto/deviceid"- pb "github.com/baiyuze/copysync/proto/gen/copysync/v1"- "github.com/baiyuze/copysync/server/pairing"+ "github.com/baiyuze/pasteferry/proto/deviceid"+ pb "github.com/baiyuze/pasteferry/proto/gen/pasteferry/v1"+ "github.com/baiyuze/pasteferry/server/pairing")const (diff --git a/spikes/README.md b/spikes/README.mdindex 3d1d72c..aa7d2ab 100644--- a/spikes/README.md+++ b/spikes/README.md@@ -1,6 +1,6 @@# M-1 Spike:验证 macOS 剪贴板的两个致命假设-CopySync 的「纯懒模式」(复制时不传输,对端按下粘贴键才回源拉取)在技术上+隔空贴的「纯懒模式」(复制时不传输,对端按下粘贴键才回源拉取)在技术上**只能**通过剪贴板的延迟渲染(promise)机制实现——操作系统不提供「剪贴板被读取」的通知,promise 回调是唯一能感知「对方按下了 Cmd+V」的时机。@@ -13,7 +13,7 @@ CopySync 的「纯懒模式」(复制时不传输,对端按下粘贴键才## Spike A — 剪贴板读取的隐私提示(`privacy/`)**要验证什么**:macOS 15 Sequoia 起,App 以编程方式读取*其他* App 放入剪贴板的内容时,-系统会弹出「"某某" 想要从其他 App 粘贴」的确认框。CopySync 的 daemon 需要持续监听剪贴板,+系统会弹出「"某某" 想要从其他 App 粘贴」的确认框。隔空贴的 daemon 需要持续监听剪贴板,如果每次复制都弹窗,产品直接不可用。**分阶段探测**,逐级判断哪一步触发提示:diff --git a/spikes/build.sh b/spikes/build.shindex 178918e..b9d5ce3 100755--- a/spikes/build.sh+++ b/spikes/build.sh@@ -45,10 +45,10 @@ PLIST}echo "编译中…"-build_app SpikeA privacy/main.m com.copysync.spike.privacy-build_app SpikeB promise/main.m com.copysync.spike.promise-build_app SpikeC writer/main.m com.copysync.spike.writer-build_app SpikeD receiver/main.m com.copysync.spike.receiver+build_app SpikeA privacy/main.m com.pasteferry.spike.privacy+build_app SpikeB promise/main.m com.pasteferry.spike.promise+build_app SpikeC writer/main.m com.pasteferry.spike.writer+build_app SpikeD receiver/main.m com.pasteferry.spike.receivercat <<EOFdiff --git a/spikes/privacy/main.m b/spikes/privacy/main.mindex 19c56bb..1f26ec9 100644--- a/spikes/privacy/main.m+++ b/spikes/privacy/main.m@@ -1,7 +1,7 @@// Spike A — macOS 剪贴板隐私机制探测//// 背景:macOS 15.4 引入了剪贴板隐私保护,目前是 developer preview(默认关闭),-// 下一个 macOS 大版本将强制执行。CopySync 的 daemon 恰好是+// 下一个 macOS 大版本将强制执行。PasteFerry 的 daemon 恰好是// 「后台程序化读取剪贴板」——完全命中被拦截的场景,必须提前验证。//// 要回答的问题:@@ -11,7 +11,7 @@// Q4. 每个阶段耗时多少?(耗时 > 1s 说明弹窗出现并等待了用户交互)//// 开启 preview 后再跑一次,即可预演未来 macOS 上的行为:-// defaults write com.copysync.spike.privacy EnablePasteboardPrivacyDeveloperPreview -bool yes+// defaults write com.pasteferry.spike.privacy EnablePasteboardPrivacyDeveloperPreview -bool yes#import <Cocoa/Cocoa.h>#import <UniformTypeIdentifiers/UniformTypeIdentifiers.h>@@ -114,10 +114,10 @@ static void probe(NSPasteboard *pb, NSInteger change) {// ── 阶段 3:detectMetadataForTypes ────────────────────────// Apple 官方保证「不通知用户」的元数据探测。- // 文档示例恰好就是 CopySync 的用例:判断文件引用的 content type。+ // 文档示例恰好就是 PasteFerry 的用例:判断文件引用的 content type。// 若此处能拿到足够信息,则「分类」环节完全免提示。if (@available(macOS 15.4, *)) {- t = beginStage(3, "detectMetadataForTypes(官方保证不提示)← CopySync 依赖这个");+ t = beginStage(3, "detectMetadataForTypes(官方保证不提示)← PasteFerry 依赖这个");dispatch_semaphore_t sem = dispatch_semaphore_create(0);[pb detectMetadataForTypes:[NSSet setWithObject:NSPasteboardMetadataTypeContentType]completionHandler:^(NSDictionary<NSPasteboardMetadataType, id> *md, NSError *err) {@@ -140,7 +140,7 @@ static void probe(NSPasteboard *pb, NSInteger change) {}// ── 阶段 4:读取实际内容 ───────────────────────────────────- // CopySync 的 A 端必须拿到源文件路径才能在对端粘贴时回源。+ // PasteFerry 的 A 端必须拿到源文件路径才能在对端粘贴时回源。// 这一步几乎必然触发提示——关键是用户授权后能否永久静默。BOOL hasFile = [types containsObject:NSPasteboardTypeFileURL];if (hasFile) {@@ -208,7 +208,7 @@ int main(int argc, const char *argv[]) {// reportAccessBehavior → AppKit → ViewBridge -[NSCFRunLoopSemaphore wait]// → NSException raise → SIGSEGV//- // 这条约束对 CopySync 同样成立:Go daemon 必须把剪贴板 cgo 调用+ // 这条约束对 PasteFerry 同样成立:Go daemon 必须把剪贴板 cgo 调用// 调度到主线程,不能在任意 goroutine 里直接调。__block NSInteger last = pb.changeCount;__block int rounds = 0;diff --git a/spikes/promise/main.m b/spikes/promise/main.mindex 03f60e6..b9b8cbf 100644--- a/spikes/promise/main.m+++ b/spikes/promise/main.m@@ -1,6 +1,6 @@// Spike B — NSFilePromiseProvider 可用性与兼容性验证//-// 目的:验证 CopySync 的核心机制是否成立——+// 目的:验证 PasteFerry 的核心机制是否成立——// 1. 往剪贴板写 file promise 后,目标 App 粘贴时能否触发回调?// (这是「感知到对方按下 Cmd+V」的唯一途径)// 2. 回调里能否长时间阻塞(模拟跨网络拉取)而不被系统超时杀掉?@@ -55,7 +55,7 @@ static void say(const char *fmt, ...) {// ★ 这才是真正的「用户按下了 Cmd+V」信号。// 系统给我们一个目标 URL,我们在这里把数据写进去。-// CopySync 正式实现中,这里会发出 PullRequest 并把网络流直接写入 url。+// PasteFerry 正式实现中,这里会发出 PullRequest 并把网络流直接写入 url。- (void)filePromiseProvider:(NSFilePromiseProvider *)providerwritePromiseToURL:(NSURL *)urlcompletionHandler:(void (^)(NSError *))done {@@ -81,7 +81,7 @@ static void say(const char *fmt, ...) {NSError *err = nil;NSString *body = [NSString stringWithFormat:- @"CopySync spike B\n写入时刻: %@\n阻塞时长: %.1f 秒\n用户粘贴延迟: %.1f 秒\n",+ @"PasteFerry spike B\n写入时刻: %@\n阻塞时长: %.1f 秒\n用户粘贴延迟: %.1f 秒\n",NSDate.date, gFakeLatency, sincePaste];if (isFolder) {@@ -142,13 +142,13 @@ static void say(const char *fmt, ...) {fprintf(stderr, "\n");// 此刻才落盘。真实实现中这里是 DataChannel → zstd → tar 的流式写入。- NSString *dir = [NSTemporaryDirectory() stringByAppendingPathComponent:@"copysync-lazy"];+ NSString *dir = [NSTemporaryDirectory() stringByAppendingPathComponent:@"pasteferry-lazy"];[NSFileManager.defaultManager createDirectoryAtPath:dirwithIntermediateDirectories:YES attributes:nil error:nil];- NSString *path = [dir stringByAppendingPathComponent:@"copysync-lazy.txt"];+ NSString *path = [dir stringByAppendingPathComponent:@"pasteferry-lazy.txt"];NSError *err = nil;[[NSString stringWithFormat:- @"CopySync — 延迟粘贴验证\n落盘时刻: %@\n阻塞时长: %.1f 秒\n粘贴延迟: %.1f 秒\n",+ @"PasteFerry — 延迟粘贴验证\n落盘时刻: %@\n阻塞时长: %.1f 秒\n粘贴延迟: %.1f 秒\n",NSDate.date, gFakeLatency, since]writeToFile:path atomically:YES encoding:NSUTF8StringEncoding error:&err];@@ -213,7 +213,7 @@ static void writeToPasteboard(NSArray *objects, const char *what) {// 对照组:传统的真实文件 URL。用来区分「App 不支持 promise」和「App 完全不能粘文件」。static void writeRealFile(void) {NSURL *dir = [NSURL fileURLWithPath:NSTemporaryDirectory()];- NSURL *f = [dir URLByAppendingPathComponent:@"copysync-real-file.txt"];+ NSURL *f = [dir URLByAppendingPathComponent:@"pasteferry-real-file.txt"];[@"这是一个真实存在的文件(对照组)\n" writeToURL:f atomically:YESencoding:NSUTF8StringEncoding error:nil];writeToPasteboard(@[f], "对照组 — 传统 file-url(文件已真实存在)");@@ -226,13 +226,13 @@ static void writeRealFile(void) {// 返回 NO 表示命令无法识别。static BOOL doCommand(NSString *cmd) {if ([cmd isEqualToString:@"1"] || [cmd isEqualToString:@"single"]) {- writeToPasteboard(@[makeProvider(@"copysync-single.txt", NO)], "单个文件 promise");+ writeToPasteboard(@[makeProvider(@"pasteferry-single.txt", NO)], "单个文件 promise");} else if ([cmd isEqualToString:@"2"] || [cmd isEqualToString:@"folder"]) {- writeToPasteboard(@[makeProvider(@"copysync-folder", YES)], "文件夹 promise");+ writeToPasteboard(@[makeProvider(@"pasteferry-folder", YES)], "文件夹 promise");} else if ([cmd isEqualToString:@"3"] || [cmd isEqualToString:@"multi"]) {- writeToPasteboard(@[makeProvider(@"copysync-a.txt", NO),- makeProvider(@"copysync-b.txt", NO),- makeProvider(@"copysync-c.txt", NO)],+ writeToPasteboard(@[makeProvider(@"pasteferry-a.txt", NO),+ makeProvider(@"pasteferry-b.txt", NO),+ makeProvider(@"pasteferry-c.txt", NO)],"多文件 promise(3 个)");} else if ([cmd isEqualToString:@"4"] || [cmd isEqualToString:@"real"]) {writeRealFile();@@ -264,7 +264,7 @@ int main(int argc, const char *argv[]) {gDelegate = SpikeDelegate.new;gLazyOwner = LazyFileOwner.new; // 必须保持存活,否则系统回调时 owner 已释放gWorkQueue = NSOperationQueue.new;- gWorkQueue.name = @"copysync.spike.promise";+ gWorkQueue.name = @"pasteferry.spike.promise";gWorkQueue.maxConcurrentOperationCount = 4;NSApplication *app = NSApplication.sharedApplication;diff --git a/spikes/receiver/main.m b/spikes/receiver/main.mindex a5849c1..ccf9d34 100644--- a/spikes/receiver/main.m+++ b/spikes/receiver/main.m@@ -18,7 +18,7 @@ int main(int argc, const char *argv[]) {NSApplication *app = NSApplication.sharedApplication;[app setActivationPolicy:NSApplicationActivationPolicyAccessory];- NSString *destPath = argc > 1 ? @(argv[1]) : @"/tmp/copysync-paste-dest";+ NSString *destPath = argc > 1 ? @(argv[1]) : @"/tmp/pasteferry-paste-dest";NSURL *dest = [NSURL fileURLWithPath:destPath];[NSFileManager.defaultManager createDirectoryAtURL:destwithIntermediateDirectories:YES attributes:nil error:nil];diff --git a/spikes/results.md b/spikes/results.mdindex b04a624..49e4bf0 100644--- a/spikes/results.md+++ b/spikes/results.md@@ -14,7 +14,7 @@- 需 `defaults write <bundle_id> EnablePasteboardPrivacyDeveloperPreview -bool yes` 才生效- **下一个 macOS 大版本将强制执行**-所以今天不做任何事也能正常工作,但这是颗定时炸弹。CopySync 的 daemon 正是+所以今天不做任何事也能正常工作,但这是颗定时炸弹。隔空贴的 daemon 正是「后台程序化读剪贴板」,完全命中被拦截的场景,必须现在就按新机制设计。参考:[macOS 16 will warn when apps access pasteboard](https://appletreats.substack.com/p/macos-16-will-warn-when-apps-access)@@ -39,7 +39,7 @@`detectMetadataForTypes:` 成功返回 `ContentType = public.plain-text`,并能正确判断 `conformsToType:` 的文件夹 / 图片 / 纯文本归属。-意味着 CopySync 可以**免提示地**完成:+意味着隔空贴可以**免提示地**完成:- 感知剪贴板变化(changeCount)- 判断复制的是文件 / 文件夹 / 文本 / 图片(detectMetadata + types)diff --git a/spikes/test-privacy.sh b/spikes/test-privacy.shindex 7ed403a..71025a6 100755--- a/spikes/test-privacy.sh+++ b/spikes/test-privacy.sh@@ -4,21 +4,21 @@# 同一套读取操作,分别在「隐私机制关闭」和「隐私机制开启」下各跑一轮,# 直接对比哪些操作会被拦截。开启的那一轮预演的就是下一个 macOS 大版本的行为。#-# 读方 = SpikeA (com.copysync.spike.privacy)-# 写方 = SpikeC (com.copysync.spike.writer) ← 独立 bundle id 的真实 GUI App,+# 读方 = SpikeA (com.pasteferry.spike.privacy)+# 写方 = SpikeC (com.pasteferry.spike.writer) ← 独立 bundle id 的真实 GUI App,# 这点很重要:pbcopy/osascript 是命令行工具,TCC 可能不当作「其他 App」set -uo pipefailcd "$(dirname "$0")"-BUNDLE=com.copysync.spike.privacy+BUNDLE=com.pasteferry.spike.privacyA=./build/SpikeA.app/Contents/MacOS/SpikeAC=./build/SpikeC.app/Contents/MacOS/SpikeC-TESTFILE=/tmp/copysync-spike-test.txt+TESTFILE=/tmp/pasteferry-spike-test.txtMODE=${1:-file} # file | text | image[[ -x "$A" && -x "$C" ]] || { echo "请先运行 ./build.sh"; exit 1; }-echo "CopySync spike 测试文件 $(date)" > "$TESTFILE"+echo "PasteFerry spike 测试文件 $(date)" > "$TESTFILE"# 等待进程结束,最多 $2 秒。返回 1 表示超时(通常意味着弹窗在等待用户点击)wait_pid() {@@ -73,7 +73,7 @@ cat <<EOF对比要点━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━· 阶段 1/2/3 在两轮中是否都无阻塞?- → 决定 CopySync 能否免提示地「感知变化 + 判断类型」+ → 决定 PasteFerry 能否免提示地「感知变化 + 判断类型」· 阶段 4(读实际内容)在第 2 轮是否阻塞/弹窗?→ 决定 A 端拿源文件路径是否需要用户授权· 阶段 5 的 accessBehavior 是否从 Default 迁移到 Ask?diff --git a/tools/dmg/background.swift b/tools/dmg/background.swiftindex 7347422..a7d4f5a 100644--- a/tools/dmg/background.swift+++ b/tools/dmg/background.swift@@ -43,8 +43,8 @@ func draw() {faint.setStroke()arrow.stroke()- text("把 CopySync 拖到「应用程序」文件夹", size: 14, weight: .medium, color: ink, centerTop: 300)- text("Drag CopySync to the Applications folder", size: 12, weight: .regular, color: dim, centerTop: 322)+ text("把 PasteFerry 拖到「应用程序」文件夹", size: 14, weight: .medium, color: ink, centerTop: 300)+ text("Drag PasteFerry to the Applications folder", size: 12, weight: .regular, color: dim, centerTop: 322)text("首次打开如被拦截:系统设置 → 隐私与安全性 → 仍要打开", size: 11, weight: .regular,color: dim, centerTop: 366)}diff --git a/tools/icon/render.swift b/tools/icon/render.swiftindex 5c40406..0670a9f 100644--- a/tools/icon/render.swift+++ b/tools/icon/render.swift@@ -1,4 +1,4 @@-// 绘制 CopySync 的 App 图标,输出各尺寸 PNG。+// 绘制 PasteFerry 的 App 图标,输出各尺寸 PNG。//// swift tools/icon/render.swift <输出目录>// swift tools/icon/render.swift <输出目录> --windows # Windows 用:主体放大填满画布,再用 ico.py 打包diff --git a/tools/installer/copysync.iss b/tools/installer/pasteferry.isssimilarity index 52%rename from tools/installer/copysync.issrename to tools/installer/pasteferry.issindex 69a8b65..a03b8f2 100644--- a/tools/installer/copysync.iss+++ b/tools/installer/pasteferry.iss@@ -1,15 +1,15 @@-; CopySync 的 Windows 安装程序(Inno Setup 6)。由 scripts\build-windows.ps1 调用:+; PasteFerry 的 Windows 安装程序(Inno Setup 6)。由 scripts\build-windows.ps1 调用:;-; iscc /DAppVersion=1.3.2 /DSourceDir=<构建好的目录> /DOutputDir=<输出目录> tools\installer\copysync.iss+; iscc /DAppVersion=1.3.2 /DSourceDir=<构建好的目录> /DOutputDir=<输出目录> tools\installer\pasteferry.iss;-; 按用户安装:装到 %LOCALAPPDATA%\Programs\CopySync,不需要管理员权限、不弹 UAC。-; 数据目录 %LOCALAPPDATA%\CopySync 与安装目录分开,升级、重装都不受影响。+; 按用户安装:装到 %LOCALAPPDATA%\Programs\PasteFerry,不需要管理员权限、不弹 UAC。+; 数据目录 %LOCALAPPDATA%\PasteFerry 与安装目录分开,升级、重装都不受影响。#ifndef AppVersion#define AppVersion "0.0.0"#endif#ifndef SourceDir- #define SourceDir "..\..\dist\windows\CopySync"+ #define SourceDir "..\..\dist\windows\PasteFerry"#endif#ifndef OutputDir#define OutputDir "..\..\dist\windows"@@ -18,18 +18,20 @@[Setup]; AppId 一旦发布就不能再改:Windows 靠它认出这是同一个程序的升级AppId={{13E09E3B-04CA-435D-A596-19D818B1BE24}-AppName=CopySync+AppName=PasteFerryAppVersion={#AppVersion}-AppVerName=CopySync {#AppVersion}+AppVerName=PasteFerry {#AppVersion}AppPublisher=baiyuzeAppPublisherURL=https://baiyuze.github.io/pasteferry/AppSupportURL=https://github.com/baiyuze/pasteferry/issues-DefaultDirName={localappdata}\Programs\CopySync+DefaultDirName={localappdata}\Programs\PasteFerry+; 2.0.0 之前叫 CopySync,装在 Programs\CopySync:不沿用旧目录,旧目录在安装时删掉+UsePreviousAppDir=noDisableDirPage=yesDisableProgramGroupPage=yesPrivilegesRequired=lowestOutputDir={#OutputDir}-OutputBaseFilename=CopySync-Setup+OutputBaseFilename=PasteFerry-SetupCompression=lzma2SolidCompression=yesWizardStyle=modern@@ -38,8 +40,8 @@ ArchitecturesInstallIn64BitMode=x64compatible; 任意版本的 Windows 10 与 11:Flutter 引擎与 Go 都要求 Windows 10,Windows 7、8 跑不起来MinVersion=10.0SetupIconFile=..\..\ui\windows\runner\resources\app_icon.ico-UninstallDisplayIcon={app}\CopySync.exe-UninstallDisplayName=CopySync+UninstallDisplayIcon={app}\PasteFerry.exe+UninstallDisplayName=PasteFerry; 用「重启管理器」关掉正在运行的界面,免得文件被占用CloseApplications=yesRestartApplications=no@@ -55,39 +57,55 @@ Name: "chinesetraditional"; MessagesFile: "compiler:Languages\ChineseTraditional#endifName: "english"; MessagesFile: "compiler:Default.isl"+[InstallDelete]+Type: filesandordirs; Name: "{localappdata}\Programs\CopySync"+[Files]Source: "{#SourceDir}\*"; DestDir: "{app}"; Flags: recursesubdirs ignoreversion[Icons]-Name: "{autoprograms}\CopySync"; Filename: "{app}\CopySync.exe"-Name: "{autodesktop}\CopySync"; Filename: "{app}\CopySync.exe"+Name: "{autoprograms}\PasteFerry"; Filename: "{app}\PasteFerry.exe"+Name: "{autodesktop}\PasteFerry"; Filename: "{app}\PasteFerry.exe"[Registry]; 卸载时删掉开机自启项与窗口位置记录。ValueType: none 表示安装时不写,只在卸载时删-Root: HKCU; Subkey: "Software\Microsoft\Windows\CurrentVersion\Run"; ValueName: "CopySync"; ValueType: none; Flags: uninsdeletevalue-Root: HKCU; Subkey: "Software\CopySync"; ValueType: none; Flags: uninsdeletekey+Root: HKCU; Subkey: "Software\Microsoft\Windows\CurrentVersion\Run"; ValueName: "PasteFerry"; ValueType: none; Flags: uninsdeletevalue+Root: HKCU; Subkey: "Software\PasteFerry"; ValueType: none; Flags: uninsdeletekey[Run]; 升级前停掉了后台服务;之前启用过后台同步的话,装完立刻重新拉起,不必等用户打开界面-Filename: "{app}\copysyncd.exe"; Parameters: "-supervise"; Flags: nowait runhidden; Check: AutostartRegistered-Filename: "{app}\CopySync.exe"; Description: "{cm:LaunchProgram,CopySync}"; Flags: nowait postinstall skipifsilent+Filename: "{app}\pasteferryd.exe"; Parameters: "-supervise"; Flags: nowait runhidden; Check: AutostartRegistered+Filename: "{app}\PasteFerry.exe"; Description: "{cm:LaunchProgram,PasteFerry}"; Flags: nowait postinstall skipifsilent[UninstallRun]-Filename: "{sys}\taskkill.exe"; Parameters: "/F /T /IM copysyncd.exe"; Flags: runhidden; RunOnceId: "StopDaemon"-Filename: "{sys}\taskkill.exe"; Parameters: "/F /IM CopySync.exe"; Flags: runhidden; RunOnceId: "StopUI"+Filename: "{sys}\taskkill.exe"; Parameters: "/F /T /IM pasteferryd.exe"; Flags: runhidden; RunOnceId: "StopDaemon"+Filename: "{sys}\taskkill.exe"; Parameters: "/F /IM PasteFerry.exe"; Flags: runhidden; RunOnceId: "StopUI"[Code]function AutostartRegistered: Boolean;begin- Result := RegValueExists(HKEY_CURRENT_USER, 'Software\Microsoft\Windows\CurrentVersion\Run', 'CopySync');+ Result := RegValueExists(HKEY_CURRENT_USER, 'Software\Microsoft\Windows\CurrentVersion\Run', 'PasteFerry');end;-// 后台服务(含守护进程)没有可见窗口,重启管理器关不掉它,安装前直接结束+// 后台服务(含守护进程)没有可见窗口,重启管理器关不掉它,安装前直接结束。+// 2.0.0 之前叫 CopySync:旧的界面与后台服务也结束掉,旧的开机自启项换成新的,+// 数据目录由新的后台服务第一次启动时挪过来function PrepareToInstall(var NeedsRestart: Boolean): String;varCode: Integer;+ RunKey: String;begin+ Exec(ExpandConstant('{sys}\taskkill.exe'), '/F /T /IM pasteferryd.exe', '', SW_HIDE, ewWaitUntilTerminated, Code);Exec(ExpandConstant('{sys}\taskkill.exe'), '/F /T /IM copysyncd.exe', '', SW_HIDE, ewWaitUntilTerminated, Code);+ Exec(ExpandConstant('{sys}\taskkill.exe'), '/F /IM CopySync.exe', '', SW_HIDE, ewWaitUntilTerminated, Code);+ RunKey := 'Software\Microsoft\Windows\CurrentVersion\Run';+ if RegValueExists(HKEY_CURRENT_USER, RunKey, 'CopySync') then+ begin+ RegWriteStringValue(HKEY_CURRENT_USER, RunKey, 'PasteFerry',+ '"' + ExpandConstant('{app}\pasteferryd.exe') + '" -supervise');+ RegDeleteValue(HKEY_CURRENT_USER, RunKey, 'CopySync');+ end;+ RegDeleteKeyIncludingSubkeys(HKEY_CURRENT_USER, 'Software\CopySync');Result := '';end;@@ -97,5 +115,5 @@ beginif MsgBox('是否同时删除复制记录、缓存与这台电脑的设备身份?' + #13#10 + #13#10 +'选「否」则保留,重新安装后配对关系和记录都还在。',mbConfirmation, MB_YESNO or MB_DEFBUTTON2) = IDYES then- DelTree(ExpandConstant('{localappdata}\CopySync'), True, True, True);+ DelTree(ExpandConstant('{localappdata}\PasteFerry'), True, True, True);end;diff --git a/tools/linux/com.copysync.app.desktop b/tools/linux/com.pasteferry.app.desktopsimilarity index 90%rename from tools/linux/com.copysync.app.desktoprename to tools/linux/com.pasteferry.app.desktopindex d8be284..c03bf4b 100644--- a/tools/linux/com.copysync.app.desktop+++ b/tools/linux/com.pasteferry.app.desktop@@ -1,6 +1,6 @@[Desktop Entry]Type=Application-Name=CopySync+Name=PasteFerryGenericName=Clipboard SyncGenericName[zh_CN]=剪贴板同步GenericName[zh_TW]=剪貼簿同步@@ -12,12 +12,12 @@ Comment[zh_TW]=在電腦之間同步複製的內容Comment[zh_HK]=在電腦之間同步複製的內容Comment[ja]=コンピューター間でコピーした内容を同期Exec=@EXEC@-Icon=com.copysync.app+Icon=com.pasteferry.appTerminal=falseCategories=Utility;Keywords=clipboard;sync;copy;paste;Keywords[zh_CN]=剪贴板;同步;复制;粘贴;Keywords[zh_TW]=剪貼簿;同步;複製;貼上;Keywords[zh_HK]=剪貼簿;同步;複製;貼上;-StartupWMClass=com.copysync.app+StartupWMClass=com.pasteferry.appStartupNotify=truediff --git a/tools/linux/icons/com.copysync.app-256.png b/tools/linux/icons/com.pasteferry.app-256.pngsimilarity index 100%rename from tools/linux/icons/com.copysync.app-256.pngrename to tools/linux/icons/com.pasteferry.app-256.pngdiff --git a/tools/linux/icons/com.copysync.app-512.png b/tools/linux/icons/com.pasteferry.app-512.pngsimilarity index 100%rename from tools/linux/icons/com.copysync.app-512.pngrename to tools/linux/icons/com.pasteferry.app-512.pngdiff --git a/tools/linux/install.sh b/tools/linux/install.shindex 26c746c..b243872 100755--- a/tools/linux/install.sh+++ b/tools/linux/install.sh@@ -1,5 +1,5 @@#!/usr/bin/env bash-# 把解压出来的 CopySync 加进当前用户的应用菜单(不需要 root)。+# 把解压出来的 PasteFerry 加进当前用户的应用菜单(不需要 root)。## ./install.sh#@@ -10,10 +10,10 @@ data=${XDG_DATA_HOME:-$HOME/.local/share}mkdir -p "$data/applications" "$data/icons/hicolor/256x256/apps" "$data/icons/hicolor/512x512/apps"# Exec 里的路径按 Desktop Entry 规范放在引号里,允许文件夹名带空格-sed "s#@EXEC@#\"$here/copysync\"#" "$here/share/com.copysync.app.desktop" > "$data/applications/com.copysync.app.desktop"-cp "$here/share/com.copysync.app-256.png" "$data/icons/hicolor/256x256/apps/com.copysync.app.png"-cp "$here/share/com.copysync.app-512.png" "$data/icons/hicolor/512x512/apps/com.copysync.app.png"+sed "s#@EXEC@#\"$here/pasteferry\"#" "$here/share/com.pasteferry.app.desktop" > "$data/applications/com.pasteferry.app.desktop"+cp "$here/share/com.pasteferry.app-256.png" "$data/icons/hicolor/256x256/apps/com.pasteferry.app.png"+cp "$here/share/com.pasteferry.app-512.png" "$data/icons/hicolor/512x512/apps/com.pasteferry.app.png"command -v update-desktop-database >/dev/null && update-desktop-database -q "$data/applications" || truecommand -v gtk-update-icon-cache >/dev/null && gtk-update-icon-cache -q -t "$data/icons/hicolor" || true-echo "已把 CopySync 加进应用菜单。也可以直接运行:$here/copysync"+echo "已把 PasteFerry 加进应用菜单。也可以直接运行:$here/pasteferry"diff --git a/tools/linux/uninstall.sh b/tools/linux/uninstall.shindex 577cdae..31897ef 100755--- a/tools/linux/uninstall.sh+++ b/tools/linux/uninstall.sh@@ -1,14 +1,14 @@#!/usr/bin/env bash-# 撤销 install.sh:从应用菜单移除 CopySync,停用后台同步与开机自启。-# 历史记录与配对关系保存在 ~/.local/share/copysync,不会删除;不再需要时手动删掉这个文件夹。+# 撤销 install.sh:从应用菜单移除 PasteFerry,停用后台同步与开机自启。+# 历史记录与配对关系保存在 ~/.local/share/pasteferry,不会删除;不再需要时手动删掉这个文件夹。set -euo pipefaildata=${XDG_DATA_HOME:-$HOME/.local/share}config=${XDG_CONFIG_HOME:-$HOME/.config}-pkill -u "$(id -u)" -x copysyncd 2>/dev/null || true-rm -f "$config/autostart/copysync-daemon.desktop" \- "$data/applications/com.copysync.app.desktop" \- "$data/icons/hicolor/256x256/apps/com.copysync.app.png" \- "$data/icons/hicolor/512x512/apps/com.copysync.app.png"+pkill -u "$(id -u)" -x pasteferryd 2>/dev/null || true+rm -f "$config/autostart/pasteferry-daemon.desktop" \+ "$data/applications/com.pasteferry.app.desktop" \+ "$data/icons/hicolor/256x256/apps/com.pasteferry.app.png" \+ "$data/icons/hicolor/512x512/apps/com.pasteferry.app.png"command -v update-desktop-database >/dev/null && update-desktop-database -q "$data/applications" || true-echo "已移除。现在可以删掉 CopySync 所在的文件夹。"+echo "已移除。现在可以删掉 PasteFerry 所在的文件夹。"diff --git a/tools/natlab/docker.sh b/tools/natlab/docker.shindex f97c220..5e9678c 100755--- a/tools/natlab/docker.sh+++ b/tools/natlab/docker.sh@@ -17,7 +17,7 @@ echo "▶ 编译 natlab(linux/$ARCH)"(cd client-core && CGO_ENABLED=0 GOOS=linux GOARCH=$ARCH go build -o "$OUT/natlab" ./cmd/natlab)echo "▶ 准备实验室镜像"-docker build -q -t copysync-natlab --build-arg APK_MIRROR="${APK_MIRROR:-}" tools/natlab >/dev/null+docker build -q -t pasteferry-natlab --build-arg APK_MIRROR="${APK_MIRROR:-}" tools/natlab >/dev/nulldocker run --rm --privileged -e NATLAB_ONLY -v "$OUT:/lab:ro" -v "$PWD/tools/natlab:/scripts:ro" \- copysync-natlab bash /scripts/run.sh /lab/natlab+ pasteferry-natlab bash /scripts/run.sh /lab/natlabdiff --git a/tools/site/build.py b/tools/site/build.pyindex 6fc89fe..8f17a63 100644--- a/tools/site/build.py+++ b/tools/site/build.py@@ -19,7 +19,7 @@ ROOT = Path(__file__).resolve().parents[2]DOCS = ROOT / "docs"SITE = "https://baiyuze.github.io/pasteferry/"REPO = "https://github.com/baiyuze/pasteferry"-# 网站所在的路径,404 页面用绝对路径引用资源。2026-10 从 /copysync/ 改名而来,+# 网站所在的路径,404 页面用绝对路径引用资源。2.0.0 改名前在 /copysync/,# 旧路径由 baiyuze.github.io 仓库里的跳转页接住BASE = "/pasteferry/"DL = REPO + "/releases/latest/download/"@@ -90,7 +90,7 @@ REDIRECT = """ <script>(function () {try {var paths = PATHS;- var pick = localStorage.getItem("copysync-lang");+ var pick = localStorage.getItem("pasteferry-lang");if (!paths.hasOwnProperty(pick)) {pick = "";if (/bot|crawl|spider|slurp|lighthouse/i.test(navigator.userAgent)) return;@@ -208,8 +208,7 @@ def header(c: dict, code: str, up: str, sub: str = "") -> str:{lang_menu(c, code, up, sub)}</nav></div>- </header>- <p class="renamed"><span class="wrap">{c["rename_note"]}</span></p>"""+ </header>"""# 三种连接方式的小插图:设备是笔记本与服务器的轮廓,虚线框是一个网络,蓝线是复制的内容走的路@@ -661,98 +660,98 @@ LAN_IP = "192.168.1.20"TRANSCRIPTS = {"zh": {"win": f"""> 停止旧版本-> 安装到 C:\\Program Files\\CopySync Server-> 注册服务 CopySyncServer(中转地址 {LAN_IP})+> 安装到 C:\\Program Files\\PasteFerry Server+> 注册服务 PasteFerryServer(中转地址 {LAN_IP})> 在 Windows 防火墙里放行> 启动√ 已启动-安装完成:copysync-server {VERSION},作为 Windows 服务开机自动运行-在每台电脑的 CopySync「设置 → 信令服务器地址」填:+安装完成:pasteferry-server {VERSION},作为 Windows 服务开机自动运行+在每台电脑的 PasteFerry「设置 → 信令服务器地址」填:ws://{LAN_IP}:8787/signal- 程序 C:\\Program Files\\CopySync Server- 日志 C:\\ProgramData\\CopySync Server\\server.log- 重启 Restart-Service CopySyncServer(管理员 PowerShell)+ 程序 C:\\Program Files\\PasteFerry Server+ 日志 C:\\ProgramData\\PasteFerry Server\\server.log+ 重启 Restart-Service PasteFerryServer(管理员 PowerShell)卸载 双击 uninstall.cmd""","mac": f"""▶ 停止旧版本-▶ 安装到 /Users/me/Library/Application Support/CopySync Server+▶ 安装到 /Users/me/Library/Application Support/PasteFerry Server▶ 写入 LaunchAgent(中转地址 {LAN_IP})▶ 启动✓ 已启动-安装完成:copysync-server {VERSION},登录这台 Mac 后自动运行-在每台电脑的 CopySync「设置 → 信令服务器地址」填:+安装完成:pasteferry-server {VERSION},登录这台 Mac 后自动运行+在每台电脑的 PasteFerry「设置 → 信令服务器地址」填:ws://{LAN_IP}:8787/signal- 日志 /Users/me/Library/Logs/CopySync/server.log- 重启 launchctl kickstart -k gui/501/com.copysync.server+ 日志 /Users/me/Library/Logs/PasteFerry/server.log+ 重启 launchctl kickstart -k gui/501/com.pasteferry.server卸载 ./install.sh uninstall""","linux": f"""▶ 安装二进制到 /usr/local/bin▶ 写入 systemd 单元-▶ 生成配置 /etc/copysync/server.env(中转地址 {LAN_IP})+▶ 生成配置 /etc/pasteferry/server.env(中转地址 {LAN_IP})▶ 启动✓ 已启动-安装完成:copysync-server {VERSION}-在每台电脑的 CopySync「设置 → 信令服务器地址」填:+安装完成:pasteferry-server {VERSION}+在每台电脑的 PasteFerry「设置 → 信令服务器地址」填:ws://{LAN_IP}:8787/signal- 配置 /etc/copysync/server.env- 日志 journalctl -u copysync-server -f- 重启 systemctl restart copysync-server+ 配置 /etc/pasteferry/server.env+ 日志 journalctl -u pasteferry-server -f+ 重启 systemctl restart pasteferry-server卸载 sudo ./install.sh uninstall防火墙需放行:TCP 8787(信令)、UDP 3478(STUN 与 TURN)、UDP 32768-60999(中转端口,系统随机分配)""",},"en": {"win": f"""> Stopping the running version-> Installing to C:\\Program Files\\CopySync Server-> Registering the service CopySyncServer (relay address {LAN_IP})+> Installing to C:\\Program Files\\PasteFerry Server+> Registering the service PasteFerryServer (relay address {LAN_IP})> Allowing it through Windows Firewall> Starting√ Running-Installed: copysync-server {VERSION}. It runs as a Windows service and starts with Windows.-In CopySync on each computer, set Settings > Signaling server to:+Installed: pasteferry-server {VERSION}. It runs as a Windows service and starts with Windows.+In PasteFerry on each computer, set Settings > Signaling server to:ws://{LAN_IP}:8787/signal- Program C:\\Program Files\\CopySync Server- Logs C:\\ProgramData\\CopySync Server\\server.log- Restart Restart-Service CopySyncServer (in an administrator PowerShell)+ Program C:\\Program Files\\PasteFerry Server+ Logs C:\\ProgramData\\PasteFerry Server\\server.log+ Restart Restart-Service PasteFerryServer (in an administrator PowerShell)Uninstall double-click uninstall.cmd""","mac": f"""▶ Stopping the running version-▶ Installing to /Users/me/Library/Application Support/CopySync Server+▶ Installing to /Users/me/Library/Application Support/PasteFerry Server▶ Writing the LaunchAgent (relay address {LAN_IP})▶ Starting✓ Running-Installed: copysync-server {VERSION}. It starts whenever you log in to this Mac.-In CopySync on each computer, set Settings → Signaling server to:+Installed: pasteferry-server {VERSION}. It starts whenever you log in to this Mac.+In PasteFerry on each computer, set Settings → Signaling server to:ws://{LAN_IP}:8787/signal- Logs /Users/me/Library/Logs/CopySync/server.log- Restart launchctl kickstart -k gui/501/com.copysync.server+ Logs /Users/me/Library/Logs/PasteFerry/server.log+ Restart launchctl kickstart -k gui/501/com.pasteferry.serverUninstall ./install.sh uninstall""","linux": f"""▶ Installing the binary to /usr/local/bin▶ Writing the systemd unit-▶ Writing /etc/copysync/server.env (relay address {LAN_IP})+▶ Writing /etc/pasteferry/server.env (relay address {LAN_IP})▶ Starting✓ Running-Installed: copysync-server {VERSION}-In CopySync on each computer, set Settings → Signaling server to:+Installed: pasteferry-server {VERSION}+In PasteFerry on each computer, set Settings → Signaling server to:ws://{LAN_IP}:8787/signal- Config /etc/copysync/server.env- Logs journalctl -u copysync-server -f- Restart systemctl restart copysync-server+ Config /etc/pasteferry/server.env+ Logs journalctl -u pasteferry-server -f+ Restart systemctl restart pasteferry-serverUninstall sudo ./install.sh uninstallOpen in your firewall: TCP 8787 (signaling), UDP 3478 (STUN and TURN), UDP 32768-60999 (relay ports, assigned by the OS)""",@@ -894,18 +893,18 @@ def server_page(code: str) -> str:shots = up + shots_dir(code)t = TRANSCRIPTS["zh" if code.startswith("zh") else "en"]- linux_dl = f"""curl -LO {DL}copysync-server-linux-amd64.tar.gz-tar xzf copysync-server-linux-amd64.tar.gz-cd copysync-server-linux-amd64+ linux_dl = f"""curl -LO {DL}pasteferry-server-linux-amd64.tar.gz+tar xzf pasteferry-server-linux-amd64.tar.gz+cd pasteferry-server-linux-amd64sudo ./install.sh"""- mac_dl = f"""curl -LO {DL}copysync-server-macos.tar.gz-tar xzf copysync-server-macos.tar.gz-cd copysync-server-macos+ mac_dl = f"""curl -LO {DL}pasteferry-server-macos.tar.gz+tar xzf pasteferry-server-macos.tar.gz+cd pasteferry-server-macos./install.sh"""w, m, l = g["win"], g["mac"], g["linux"]explorer = []- for name, kind in [("copysync-server.exe", "exe"), ("install.cmd", "cmd"), ("install.ps1", "doc"),+ for name, kind in [("pasteferry-server.exe", "exe"), ("install.cmd", "cmd"), ("install.ps1", "doc"),("README.md", "doc"), ("uninstall.cmd", "cmd")]:# 要双击的那个文件标出来mark = f'<em>{w["double_click"]}</em>' if name == "install.cmd" else ""@@ -999,14 +998,14 @@ cd copysync-server-macos<ol class="steps">{items(w["steps"])}</ol>- <a class="button" href="{DL}copysync-server-windows-amd64.zip">{DOWN}{w["download"]}</a>+ <a class="button" href="{DL}pasteferry-server-windows-amd64.zip">{DOWN}{w["download"]}</a><ul class="points">{items(w["notes"])}</ul></div><div class="os-figures"><figure class="explorer" role="img" aria-label="{esc(w["explorer_label"])}">- <div class="t-bar win"><span class="t-tab folder">copysync-server-windows-amd64</span><span class="t-ctl" aria-hidden="true"><i></i><i></i><i></i></span></div>+ <div class="t-bar win"><span class="t-tab folder">pasteferry-server-windows-amd64</span><span class="t-ctl" aria-hidden="true"><i></i><i></i><i></i></span></div><ul class="files">{explorer}</ul>@@ -1031,7 +1030,7 @@ cd copysync-server-macos</ul></div><div class="os-figures">- {term("mac", "copysync-server-macos — zsh", transcript(t["mac"], "%", "./install.sh"), m["term_label"])}+ {term("mac", "pasteferry-server-macos — zsh", transcript(t["mac"], "%", "./install.sh"), m["term_label"])}</div></div>{manage(g["manage_caption"], m["manage"])}@@ -1123,9 +1122,9 @@ def cloud_page(code: str) -> str:links = {"home": home_href, "lan": base + LAN, "server": base + GUIDE, "ts": base + TAILSCALE,"start": base + START, "deploy": f"{REPO}/blob/main/server/deploy/README.md"}d = cl["diagram"]- install = f"""curl -LO {DL}copysync-server-linux-amd64.tar.gz-tar xzf copysync-server-linux-amd64.tar.gz-cd copysync-server-linux-amd64+ install = f"""curl -LO {DL}pasteferry-server-linux-amd64.tar.gz+tar xzf pasteferry-server-linux-amd64.tar.gz+cd pasteferry-server-linux-amd64sudo ./install.sh {CLOUD_IP}"""rules = "\n".join(" <tr>" + "".join(f"<td>{x}</td>" for x in row) + "</tr>" for row in cl["rules"])@@ -1559,7 +1558,7 @@ def download_page(code: str) -> str:home_href = up + (path or "./")base = up + pathlinks = {"start": base + START, "server": base + START + "#server", "releases": REPO + "/releases",- "sums": DL + "SHA256SUMS", "universal": DL + "CopySync.dmg", "portable": DL + "CopySync-windows-x64.zip",+ "sums": DL + "SHA256SUMS", "universal": DL + "PasteFerry.dmg", "portable": DL + "PasteFerry-windows-x64.zip","notes": REPO + "/releases/latest", "lan": base + LAN}w, m, lx = d["win"], d["mac"], d["linux"]@@ -1592,7 +1591,7 @@ def download_page(code: str) -> str:<div class="os-grid"><div class="os-steps"><div class="dl-row">- {button("CopySync-Setup.exe", w["setup"])}+ {button("PasteFerry-Setup.exe", w["setup"])}</div><p class="small">{fill(w["portable"], links)}</p><ol class="steps">@@ -1610,8 +1609,8 @@ def download_page(code: str) -> str:<div class="os-grid"><div class="os-steps"><div class="dl-row" data-mac-chip>- {button("CopySync-mac-apple-silicon.dmg", m["apple"])}- {button("CopySync-mac-intel.dmg", m["intel"], True)}+ {button("PasteFerry-mac-apple-silicon.dmg", m["apple"])}+ {button("PasteFerry-mac-intel.dmg", m["intel"], True)}</div><p class="small">{fill(m["universal"], links)}</p><ol class="steps">@@ -1633,16 +1632,16 @@ def download_page(code: str) -> str:<div class="os-steps"><h4>{lx["deb_h"]}</h4><div class="dl-row">- {button("CopySync-linux-amd64.deb", lx["x64"])}- {button("CopySync-linux-arm64.deb", lx["arm64"], True)}+ {button("PasteFerry-linux-amd64.deb", lx["x64"])}+ {button("PasteFerry-linux-arm64.deb", lx["arm64"], True)}</div>- {code_block(c, "sudo apt install ./CopySync-linux-amd64.deb")}+ {code_block(c, "sudo apt install ./PasteFerry-linux-amd64.deb")}<h4>{lx["tar_h"]}</h4><div class="dl-row">- {button("CopySync-linux-amd64.tar.gz", lx["x64"], True)}- {button("CopySync-linux-arm64.tar.gz", lx["arm64"], True)}+ {button("PasteFerry-linux-amd64.tar.gz", lx["x64"], True)}+ {button("PasteFerry-linux-arm64.tar.gz", lx["arm64"], True)}</div>- {code_block(c, "tar xzf CopySync-linux-amd64.tar.gz" + chr(10) + "./CopySync/install.sh")}+ {code_block(c, "tar xzf PasteFerry-linux-amd64.tar.gz" + chr(10) + "./PasteFerry/install.sh")}</div><ul class="points">{items(lx["notes"])}diff --git a/tools/site/content/en.py b/tools/site/content/en.pyindex 2d11ebd..d973965 100644--- a/tools/site/content/en.py+++ b/tools/site/content/en.py@@ -6,7 +6,6 @@ SITE = "https://baiyuze.github.io/pasteferry/"C = {"brand": "PasteFerry","brand_alt": ["隔空贴", "CopySync"],- "rename_note": "PasteFerry used to be called CopySync. The app and the downloads keep the old name until the next version.","title": "PasteFerry: sync the clipboard and files between Mac, Windows and Linux, across accounts and networks","description": "PasteFerry lets you copy on one computer and paste on another, Mac, Windows or Linux: text, images, files and folders. ""No shared account required. On the same network it works with no server at all; across networks, use a server "@@ -249,16 +248,16 @@ C = {"Return. On the same network, leave it empty.",],"win_steps": [- "Run CopySync-Setup.exe. It installs for the current user, no administrator rights needed."+ "Run PasteFerry-Setup.exe. It installs for the current user, no administrator rights needed.""<span class=\"aside\">PasteFerry isn't code-signed yet, so Windows says \"Windows protected your PC\": click More info, "- f"then Run anyway. To skip the installer, get the <a href=\"{REPO}/releases/latest/download/CopySync-windows-x64.zip\">portable zip</a>.</span>",+ f"then Run anyway. To skip the installer, get the <a href=\"{REPO}/releases/latest/download/PasteFerry-windows-x64.zip\">portable zip</a>.</span>","Open PasteFerry and click Turn on background sync. Allow it if Windows Firewall asks. After you close the window it ""keeps running in the notification area.","To sync across networks, enter your server address in Settings and press Enter. On the same network, leave it empty.",],"linux_steps": [- "On Ubuntu, Debian and similar, download the .deb and run <code>sudo apt install ./CopySync-linux-amd64.deb</code>; "- "on other distributions, download the tar.gz, extract it and run <code>./CopySync/install.sh</code>.",+ "On Ubuntu, Debian and similar, download the .deb and run <code>sudo apt install ./PasteFerry-linux-amd64.deb</code>; "+ "on other distributions, download the tar.gz, extract it and run <code>./PasteFerry/install.sh</code>.","Open PasteFerry from the app menu and click Turn on background sync. From then on it starts when you log in.","To sync across networks, enter your server address in Settings and press Enter. On the same network, leave it empty.",],@@ -332,7 +331,7 @@ C = {"isolation don't let devices see each other. In that case, on the computer entering the code, click On a different ""subnet? and enter the address shown under the other computer's code.","On Windows, allow PasteFerry when the firewall asks on first run; if you clicked Cancel, click Allow under Settings → "- "Local network. On a Mac, turn on CopySync Daemon in System Settings → Privacy & Security → Local Network. More in "+ "Local network. On a Mac, turn on PasteFerry Daemon in System Settings → Privacy & Security → Local Network. More in ""the <a href=\"{lan}#faq\">same network guide</a>.",]),("Windows? Linux? iPhone?", [@@ -427,7 +426,7 @@ C = {"manage_caption": "For later","win": {"steps": [- f'Download <a href="{REPO}/releases/latest/download/copysync-server-windows-amd64.zip">copysync-server-windows-amd64.zip</a> '+ f'Download <a href="{REPO}/releases/latest/download/pasteferry-server-windows-amd64.zip">pasteferry-server-windows-amd64.zip</a> '"and choose Extract All.","Open the extracted folder and double-click <code>install.cmd</code>.""<span class=\"aside\">If you see \"Windows protected your PC\", click More info, then Run anyway; when User Account "@@ -436,20 +435,20 @@ C = {],"download": "Download the Windows server","notes": [- "<strong>Runs as a Windows service:</strong> starts with Windows, no sign-in needed, no window. It appears as CopySync Server in Services.",- "<strong>Firewall already allowed:</strong> the script adds an inbound rule for copysync-server.exe only, so there are no ports to open.",+ "<strong>Runs as a Windows service:</strong> starts with Windows, no sign-in needed, no window. It appears as PasteFerry Server in Services.",+ "<strong>Firewall already allowed:</strong> the script adds an inbound rule for pasteferry-server.exe only, so there are no ports to open.","<strong>Wrong address picked</strong> (several network adapters, say from a VM or VPN): type <code>cmd</code> in the ""address bar of the extracted folder, press Enter and run <code>install.cmd 192.168.1.20</code> with your address.","Windows 10 and 11, x64.",],"double_click": "Double-click",- "explorer_label": "The extracted folder holds copysync-server.exe, install.cmd, install.ps1, README.md and uninstall.cmd; double-click install.cmd",+ "explorer_label": "The extracted folder holds pasteferry-server.exe, install.cmd, install.ps1, README.md and uninstall.cmd; double-click install.cmd","term_title": "Administrator: Windows PowerShell","term_label": "The window after install.cmd finishes: it stops the old version, installs, registers the service, allows it through the firewall and starts it, then prints the address ws://192.168.1.20:8787/signal","manage": [- ("Status", "<code>Get-Service CopySyncServer</code> in an administrator PowerShell, or find CopySync Server in Services"),- ("Logs", "<code>C:\\ProgramData\\CopySync Server\\server.log</code>"),- ("Restart", "<code>Restart-Service CopySyncServer</code> in an administrator PowerShell"),+ ("Status", "<code>Get-Service PasteFerryServer</code> in an administrator PowerShell, or find PasteFerry Server in Services"),+ ("Logs", "<code>C:\\ProgramData\\PasteFerry Server\\server.log</code>"),+ ("Restart", "<code>Restart-Service PasteFerryServer</code> in an administrator PowerShell"),("Upgrade", "Download the new version, extract it and double-click <code>install.cmd</code> again; your settings are kept"),("Uninstall", "Double-click <code>uninstall.cmd</code>; it removes the service, the firewall rule and the files"),],@@ -462,13 +461,13 @@ C = {"notes": ["<strong>No administrator rights needed.</strong> It runs in the background whenever you're logged in, and macOS restarts it if it exits.","<strong>Keep this Mac awake:</strong> in System Settings → Energy (Battery → Options on a laptop), turn on the option that prevents automatic sleep.",- "<strong>If the macOS firewall is on,</strong> the script ends with the command to allow copysync-server.",+ "<strong>If the macOS firewall is on,</strong> the script ends with the command to allow pasteferry-server.","Intel and Apple silicon, macOS 13 or later.",],"term_label": "Output of ./install.sh in Terminal: it installs, writes the LaunchAgent and starts the server, then prints the address ws://192.168.1.20:8787/signal","manage": [- ("Logs", "<code>~/Library/Logs/CopySync/server.log</code>"),- ("Restart", "<code>launchctl kickstart -k gui/$(id -u)/com.copysync.server</code>"),+ ("Logs", "<code>~/Library/Logs/PasteFerry/server.log</code>"),+ ("Restart", "<code>launchctl kickstart -k gui/$(id -u)/com.pasteferry.server</code>"),("Upgrade", "Download the new version, extract it and run <code>./install.sh</code> again; your settings are kept"),("Uninstall", "<code>./install.sh uninstall</code>"),],@@ -486,10 +485,10 @@ C = {],"term_label": "Output of sudo ./install.sh: it installs, writes the systemd unit and config and starts the server, then prints the address ws://192.168.1.20:8787/signal","manage": [- ("Status", "<code>systemctl status copysync-server</code>"),- ("Logs", "<code>journalctl -u copysync-server -f</code>"),- ("Restart", "<code>sudo systemctl restart copysync-server</code>"),- ("Config", "<code>/etc/copysync/server.env</code>; restart the service after editing"),+ ("Status", "<code>systemctl status pasteferry-server</code>"),+ ("Logs", "<code>journalctl -u pasteferry-server -f</code>"),+ ("Restart", "<code>sudo systemctl restart pasteferry-server</code>"),+ ("Config", "<code>/etc/pasteferry/server.env</code>; restart the service after editing"),("Upgrade", "Download the new version, extract it and run <code>sudo ./install.sh</code> again; your config is kept"),("Uninstall", "<code>sudo ./install.sh uninstall</code>"),],@@ -526,7 +525,7 @@ C = {]),("The server's address changed", ["Run the script again with the new address: <code>install.cmd new-address</code> on Windows, <code>./install.sh new-address</code> "- "on a Mac. On Linux, edit <code>-turn-ip</code> in <code>/etc/copysync/server.env</code> and restart the service. Then update "+ "on a Mac. On Linux, edit <code>-turn-ip</code> in <code>/etc/pasteferry/server.env</code> and restart the service. Then update ""the address on each computer.","Reserving the address in your router avoids this.",]),@@ -612,7 +611,7 @@ C = {"The <code>ws://203.0.113.10:8787/signal</code> address at the end is what you enter in the apps.",],"install_notes": [- "<strong>Registers a systemd service</strong> that starts on boot; the config is <code>/etc/copysync/server.env</code>.",+ "<strong>Registers a systemd service</strong> that starts on boot; the config is <code>/etc/pasteferry/server.env</code>.","<strong>Upgrade:</strong> download the new version, extract it and run <code>sudo ./install.sh</code> again; your config is kept.","<strong>Docker works too:</strong> see the <a href=\"{deploy}\">server deployment guide</a>.",],@@ -682,7 +681,7 @@ C = {"allow both.",],"win": [- "Run CopySync-Setup.exe; no administrator rights needed.<span class=\"aside\">If you see \"Windows protected your PC\", "+ "Run PasteFerry-Setup.exe; no administrator rights needed.<span class=\"aside\">If you see \"Windows protected your PC\", ""click More info, then Run anyway.</span>","Open PasteFerry and click Turn on background sync. Allow it if Windows Firewall asks. After you close the window it ""keeps running in the notification area.",@@ -757,7 +756,7 @@ C = {"clicked Cancel, click Allow under Settings → Local network in PasteFerry, which asks for ""administrator approval once."),("Local Network on macOS", "From macOS 15, the first time it reaches a device on your network, macOS asks whether "- "CopySync Daemon may find devices on your local network; allow it. If you declined, turn "+ "PasteFerry Daemon may find devices on your local network; allow it. If you declined, turn ""it on in System Settings → Privacy & Security → Local Network."),("No server address", "Leave the server field in Settings empty. To sync across networks later, add a server or use ""Tailscale; paired devices stay paired."),@@ -797,7 +796,7 @@ C = {"Make sure both are on the network with background sync on. Then try entering the other computer's address on the ""one entering the code: if that works, they're on different subnets, or the network blocks mDNS.","Still nothing? Check the other computer's firewall. On Windows, click Allow under Settings → Local network; on a "- "Mac, make sure CopySync Daemon is on under System Settings → Privacy & Security → Local Network and the "+ "Mac, make sure PasteFerry Daemon is on under System Settings → Privacy & Security → Local Network and the ""macOS firewall isn't blocking it.",]),("Does it sync away from this network?", [@@ -921,7 +920,7 @@ C = {"First make sure Tailscale is connected on both: run <code>tailscale ping other-address</code> and try again once ""it answers.","If ping works but pairing doesn't, the other computer's firewall is likely blocking it. On Windows, click Allow "- "under Settings → Local network in PasteFerry; on a Mac, turn on CopySync Daemon under System Settings → Privacy "+ "under Settings → Local network in PasteFerry; on a Mac, turn on PasteFerry Daemon under System Settings → Privacy ""& Security → Local Network.",]),("Does every computer need Tailscale?", [@@ -963,7 +962,7 @@ C = {"setup": "Download the installer","portable": "Rather not run an installer? Get the <a href=\"{portable}\">portable zip</a>, extract it and run PasteFerry from there.","steps": [- "Run CopySync-Setup.exe. It installs for the current user, no administrator rights needed."+ "Run PasteFerry-Setup.exe. It installs for the current user, no administrator rights needed.""<span class=\"aside\">If you see \"Windows protected your PC\", click More info, then Run anyway.</span>","Open PasteFerry and click Turn on background sync. Allow it if Windows Firewall asks.",],@@ -1003,7 +1002,7 @@ C = {"Needs a graphical desktop: X11, or Wayland with XWayland, which GNOME, KDE and other major desktops include by default.","Not sure whether you have x64 or ARM64? Run <code>uname -m</code> in a terminal: <code>x86_64</code> means x64, ""<code>aarch64</code> means ARM64.",- "The .deb installs to /opt/CopySync and adds PasteFerry to the app menu. The tar.gz runs from wherever you extract "+ "The .deb installs to /opt/PasteFerry and adds PasteFerry to the app menu. The tar.gz runs from wherever you extract ""it, and <code>install.sh</code> adds it to the app menu.","Once it's open, click Turn on background sync; from then on it starts when you log in. GNOME shows no tray icon ""by default, so open the window from the app menu.",diff --git a/tools/site/content/ja.py b/tools/site/content/ja.pyindex 0608463..019e623 100644--- a/tools/site/content/ja.py+++ b/tools/site/content/ja.py@@ -6,7 +6,6 @@ SITE = "https://baiyuze.github.io/pasteferry/"C = {"brand": "PasteFerry","brand_alt": ["隔空贴", "CopySync"],- "rename_note": "PasteFerry の旧名は CopySync です。次のバージョンまで、アプリとインストーラーには CopySync と表示されます。","title": "PasteFerry:Mac、Windows、Linux のあいだでクリップボードとファイルを同期。アカウントもネットワークも別々で OK","description": "PasteFerry は、一台でコピーしたものをもう一台でそのまま貼り付けられるアプリです。Mac、Windows、Linux に対応し、""テキスト、画像、ファイル、フォルダを同期します。同じアカウントは不要。同じネットワークならサーバーなしで使え、"@@ -233,15 +232,15 @@ C = {"ネットワークをまたいで同期するときは、「設定」でサーバーのアドレス <code>ws://サーバーアドレス:8787/signal</code> を入力して Return を押します。同じネットワークなら空欄のままです。",],"win_steps": [- "CopySync-Setup.exe を実行します。現在のユーザーのフォルダにインストールされ、管理者権限は要りません。"+ "PasteFerry-Setup.exe を実行します。現在のユーザーのフォルダにインストールされ、管理者権限は要りません。""<span class=\"aside\">PasteFerry はまだコード署名されていないため、「Windows によって PC が保護されました」と表示されます。「詳細情報」を押してから「実行」を押してください。"- f"インストーラーを使いたくない場合は<a href=\"{REPO}/releases/latest/download/CopySync-windows-x64.zip\">ポータブル版</a>もあります。</span>",+ f"インストーラーを使いたくない場合は<a href=\"{REPO}/releases/latest/download/PasteFerry-windows-x64.zip\">ポータブル版</a>もあります。</span>","PasteFerry を開き、「バックグラウンド同期を有効にする」をクリックします。ファイアウォールに聞かれたら許可します。ウィンドウを閉じても、画面右下の通知領域で動き続けます。","ネットワークをまたいで同期するときは、「設定」でサーバーのアドレスを入力して Enter を押します。同じネットワークなら空欄のままです。",],"linux_steps": [- "Ubuntu や Debian などでは .deb をダウンロードし、<code>sudo apt install ./CopySync-linux-amd64.deb</code> を実行します。"- "ほかのディストリビューションでは tar.gz をダウンロードして展開し、<code>./CopySync/install.sh</code> を実行します。",+ "Ubuntu や Debian などでは .deb をダウンロードし、<code>sudo apt install ./PasteFerry-linux-amd64.deb</code> を実行します。"+ "ほかのディストリビューションでは tar.gz をダウンロードして展開し、<code>./PasteFerry/install.sh</code> を実行します。","アプリケーションメニューから PasteFerry を開き、「バックグラウンド同期を有効にする」をクリックします。以後はログイン時に自動で起動します。","ネットワークをまたいで同期するときは、「設定」でサーバーのアドレスを入力して Enter を押します。同じネットワークなら空欄のままです。",],@@ -309,7 +308,7 @@ C = {"まず本当に同じサブネットか確認してください。会社の有線と Wi‑Fi、ゲストネットワーク、クライアント分離が有効な Wi‑Fi では、デバイス同士が見えないことがよくあります。""その場合は、コードを入力する側で「別のサブネットにありますか?」をクリックし、相手のコードの下に表示されたアドレスを入力します。","Windows では初回起動時にファイアウォールに聞かれたら許可してください。キャンセルした場合は「設定 → ローカルネットワーク」で「許可」をクリックします。"- "Mac では「システム設定 → プライバシーとセキュリティ → ローカルネットワーク」で CopySync Daemon をオンにします。詳しくは<a href=\"{lan}#faq\">同じネットワークでの手順</a>を。",+ "Mac では「システム設定 → プライバシーとセキュリティ → ローカルネットワーク」で PasteFerry Daemon をオンにします。詳しくは<a href=\"{lan}#faq\">同じネットワークでの手順</a>を。",]),("Windows や Linux に対応していますか?iPhone は?", ["Windows 10 と Windows 11(x64)に対応し、Mac と相互に使えます。Windows で貼り付けたファイルは本物のファイルなので、エクスプローラーや Office にそのまま貼り付けられます。",@@ -395,7 +394,7 @@ C = {"manage_caption": "あとで使うもの","win": {"steps": [- f'<a href="{REPO}/releases/latest/download/copysync-server-windows-amd64.zip">copysync-server-windows-amd64.zip</a> '+ f'<a href="{REPO}/releases/latest/download/pasteferry-server-windows-amd64.zip">pasteferry-server-windows-amd64.zip</a> '"をダウンロードし、右クリックで「すべて展開」します。","展開したフォルダーを開き、<code>install.cmd</code> をダブルクリックします。""<span class=\"aside\">「Windows によって PC が保護されました」と出たら「詳細情報」から「実行」を、ユーザーアカウント制御が出たら"@@ -404,20 +403,20 @@ C = {],"download": "Windows 版サーバーをダウンロード","notes": [- "<strong>Windows サービスとして動作:</strong>Windows の起動とともに立ち上がり、サインイン不要で、ウィンドウも出ません。「サービス」では CopySync Server と表示されます。",- "<strong>ファイアウォールは設定済み:</strong>copysync-server.exe だけを対象にした受信規則をスクリプトが追加するので、ポートを開ける必要はありません。",+ "<strong>Windows サービスとして動作:</strong>Windows の起動とともに立ち上がり、サインイン不要で、ウィンドウも出ません。「サービス」では PasteFerry Server と表示されます。",+ "<strong>ファイアウォールは設定済み:</strong>pasteferry-server.exe だけを対象にした受信規則をスクリプトが追加するので、ポートを開ける必要はありません。","<strong>アドレスが違うものになった</strong>(仮想マシンや VPN でネットワークアダプターが複数あるなど):展開したフォルダーのアドレスバーに ""<code>cmd</code> と入力して Enter を押し、<code>install.cmd 192.168.1.20</code> のようにアドレスを指定して実行します。","Windows 10・11、x64 に対応。",],"double_click": "ダブルクリック",- "explorer_label": "展開したフォルダーには copysync-server.exe、install.cmd、install.ps1、README.md、uninstall.cmd があり、install.cmd をダブルクリックする",+ "explorer_label": "展開したフォルダーには pasteferry-server.exe、install.cmd、install.ps1、README.md、uninstall.cmd があり、install.cmd をダブルクリックする","term_title": "管理者: Windows PowerShell","term_label": "install.cmd の実行後のウィンドウ:旧バージョンの停止、インストール、サービス登録、ファイアウォール許可、起動のあと、アドレス ws://192.168.1.20:8787/signal を表示","manage": [- ("状態", "管理者の PowerShell で <code>Get-Service CopySyncServer</code>、または「サービス」で CopySync Server を確認"),- ("ログ", "<code>C:\\ProgramData\\CopySync Server\\server.log</code>"),- ("再起動", "管理者の PowerShell で <code>Restart-Service CopySyncServer</code>"),+ ("状態", "管理者の PowerShell で <code>Get-Service PasteFerryServer</code>、または「サービス」で PasteFerry Server を確認"),+ ("ログ", "<code>C:\\ProgramData\\PasteFerry Server\\server.log</code>"),+ ("再起動", "管理者の PowerShell で <code>Restart-Service PasteFerryServer</code>"),("更新", "新しいバージョンをダウンロードして展開し、もう一度 <code>install.cmd</code> をダブルクリック。設定は引き継がれます"),("アンインストール", "<code>uninstall.cmd</code> をダブルクリック。サービス、ファイアウォール規則、ファイルをすべて削除します"),],@@ -430,13 +429,13 @@ C = {"notes": ["<strong>管理者権限は不要です。</strong>ログインしているあいだバックグラウンドで動き、終了しても macOS が再起動します。","<strong>この Mac はスリープさせないでください:</strong>「システム設定 → エネルギー」(ノートは「バッテリー → オプション」)で自動スリープを防ぐ項目をオンにします。",- "<strong>macOS のファイアウォールがオンなら、</strong>スクリプトの最後に copysync-server を許可するコマンドが表示されます。",+ "<strong>macOS のファイアウォールがオンなら、</strong>スクリプトの最後に pasteferry-server を許可するコマンドが表示されます。","Intel と Apple シリコンの両方に対応、macOS 13 以降。",],"term_label": "ターミナルで ./install.sh を実行した出力:インストール、LaunchAgent の作成、起動のあと、アドレス ws://192.168.1.20:8787/signal を表示","manage": [- ("ログ", "<code>~/Library/Logs/CopySync/server.log</code>"),- ("再起動", "<code>launchctl kickstart -k gui/$(id -u)/com.copysync.server</code>"),+ ("ログ", "<code>~/Library/Logs/PasteFerry/server.log</code>"),+ ("再起動", "<code>launchctl kickstart -k gui/$(id -u)/com.pasteferry.server</code>"),("更新", "新しいバージョンをダウンロードして展開し、もう一度 <code>./install.sh</code> を実行。設定は引き継がれます"),("アンインストール", "<code>./install.sh uninstall</code>"),],@@ -454,10 +453,10 @@ C = {],"term_label": "sudo ./install.sh の出力:インストール、systemd ユニットと設定の作成、起動のあと、アドレス ws://192.168.1.20:8787/signal を表示","manage": [- ("状態", "<code>systemctl status copysync-server</code>"),- ("ログ", "<code>journalctl -u copysync-server -f</code>"),- ("再起動", "<code>sudo systemctl restart copysync-server</code>"),- ("設定", "<code>/etc/copysync/server.env</code>。編集したらサービスを再起動"),+ ("状態", "<code>systemctl status pasteferry-server</code>"),+ ("ログ", "<code>journalctl -u pasteferry-server -f</code>"),+ ("再起動", "<code>sudo systemctl restart pasteferry-server</code>"),+ ("設定", "<code>/etc/pasteferry/server.env</code>。編集したらサービスを再起動"),("更新", "新しいバージョンをダウンロードして展開し、もう一度 <code>sudo ./install.sh</code> を実行。設定は引き継がれます"),("アンインストール", "<code>sudo ./install.sh uninstall</code>"),],@@ -492,7 +491,7 @@ C = {]),("サーバーのアドレスが変わった", ["新しいアドレスを付けてスクリプトをもう一度実行します。Windows は <code>install.cmd 新しいアドレス</code>、Mac は <code>./install.sh 新しいアドレス</code>。"- "Linux では <code>/etc/copysync/server.env</code> の <code>-turn-ip</code> を書き換えてサービスを再起動します。そのあと各コンピューターのアドレスも変更してください。",+ "Linux では <code>/etc/pasteferry/server.env</code> の <code>-turn-ip</code> を書き換えてサービスを再起動します。そのあと各コンピューターのアドレスも変更してください。","ルーターでアドレスを固定しておけば、こうしたことは起きません。",]),("LAN の外でも同期できますか?", [@@ -572,7 +571,7 @@ C = {"最後に表示される <code>ws://203.0.113.10:8787/signal</code> がアプリに入力するアドレスです。",],"install_notes": [- "<strong>systemd サービスとして登録</strong>され、起動時に立ち上がります。設定は <code>/etc/copysync/server.env</code>。",+ "<strong>systemd サービスとして登録</strong>され、起動時に立ち上がります。設定は <code>/etc/pasteferry/server.env</code>。","<strong>更新:</strong>新しいバージョンをダウンロードして展開し、もう一度 <code>sudo ./install.sh</code> を実行。設定は引き継がれます。","<strong>Docker でも動かせます:</strong><a href=\"{deploy}\">サーバーの構築手順</a>(英語・中国語)をご覧ください。",],@@ -638,7 +637,7 @@ C = {"「バックグラウンド同期を有効にする」をクリックします。クリップボードの読み取りと、ローカルネットワーク上のデバイスを探すことについて聞かれたら、どちらも許可します。",],"win": [- "CopySync-Setup.exe を実行します。管理者権限は要りません。<span class=\"aside\">「Windows によって PC が保護されました」と出たら、"+ "PasteFerry-Setup.exe を実行します。管理者権限は要りません。<span class=\"aside\">「Windows によって PC が保護されました」と出たら、""「詳細情報」を押してから「実行」を押します。</span>","PasteFerry を開き、「バックグラウンド同期を有効にする」をクリックします。ファイアウォールに聞かれたら許可します。ウィンドウを閉じても通知領域で動き続けます。",],@@ -702,7 +701,7 @@ C = {"デバイス同士が見えず、会社では有線と Wi‑Fi のサブネットが分かれていることもよくあります。その場合は下の<a href=\"#subnet\">別のサブネット</a>へ。"),("Windows ファイアウォール", "初回起動時に、PasteFerry がファイアウォールを通ってよいか Windows が聞いてくるので、許可します。キャンセルした場合は、""PasteFerry の「設定 → ローカルネットワーク」で「許可」をクリックします。管理者の承認を一度だけ求められます。"),- ("macOS のローカルネットワーク", "macOS 15 以降、LAN 上のデバイスに初めて接続するとき、CopySync Daemon がローカルネットワーク上のデバイスを探してよいか聞かれるので、許可します。"+ ("macOS のローカルネットワーク", "macOS 15 以降、LAN 上のデバイスに初めて接続するとき、PasteFerry Daemon がローカルネットワーク上のデバイスを探してよいか聞かれるので、許可します。""拒否した場合は「システム設定 → プライバシーとセキュリティ → ローカルネットワーク」でオンにします。"),("サーバーの入力は不要", "「設定」のサーバーのアドレスは空欄のままにします。あとでネットワークをまたいで同期したくなったら、サーバーを追加するか Tailscale を使います。ペアリングはそのままです。"),],@@ -741,7 +740,7 @@ C = {"まず 2 台が同じネットワークにあり、どちらもバックグラウンド同期が有効か確認します。次に、コードを入力する側で相手のアドレスを入力してみてください。""それで見つかるなら、サブネットが違うか、ネットワークが mDNS を通していません。","それでも見つからなければ、相手のファイアウォールを確認します。Windows なら「設定 → ローカルネットワーク」で「許可」をクリック、"- "Mac なら「システム設定 → プライバシーとセキュリティ → ローカルネットワーク」で CopySync Daemon がオンになっていて、macOS のファイアウォールに止められていないかを確かめます。",+ "Mac なら「システム設定 → プライバシーとセキュリティ → ローカルネットワーク」で PasteFerry Daemon がオンになっていて、macOS のファイアウォールに止められていないかを確かめます。",]),("このネットワークの外でも同期できますか?", ["できません。戻ると自動で再開し、そのあいだにコピーしたものは相手の履歴に追加されます。ネットワークをまたいで同期するなら、"@@ -850,7 +849,7 @@ C = {("ペアリングで相手が見つからない", ["まず両方で Tailscale がつながっているか確かめます。ターミナルで <code>tailscale ping 相手のアドレス</code> を実行し、応答があれば再度試してください。","ping は通るのに見つからないなら、相手のファイアウォールが止めている可能性が高いです。相手が Windows なら PasteFerry の「設定 → ローカルネットワーク」で「許可」をクリック、"- "Mac なら「システム設定 → プライバシーとセキュリティ → ローカルネットワーク」で CopySync Daemon をオンにします。",+ "Mac なら「システム設定 → プライバシーとセキュリティ → ローカルネットワーク」で PasteFerry Daemon をオンにします。",]),("すべてのコンピューターに Tailscale が必要ですか?", ["はい。入っていないコンピューターは 100 で始まるアドレスに届きません。同じネットワークにある 2 台なら不要です(<a href=\"{lan}\">同じネットワークでの手順</a>)。",@@ -888,7 +887,7 @@ C = {"setup": "インストーラーをダウンロード","portable": "インストーラーを使いたくない場合は、<a href=\"{portable}\">ポータブル版</a>をダウンロードし、展開してそのまま実行できます。","steps": [- "CopySync-Setup.exe を実行します。現在のユーザーのフォルダにインストールされ、管理者権限は要りません。"+ "PasteFerry-Setup.exe を実行します。現在のユーザーのフォルダにインストールされ、管理者権限は要りません。""<span class=\"aside\">「Windows によって PC が保護されました」と出たら、「詳細情報」を押してから「実行」を押します。</span>","PasteFerry を開き、「バックグラウンド同期を有効にする」をクリックします。ファイアウォールに聞かれたら許可します。",],@@ -925,7 +924,7 @@ C = {"notes": ["グラフィカルなデスクトップが必要です。X11、または XWayland 付きの Wayland デスクトップで動きます。GNOME、KDE などの主要なデスクトップには標準で入っています。","x64 か ARM64 かわからないときは、ターミナルで <code>uname -m</code> を実行します。<code>x86_64</code> なら x64、<code>aarch64</code> なら ARM64 です。",- ".deb は /opt/CopySync にインストールされ、アプリケーションメニューに表示されます。tar.gz はどこに展開しても動き、<code>install.sh</code> でアプリケーションメニューに追加できます。",+ ".deb は /opt/PasteFerry にインストールされ、アプリケーションメニューに表示されます。tar.gz はどこに展開しても動き、<code>install.sh</code> でアプリケーションメニューに追加できます。","開いたら「バックグラウンド同期を有効にする」をクリックします。以後はログイン時に自動で起動します。""GNOME は標準ではトレイアイコンを表示しないので、ウィンドウはアプリケーションメニューから開きます。","GTK 3 が必要です。Ubuntu 24.04 の GNOME(Wayland)で動作を確認しています。",diff --git a/tools/site/content/zh-hk.py b/tools/site/content/zh-hk.pyindex a832492..6af998c 100644--- a/tools/site/content/zh-hk.py+++ b/tools/site/content/zh-hk.py@@ -6,7 +6,6 @@ SITE = "https://baiyuze.github.io/pasteferry/"C = {"brand": "隔空貼","brand_alt": ["PasteFerry", "CopySync"],- "rename_note": "隔空貼原名 CopySync。App 和安裝檔裡暫時還叫 CopySync,下個版本會改過來。","title": "隔空貼 PasteFerry:在 Mac、Windows 與 Linux 之間同步剪貼簿與檔案,跨帳戶、跨網絡","description": "隔空貼讓你在一部電腦上複製,到另一部電腦直接貼上,Mac、Windows、Linux 互通。支援文字、圖片、檔案和資料夾,""不必使用同一個帳戶。在同一個網絡裏安裝好就能用,不需要伺服器;跨網絡時可用自己部署的伺服器或 Tailscale。"@@ -230,15 +229,15 @@ C = {"跨網絡同步時,在「設定」裏填入伺服器地址 <code>ws://伺服器地址:8787/signal</code>,按 Enter;在同一個網絡裏則不用填。",],"win_steps": [- "執行 CopySync-Setup.exe。它會安裝在目前用戶的目錄下,不需要管理員權限。"+ "執行 PasteFerry-Setup.exe。它會安裝在目前用戶的目錄下,不需要管理員權限。""<span class=\"aside\">隔空貼仍未有程式碼簽署,Windows 會提示「Windows 已保護您的電腦」:按「其他資訊」,再按「仍要執行」。"- f"不想執行安裝程式的話,可以下載<a href=\"{REPO}/releases/latest/download/CopySync-windows-x64.zip\">免安裝版</a>。</span>",+ f"不想執行安裝程式的話,可以下載<a href=\"{REPO}/releases/latest/download/PasteFerry-windows-x64.zip\">免安裝版</a>。</span>","開啟隔空貼,按「啟用背景同步」。關閉視窗後,它會在右下角的系統匣裏繼續執行。防火牆詢問時選擇允許。","跨網絡同步時,在「設定」裏填入伺服器地址,按 Enter;在同一個網絡裏則不用填。",],"linux_steps": [- "Ubuntu、Debian 等發行版下載 .deb,執行 <code>sudo apt install ./CopySync-linux-amd64.deb</code>;"- "其他發行版下載 tar.gz,解壓後執行 <code>./CopySync/install.sh</code>。",+ "Ubuntu、Debian 等發行版下載 .deb,執行 <code>sudo apt install ./PasteFerry-linux-amd64.deb</code>;"+ "其他發行版下載 tar.gz,解壓後執行 <code>./PasteFerry/install.sh</code>。","從應用程式選單開啟隔空貼,按「啟用背景同步」。之後它會在登入時自動啟動。","跨網絡同步時,在「設定」裏填入伺服器地址,按 Enter;在同一個網絡裏則不用填。",],@@ -303,7 +302,7 @@ C = {"先看兩部是否真的在同一個網段:公司裏的有線和無線網絡、訪客網絡、開啟了「AP 隔離」的 Wi‑Fi 往往互不相通,區域網絡發現無法穿過。""這時在輸入配對碼的那部電腦按「不在同一網段?」,填上另一部電腦配對碼下面顯示的地址。","在 Windows 上,第一次執行時防火牆會詢問,要選擇允許;如果按過取消,可在「設定 → 區域網絡」裏按「允許」。"- "在 Mac 上,要在「系統設定 → 私隱與保安 → 本地網絡」裏開啟 CopySync Daemon。詳情見<a href=\"{lan}#faq\">同一網絡教學</a>。",+ "在 Mac 上,要在「系統設定 → 私隱與保安 → 本地網絡」裏開啟 PasteFerry Daemon。詳情見<a href=\"{lan}#faq\">同一網絡教學</a>。",]),("支援 Windows 和 Linux 嗎?iPhone 呢?", ["支援 Windows 10 與 Windows 11(x64),與 Mac 互通。複製的檔案在 Windows 上貼上後就是真實檔案,可以直接貼進檔案總管、微信、Office。",@@ -386,7 +385,7 @@ C = {"manage_caption": "日後會用到的","win": {"steps": [- f'下載 <a href="{REPO}/releases/latest/download/copysync-server-windows-amd64.zip">copysync-server-windows-amd64.zip</a>,'+ f'下載 <a href="{REPO}/releases/latest/download/pasteferry-server-windows-amd64.zip">pasteferry-server-windows-amd64.zip</a>,'"按右鍵選擇「解壓縮全部」。","開啟解壓出來的資料夾,按兩下 <code>install.cmd</code>。""<span class=\"aside\">提示「Windows 已保護您的電腦」時,按「其他資訊」,再按「仍要執行」;彈出「使用者帳戶控制」時按「是」。"@@ -395,20 +394,20 @@ C = {],"download": "下載 Windows 版伺服器","notes": [- "<strong>以 Windows 服務形式執行:</strong>開機就啟動,不用登入,也沒有視窗。在「服務」裏叫 CopySync Server。",- "<strong>防火牆已經開放:</strong>腳本加入了一條只針對 copysync-server.exe 的輸入規則,不用自己開放端口。",+ "<strong>以 Windows 服務形式執行:</strong>開機就啟動,不用登入,也沒有視窗。在「服務」裏叫 PasteFerry Server。",+ "<strong>防火牆已經開放:</strong>腳本加入了一條只針對 pasteferry-server.exe 的輸入規則,不用自己開放端口。","<strong>地址認錯了</strong>(例如安裝了虛擬機或 VPN,有好幾張網卡):在解壓出來的資料夾的網址列輸入 <code>cmd</code> 再按 Enter,""執行 <code>install.cmd 192.168.1.20</code>,換成你的地址。","支援 Windows 10、11,x64。",],"double_click": "按兩下",- "explorer_label": "解壓出來的資料夾裏有 copysync-server.exe、install.cmd、install.ps1、README.md、uninstall.cmd,按兩下其中的 install.cmd",+ "explorer_label": "解壓出來的資料夾裏有 pasteferry-server.exe、install.cmd、install.ps1、README.md、uninstall.cmd,按兩下其中的 install.cmd","term_title": "系統管理員: Windows PowerShell","term_label": "install.cmd 執行完畢的視窗:依次停止舊版本、安裝、註冊服務、開放防火牆、啟動,最後顯示用戶端要填的地址 ws://192.168.1.20:8787/signal","manage": [- ("狀態", "在系統管理員 PowerShell 執行 <code>Get-Service CopySyncServer</code>,或者在「服務」裏找 CopySync Server"),- ("日誌", "<code>C:\\ProgramData\\CopySync Server\\server.log</code>"),- ("重新啟動", "在系統管理員 PowerShell 執行 <code>Restart-Service CopySyncServer</code>"),+ ("狀態", "在系統管理員 PowerShell 執行 <code>Get-Service PasteFerryServer</code>,或者在「服務」裏找 PasteFerry Server"),+ ("日誌", "<code>C:\\ProgramData\\PasteFerry Server\\server.log</code>"),+ ("重新啟動", "在系統管理員 PowerShell 執行 <code>Restart-Service PasteFerryServer</code>"),("升級", "下載新版本,解壓後再按兩下 <code>install.cmd</code>,原有設定會保留"),("解除安裝", "按兩下 <code>uninstall.cmd</code>,服務、防火牆規則和檔案會一併刪除"),],@@ -421,13 +420,13 @@ C = {"notes": ["<strong>不需要管理員權限。</strong>登入這部 Mac 後會自動在背景執行,意外結束會由系統重新啟動。","<strong>這部 Mac 不能進入睡眠:</strong>在「系統設定 → 能源」(手提電腦在「電池 → 選項」)裏開啟避免自動進入睡眠的選項。",- "<strong>如果開啟了系統防火牆,</strong>腳本最後會提供允許 copysync-server 連線的指令。",+ "<strong>如果開啟了系統防火牆,</strong>腳本最後會提供允許 pasteferry-server 連線的指令。","Intel 與 Apple 晶片通用,macOS 13 或以上。",],"term_label": "在終端機執行 ./install.sh 的輸出:安裝、寫入 LaunchAgent、啟動,最後顯示用戶端要填的地址 ws://192.168.1.20:8787/signal","manage": [- ("日誌", "<code>~/Library/Logs/CopySync/server.log</code>"),- ("重新啟動", "<code>launchctl kickstart -k gui/$(id -u)/com.copysync.server</code>"),+ ("日誌", "<code>~/Library/Logs/PasteFerry/server.log</code>"),+ ("重新啟動", "<code>launchctl kickstart -k gui/$(id -u)/com.pasteferry.server</code>"),("升級", "下載新版本,解壓後再執行 <code>./install.sh</code>,原有設定會保留"),("解除安裝", "<code>./install.sh uninstall</code>"),],@@ -445,10 +444,10 @@ C = {],"term_label": "執行 sudo ./install.sh 的輸出:安裝、寫入 systemd 單元、產生設定檔、啟動,最後顯示用戶端要填的地址 ws://192.168.1.20:8787/signal","manage": [- ("狀態", "<code>systemctl status copysync-server</code>"),- ("日誌", "<code>journalctl -u copysync-server -f</code>"),- ("重新啟動", "<code>sudo systemctl restart copysync-server</code>"),- ("設定", "<code>/etc/copysync/server.env</code>,改完要重新啟動服務"),+ ("狀態", "<code>systemctl status pasteferry-server</code>"),+ ("日誌", "<code>journalctl -u pasteferry-server -f</code>"),+ ("重新啟動", "<code>sudo systemctl restart pasteferry-server</code>"),+ ("設定", "<code>/etc/pasteferry/server.env</code>,改完要重新啟動服務"),("升級", "下載新版本,解壓後再執行 <code>sudo ./install.sh</code>,原有設定會保留"),("解除安裝", "<code>sudo ./install.sh uninstall</code>"),],@@ -482,7 +481,7 @@ C = {]),("伺服器的地址改變了怎麼辦?", ["帶上新地址再執行一次安裝腳本:Windows 上是 <code>install.cmd 新地址</code>,Mac 上是 <code>./install.sh 新地址</code>;"- "Linux 上編輯 <code>/etc/copysync/server.env</code> 裏的 <code>-turn-ip</code>,再重新啟動服務。然後在每部電腦上更改伺服器地址。",+ "Linux 上編輯 <code>/etc/pasteferry/server.env</code> 裏的 <code>-turn-ip</code>,再重新啟動服務。然後在每部電腦上更改伺服器地址。","在路由器裏給它固定一個地址,就不會再遇到這個問題。",]),("離開區域網絡後還能同步嗎?", [@@ -562,7 +561,7 @@ C = {"最後顯示的 <code>ws://203.0.113.10:8787/signal</code> 就是用戶端要填的地址。",],"install_notes": [- "<strong>註冊為 systemd 服務,</strong>開機自動執行,設定檔在 <code>/etc/copysync/server.env</code>。",+ "<strong>註冊為 systemd 服務,</strong>開機自動執行,設定檔在 <code>/etc/pasteferry/server.env</code>。","<strong>升級:</strong>下載新版本,解壓後再執行 <code>sudo ./install.sh</code>,原有設定會保留。","<strong>也可以用 Docker:</strong>見<a href=\"{deploy}\">伺服器部署說明</a>。",],@@ -625,7 +624,7 @@ C = {"按「啟用背景同步」。系統詢問是否允許讀取剪貼簿、能否尋找本地網絡上的裝置時,都選擇允許。",],"win": [- "執行 CopySync-Setup.exe,不需要管理員權限。<span class=\"aside\">提示「Windows 已保護您的電腦」時,按「其他資訊」,再按「仍要執行」。</span>",+ "執行 PasteFerry-Setup.exe,不需要管理員權限。<span class=\"aside\">提示「Windows 已保護您的電腦」時,按「其他資訊」,再按「仍要執行」。</span>","開啟隔空貼,按「啟用背景同步」。防火牆詢問時選擇允許。關閉視窗後,它會在右下角的系統匣裏繼續執行。",],"linux": [@@ -688,7 +687,7 @@ C = {"公司裏的有線和無線網絡往往不在同一個網段,這時請看下面的<a href=\"#subnet\">不在同一網段</a>。"),("Windows 防火牆", "第一次執行時,Windows 防火牆會詢問是否允許隔空貼存取網絡,請選擇允許。如果按過取消,""可在隔空貼的「設定 → 區域網絡」裏按「允許」,這會請求一次管理員權限。"),- ("macOS 的本地網絡權限", "由 macOS 15 起,第一次連接區域網絡裏的裝置時,系統會詢問是否允許 CopySync Daemon 尋找本地網絡上的裝置,請選擇允許。"+ ("macOS 的本地網絡權限", "由 macOS 15 起,第一次連接區域網絡裏的裝置時,系統會詢問是否允許 PasteFerry Daemon 尋找本地網絡上的裝置,請選擇允許。""如果拒絕過,可到「系統設定 → 私隱與保安 → 本地網絡」裏開啟它。"),("不用填寫伺服器", "「設定」裏的伺服器地址留空就可以。日後要跨網絡同步,再填上伺服器或改用 Tailscale,已經配對的裝置不用重新配對。"),],@@ -726,7 +725,7 @@ C = {"先確認兩部電腦連着同一個網絡,而且都已啟用後台同步。再試試在輸入配對碼的那部電腦填上對方的地址:""這樣能找到的話,代表兩部不在同一網段,或者網絡阻擋了 mDNS。","仍然找不到,就檢查對方的防火牆:對方是 Windows 的話,在它的「設定 → 區域網絡」裏按「允許」;"- "是 Mac 的話,確認「系統設定 → 私隱與保安 → 本地網絡」裏已開啟 CopySync Daemon,系統防火牆也沒有阻擋它。",+ "是 Mac 的話,確認「系統設定 → 私隱與保安 → 本地網絡」裏已開啟 PasteFerry Daemon,系統防火牆也沒有阻擋它。",]),("離開這個網絡後還能同步嗎?", ["不能,回到這個網絡後會自動恢復,這期間複製的內容會補發到對方的複製記錄裏。"@@ -833,7 +832,7 @@ C = {("配對時找不到對方?", ["先確認兩部電腦的 Tailscale 都已連線:在終端機執行 <code>tailscale ping 對方的地址</code>,能 ping 通再試。","能 ping 通但仍找不到,多半是對方的防火牆阻擋了:對方是 Windows 的話,在它的隔空貼「設定 → 區域網絡」裏按「允許」;"- "是 Mac 的話,確認「系統設定 → 私隱與保安 → 本地網絡」裏已開啟 CopySync Daemon。",+ "是 Mac 的話,確認「系統設定 → 私隱與保安 → 本地網絡」裏已開啟 PasteFerry Daemon。",]),("一定要每部電腦都安裝 Tailscale 嗎?", ["是的,沒有安裝的電腦連不到以 100 開頭的地址。兩部電腦在同一個網絡裏時,不安裝也能用,見<a href=\"{lan}\">同一網絡教學</a>。",@@ -871,7 +870,7 @@ C = {"setup": "下載安裝程式","portable": "不想執行安裝程式的話,可以下載<a href=\"{portable}\">免安裝版</a>,解壓後直接執行。","steps": [- "執行 CopySync-Setup.exe,它會安裝在目前用戶的目錄下,不需要管理員權限。"+ "執行 PasteFerry-Setup.exe,它會安裝在目前用戶的目錄下,不需要管理員權限。""<span class=\"aside\">提示「Windows 已保護您的電腦」時,按「其他資訊」,再按「仍要執行」。</span>","開啟隔空貼,按「啟用背景同步」。防火牆詢問時選擇允許。",],@@ -906,7 +905,7 @@ C = {"notes": ["需要圖形桌面:X11,或者帶 XWayland 的 Wayland 桌面,GNOME、KDE 等主流桌面預設都已包含。","不確定是 x64 還是 ARM64:在終端機執行 <code>uname -m</code>,顯示 <code>x86_64</code> 是 x64,<code>aarch64</code> 是 ARM64。",- ".deb 會安裝在 /opt/CopySync,並出現在應用程式選單裏。tar.gz 解壓到哪裏都能執行,<code>install.sh</code> 會把它加入應用程式選單。",+ ".deb 會安裝在 /opt/PasteFerry,並出現在應用程式選單裏。tar.gz 解壓到哪裏都能執行,<code>install.sh</code> 會把它加入應用程式選單。","開啟後按「啟用背景同步」,之後會在登入時自動啟動。GNOME 預設不顯示系統匣圖示,請從應用程式選單開啟視窗。","需要 GTK 3。已在 Ubuntu 24.04 的 GNOME(Wayland)上實測。",],diff --git a/tools/site/content/zh-tw.py b/tools/site/content/zh-tw.pyindex dc6deba..8b77b9d 100644--- a/tools/site/content/zh-tw.py+++ b/tools/site/content/zh-tw.py@@ -6,7 +6,6 @@ SITE = "https://baiyuze.github.io/pasteferry/"C = {"brand": "隔空貼","brand_alt": ["PasteFerry", "CopySync"],- "rename_note": "隔空貼原名 CopySync。App 和安裝檔裡暫時還叫 CopySync,下個版本會改過來。","title": "隔空貼 PasteFerry:在 Mac、Windows 與 Linux 之間同步剪貼簿與檔案,跨帳號跨網路","description": "隔空貼讓你在一台電腦上複製,到另一台直接貼上,Mac、Windows、Linux 互通。支援文字、圖片、檔案和資料夾,""不必使用同一個帳號。在同一個網路裡裝好就能用,不需要伺服器;跨網路時可以用自己架設的伺服器或 Tailscale。"@@ -230,15 +229,15 @@ C = {"跨網路同步時,在「設定」裡填入伺服器位址 <code>ws://伺服器位址:8787/signal</code>,按 Enter;在同一個網路裡不用填。",],"win_steps": [- "執行 CopySync-Setup.exe。它會安裝在目前使用者的目錄下,不需要系統管理員權限。"+ "執行 PasteFerry-Setup.exe。它會安裝在目前使用者的目錄下,不需要系統管理員權限。""<span class=\"aside\">隔空貼還沒有程式碼簽章,Windows 會提示「Windows 已保護您的電腦」:點「其他資訊」,再點「仍要執行」。"- f"不想執行安裝程式的話,可以下載<a href=\"{REPO}/releases/latest/download/CopySync-windows-x64.zip\">免安裝版</a>。</span>",+ f"不想執行安裝程式的話,可以下載<a href=\"{REPO}/releases/latest/download/PasteFerry-windows-x64.zip\">免安裝版</a>。</span>","打開隔空貼,點「啟用背景同步」。關掉視窗後,它會在右下角的通知區域繼續執行。防火牆詢問時選擇允許。","跨網路同步時,在「設定」裡填入伺服器位址,按 Enter;在同一個網路裡不用填。",],"linux_steps": [- "Ubuntu、Debian 等發行版下載 .deb,執行 <code>sudo apt install ./CopySync-linux-amd64.deb</code>;"- "其他發行版下載 tar.gz,解壓縮後執行 <code>./CopySync/install.sh</code>。",+ "Ubuntu、Debian 等發行版下載 .deb,執行 <code>sudo apt install ./PasteFerry-linux-amd64.deb</code>;"+ "其他發行版下載 tar.gz,解壓縮後執行 <code>./PasteFerry/install.sh</code>。","從應用程式選單打開隔空貼,點「啟用背景同步」。之後它會在登入時自動啟動。","跨網路同步時,在「設定」裡填入伺服器位址,按 Enter;在同一個網路裡不用填。",],@@ -303,7 +302,7 @@ C = {"先確認兩台是不是真的在同一個網段:公司裡的有線和無線、訪客網路、開了「AP 隔離」的 Wi‑Fi 常常互不相通,區域網路探索過不去。""這時在輸入配對碼的那台點「不在同一網段?」,填上另一台配對碼下方顯示的位址。","在 Windows 上,第一次執行時防火牆會詢問,要選擇允許;如果按過取消,到「設定 → 區域網路」裡點「允許」。"- "在 Mac 上,要到「系統設定 → 隱私權與安全性 → 本機網路」裡開啟 CopySync Daemon。更多說明見<a href=\"{lan}#faq\">同一網路教學</a>。",+ "在 Mac 上,要到「系統設定 → 隱私權與安全性 → 本機網路」裡開啟 PasteFerry Daemon。更多說明見<a href=\"{lan}#faq\">同一網路教學</a>。",]),("支援 Windows 和 Linux 嗎?iPhone 呢?", ["支援 Windows 10 與 Windows 11(x64),與 Mac 互通。複製的檔案在 Windows 上貼上後就是真正的檔案,能直接貼進檔案總管、WeChat、Office。",@@ -386,7 +385,7 @@ C = {"manage_caption": "之後會用到的","win": {"steps": [- f'下載 <a href="{REPO}/releases/latest/download/copysync-server-windows-amd64.zip">copysync-server-windows-amd64.zip</a>,'+ f'下載 <a href="{REPO}/releases/latest/download/pasteferry-server-windows-amd64.zip">pasteferry-server-windows-amd64.zip</a>,'"按右鍵選「解壓縮全部」。","打開解壓縮後的資料夾,按兩下 <code>install.cmd</code>。""<span class=\"aside\">出現「Windows 已保護您的電腦」時,點「其他資訊」,再點「仍要執行」;跳出「使用者帳戶控制」時點「是」。"@@ -395,20 +394,20 @@ C = {],"download": "下載 Windows 版伺服器","notes": [- "<strong>以 Windows 服務執行:</strong>開機就啟動,不用登入,也沒有視窗。在「服務」裡的名稱是 CopySync Server。",- "<strong>防火牆已經開放:</strong>腳本新增了一條只針對 copysync-server.exe 的輸入規則,不用自己開連接埠。",+ "<strong>以 Windows 服務執行:</strong>開機就啟動,不用登入,也沒有視窗。在「服務」裡的名稱是 PasteFerry Server。",+ "<strong>防火牆已經開放:</strong>腳本新增了一條只針對 pasteferry-server.exe 的輸入規則,不用自己開連接埠。","<strong>位址抓錯了</strong>(例如裝了虛擬機或 VPN,有好幾張網路卡):在解壓縮後資料夾的網址列輸入 <code>cmd</code> 再按 Enter,""執行 <code>install.cmd 192.168.1.20</code>,換成你的位址。","支援 Windows 10、11,x64。",],"double_click": "按兩下",- "explorer_label": "解壓縮後的資料夾裡有 copysync-server.exe、install.cmd、install.ps1、README.md、uninstall.cmd,按兩下其中的 install.cmd",+ "explorer_label": "解壓縮後的資料夾裡有 pasteferry-server.exe、install.cmd、install.ps1、README.md、uninstall.cmd,按兩下其中的 install.cmd","term_title": "系統管理員: Windows PowerShell","term_label": "install.cmd 執行完的視窗:依序停止舊版本、安裝、註冊服務、開放防火牆、啟動,最後顯示用戶端要填的位址 ws://192.168.1.20:8787/signal","manage": [- ("狀態", "在系統管理員 PowerShell 裡執行 <code>Get-Service CopySyncServer</code>,或在「服務」裡找 CopySync Server"),- ("記錄檔", "<code>C:\\ProgramData\\CopySync Server\\server.log</code>"),- ("重新啟動", "在系統管理員 PowerShell 裡執行 <code>Restart-Service CopySyncServer</code>"),+ ("狀態", "在系統管理員 PowerShell 裡執行 <code>Get-Service PasteFerryServer</code>,或在「服務」裡找 PasteFerry Server"),+ ("記錄檔", "<code>C:\\ProgramData\\PasteFerry Server\\server.log</code>"),+ ("重新啟動", "在系統管理員 PowerShell 裡執行 <code>Restart-Service PasteFerryServer</code>"),("升級", "下載新版本,解壓縮後再按兩下 <code>install.cmd</code>,原本的設定會保留"),("解除安裝", "按兩下 <code>uninstall.cmd</code>,服務、防火牆規則和檔案會一併刪除"),],@@ -421,13 +420,13 @@ C = {"notes": ["<strong>不需要管理者權限。</strong>登入這台 Mac 後會自動在背景執行,意外結束時會被系統重新啟動。","<strong>這台 Mac 不能進入睡眠:</strong>在「系統設定 → 能源」(筆電在「電池 → 選項」)裡開啟防止自動進入睡眠的選項。",- "<strong>開著系統防火牆的話,</strong>腳本最後會給出開放 copysync-server 的指令。",+ "<strong>開著系統防火牆的話,</strong>腳本最後會給出開放 pasteferry-server 的指令。","Intel 與 Apple 晶片通用,macOS 13 以上。",],"term_label": "在終端機裡執行 ./install.sh 的輸出:安裝、寫入 LaunchAgent、啟動,最後顯示用戶端要填的位址 ws://192.168.1.20:8787/signal","manage": [- ("記錄檔", "<code>~/Library/Logs/CopySync/server.log</code>"),- ("重新啟動", "<code>launchctl kickstart -k gui/$(id -u)/com.copysync.server</code>"),+ ("記錄檔", "<code>~/Library/Logs/PasteFerry/server.log</code>"),+ ("重新啟動", "<code>launchctl kickstart -k gui/$(id -u)/com.pasteferry.server</code>"),("升級", "下載新版本,解壓縮後再執行 <code>./install.sh</code>,原本的設定會保留"),("解除安裝", "<code>./install.sh uninstall</code>"),],@@ -445,10 +444,10 @@ C = {],"term_label": "執行 sudo ./install.sh 的輸出:安裝、寫入 systemd 單元、產生設定檔、啟動,最後顯示用戶端要填的位址 ws://192.168.1.20:8787/signal","manage": [- ("狀態", "<code>systemctl status copysync-server</code>"),- ("記錄檔", "<code>journalctl -u copysync-server -f</code>"),- ("重新啟動", "<code>sudo systemctl restart copysync-server</code>"),- ("設定", "<code>/etc/copysync/server.env</code>,改完要重新啟動服務"),+ ("狀態", "<code>systemctl status pasteferry-server</code>"),+ ("記錄檔", "<code>journalctl -u pasteferry-server -f</code>"),+ ("重新啟動", "<code>sudo systemctl restart pasteferry-server</code>"),+ ("設定", "<code>/etc/pasteferry/server.env</code>,改完要重新啟動服務"),("升級", "下載新版本,解壓縮後再執行 <code>sudo ./install.sh</code>,原本的設定會保留"),("解除安裝", "<code>sudo ./install.sh uninstall</code>"),],@@ -482,7 +481,7 @@ C = {]),("伺服器的位址變了怎麼辦?", ["帶上新位址再執行一次安裝腳本:Windows 上是 <code>install.cmd 新位址</code>,Mac 上是 <code>./install.sh 新位址</code>;"- "Linux 上編輯 <code>/etc/copysync/server.env</code> 裡的 <code>-turn-ip</code>,再重新啟動服務。然後在每台電腦上改掉伺服器位址。",+ "Linux 上編輯 <code>/etc/pasteferry/server.env</code> 裡的 <code>-turn-ip</code>,再重新啟動服務。然後在每台電腦上改掉伺服器位址。","在路由器裡幫它固定一個位址,就不會再遇到這種事。",]),("離開區域網路以後還能同步嗎?", [@@ -562,7 +561,7 @@ C = {"最後顯示的 <code>ws://203.0.113.10:8787/signal</code> 就是用戶端要填的位址。",],"install_notes": [- "<strong>註冊為 systemd 服務,</strong>開機自動執行,設定檔在 <code>/etc/copysync/server.env</code>。",+ "<strong>註冊為 systemd 服務,</strong>開機自動執行,設定檔在 <code>/etc/pasteferry/server.env</code>。","<strong>升級:</strong>下載新版本,解壓縮後再執行 <code>sudo ./install.sh</code>,原本的設定會保留。","<strong>也可以用 Docker:</strong>見<a href=\"{deploy}\">伺服器架設說明</a>。",],@@ -625,7 +624,7 @@ C = {"點「啟用背景同步」。系統詢問是否允許讀取剪貼簿、是否允許尋找區域網路上的裝置時,都選擇允許。",],"win": [- "執行 CopySync-Setup.exe,不需要系統管理員權限。<span class=\"aside\">出現「Windows 已保護您的電腦」時,點「其他資訊」,再點「仍要執行」。</span>",+ "執行 PasteFerry-Setup.exe,不需要系統管理員權限。<span class=\"aside\">出現「Windows 已保護您的電腦」時,點「其他資訊」,再點「仍要執行」。</span>","打開隔空貼,點「啟用背景同步」。防火牆詢問時選擇允許。關掉視窗後,它會在右下角的通知區域繼續執行。",],"linux": [@@ -688,7 +687,7 @@ C = {"公司裡的有線和無線常常不在同一個網段,這時請看下面的<a href=\"#subnet\">不在同一網段</a>。"),("Windows 防火牆", "第一次執行時,Windows 會詢問是否允許隔空貼通過防火牆,請選擇允許。如果按過取消,""到隔空貼的「設定 → 區域網路」裡點「允許」,會要求一次系統管理員權限。"),- ("macOS 的本機網路權限", "從 macOS 15 起,第一次連線區域網路裡的裝置時,系統會詢問是否允許 CopySync Daemon 尋找區域網路上的裝置,請選擇允許。"+ ("macOS 的本機網路權限", "從 macOS 15 起,第一次連線區域網路裡的裝置時,系統會詢問是否允許 PasteFerry Daemon 尋找區域網路上的裝置,請選擇允許。""拒絕過的話,到「系統設定 → 隱私權與安全性 → 本機網路」裡開啟它。"),("不用填伺服器", "「設定」裡的伺服器位址留空就行。以後要跨網路同步,再填上伺服器或改用 Tailscale,已經配對的裝置不用重新配對。"),],@@ -726,7 +725,7 @@ C = {"先確認兩台連著同一個網路、都已啟用背景同步。再試試在輸入配對碼的那台填上對方的位址:""這樣能找到的話,代表兩台不在同一個網段,或網路擋住了 mDNS。","還是找不到,就檢查對方的防火牆:對方是 Windows 的話,在它的「設定 → 區域網路」裡點「允許」;"- "是 Mac 的話,確認「系統設定 → 隱私權與安全性 → 本機網路」裡已開啟 CopySync Daemon,系統防火牆也沒有擋住它。",+ "是 Mac 的話,確認「系統設定 → 隱私權與安全性 → 本機網路」裡已開啟 PasteFerry Daemon,系統防火牆也沒有擋住它。",]),("離開這個網路後還能同步嗎?", ["不能,回到這個網路後會自動恢復,這段期間複製的內容會補送到對方的複製記錄裡。"@@ -833,7 +832,7 @@ C = {("配對時找不到對方?", ["先確認兩台的 Tailscale 都已連線:在終端機裡執行 <code>tailscale ping 對方的位址</code>,能 ping 通再試。","能 ping 通卻還是找不到,多半是對方的防火牆擋住了:對方是 Windows 的話,在它的隔空貼「設定 → 區域網路」裡點「允許」;"- "是 Mac 的話,確認「系統設定 → 隱私權與安全性 → 本機網路」裡已開啟 CopySync Daemon。",+ "是 Mac 的話,確認「系統設定 → 隱私權與安全性 → 本機網路」裡已開啟 PasteFerry Daemon。",]),("一定要每台電腦都裝 Tailscale 嗎?", ["是的,沒裝的電腦連不到 100 開頭的位址。兩台在同一個網路裡時,不裝也能用,見<a href=\"{lan}\">同一網路教學</a>。",@@ -871,7 +870,7 @@ C = {"setup": "下載安裝程式","portable": "不想執行安裝程式的話,可以下載<a href=\"{portable}\">免安裝版</a>,解壓縮後直接執行。","steps": [- "執行 CopySync-Setup.exe,它會安裝在目前使用者的目錄下,不需要系統管理員權限。"+ "執行 PasteFerry-Setup.exe,它會安裝在目前使用者的目錄下,不需要系統管理員權限。""<span class=\"aside\">出現「Windows 已保護您的電腦」時,點「其他資訊」,再點「仍要執行」。</span>","打開隔空貼,點「啟用背景同步」。防火牆詢問時選擇允許。",],@@ -906,7 +905,7 @@ C = {"notes": ["需要圖形桌面:X11,或附有 XWayland 的 Wayland 桌面,GNOME、KDE 等主流桌面預設都有。","不確定是 x64 還是 ARM64:在終端機執行 <code>uname -m</code>,顯示 <code>x86_64</code> 是 x64,<code>aarch64</code> 是 ARM64。",- ".deb 會裝在 /opt/CopySync,並出現在應用程式選單裡。tar.gz 解壓縮到哪裡都能執行,<code>install.sh</code> 會把它加進應用程式選單。",+ ".deb 會裝在 /opt/PasteFerry,並出現在應用程式選單裡。tar.gz 解壓縮到哪裡都能執行,<code>install.sh</code> 會把它加進應用程式選單。","打開後點「啟用背景同步」,之後登入時會自動啟動。GNOME 預設不顯示系統匣圖示,請從應用程式選單打開視窗。","需要 GTK 3。已在 Ubuntu 24.04 的 GNOME(Wayland)上實測過。",],diff --git a/tools/site/content/zh.py b/tools/site/content/zh.pyindex 0c28bc6..cad38c6 100644--- a/tools/site/content/zh.py+++ b/tools/site/content/zh.py@@ -6,7 +6,6 @@ SITE = "https://baiyuze.github.io/pasteferry/"C = {"brand": "隔空贴","brand_alt": ["PasteFerry", "CopySync"],- "rename_note": "隔空贴原名 CopySync。应用和安装包里暂时还叫 CopySync,下个版本会改过来。","title": "隔空贴 PasteFerry:在 Mac、Windows 与 Linux 之间同步剪贴板与文件,跨账号跨网络","description": "隔空贴让你在一台电脑上复制,另一台上直接粘贴,Mac、Windows、Linux 互通。支持文本、图片、文件和文件夹,""不要求同一个账号。同一个网络里装好就能用,不需要服务器;跨网络时用自己部署的服务器或 Tailscale。"@@ -230,15 +229,15 @@ C = {"跨网络同步时,在「设置」里填入服务器地址 <code>ws://服务器地址:8787/signal</code>,按回车;同一个网络里不用填。",],"win_steps": [- "运行 CopySync-Setup.exe。装在当前用户目录下,不需要管理员权限。"+ "运行 PasteFerry-Setup.exe。装在当前用户目录下,不需要管理员权限。""<span class=\"aside\">隔空贴还没有代码签名,Windows 会提示「Windows 已保护你的电脑」:点「更多信息」,再点「仍要运行」。"- f"不想运行安装程序的话,可以下载<a href=\"{REPO}/releases/latest/download/CopySync-windows-x64.zip\">便携版</a>。</span>",+ f"不想运行安装程序的话,可以下载<a href=\"{REPO}/releases/latest/download/PasteFerry-windows-x64.zip\">便携版</a>。</span>","打开隔空贴,点「启用后台同步」。关掉窗口后它在右下角的托盘里继续运行。防火墙询问时选择允许。","跨网络同步时,在「设置」里填入服务器地址,按回车;同一个网络里不用填。",],"linux_steps": [- "Ubuntu、Debian 等下载 .deb,运行 <code>sudo apt install ./CopySync-linux-amd64.deb</code>;"- "其他发行版下载 tar.gz,解压后运行 <code>./CopySync/install.sh</code>。",+ "Ubuntu、Debian 等下载 .deb,运行 <code>sudo apt install ./PasteFerry-linux-amd64.deb</code>;"+ "其他发行版下载 tar.gz,解压后运行 <code>./PasteFerry/install.sh</code>。","从应用菜单里打开隔空贴,点「启用后台同步」。之后它随登录自动启动。","跨网络同步时,在「设置」里填入服务器地址,按回车;同一个网络里不用填。",],@@ -303,7 +302,7 @@ C = {"先看两台是不是真的在同一个网段:公司里有线和无线、访客网络、开了「AP 隔离」的 Wi‑Fi 常常不互通,局域网发现过不去。""这时在输入配对码的那台点「不在同一网段?」,填上另一台配对码下面显示的地址。","Windows 上,第一次运行时防火墙会询问,要选允许;点过取消的话,在「设置 → 局域网」里点「放行」。"- "Mac 上,要在「系统设置 → 隐私与安全性 → 本地网络」里打开 CopySync Daemon。更多见<a href=\"{lan}#faq\">同一网络教程</a>。",+ "Mac 上,要在「系统设置 → 隐私与安全性 → 本地网络」里打开 PasteFerry Daemon。更多见<a href=\"{lan}#faq\">同一网络教程</a>。",]),("支持 Windows 和 Linux 吗?iPhone 呢?", ["支持 Windows 10 与 Windows 11(x64),与 Mac 互通。复制的文件在 Windows 上粘贴出来就是真实文件,能直接粘进资源管理器、微信、Office。",@@ -386,7 +385,7 @@ C = {"manage_caption": "以后会用到的","win": {"steps": [- f'下载 <a href="{REPO}/releases/latest/download/copysync-server-windows-amd64.zip">copysync-server-windows-amd64.zip</a>,'+ f'下载 <a href="{REPO}/releases/latest/download/pasteferry-server-windows-amd64.zip">pasteferry-server-windows-amd64.zip</a>,'"右键选「全部解压缩」。","打开解压出的文件夹,双击 <code>install.cmd</code>。""<span class=\"aside\">提示「Windows 已保护你的电脑」时,点「更多信息」,再点「仍要运行」;弹出用户账户控制时点「是」。"@@ -395,20 +394,20 @@ C = {],"download": "下载 Windows 版服务器","notes": [- "<strong>作为 Windows 服务运行:</strong>开机就启动,不用登录,也没有窗口。在「服务」里叫 CopySync Server。",- "<strong>防火墙已经放行:</strong>脚本添加了一条只针对 copysync-server.exe 的入站规则,不用自己开端口。",+ "<strong>作为 Windows 服务运行:</strong>开机就启动,不用登录,也没有窗口。在「服务」里叫 PasteFerry Server。",+ "<strong>防火墙已经放行:</strong>脚本添加了一条只针对 pasteferry-server.exe 的入站规则,不用自己开端口。","<strong>地址认错了</strong>(比如装了虚拟机或 VPN,有好几块网卡):在解压出的文件夹的地址栏里输入 <code>cmd</code> 回车,""运行 <code>install.cmd 192.168.1.20</code>,换成你的地址。","支持 Windows 10、11,x64。",],"double_click": "双击",- "explorer_label": "解压出的文件夹里有 copysync-server.exe、install.cmd、install.ps1、README.md、uninstall.cmd,双击其中的 install.cmd",+ "explorer_label": "解压出的文件夹里有 pasteferry-server.exe、install.cmd、install.ps1、README.md、uninstall.cmd,双击其中的 install.cmd","term_title": "管理员: Windows PowerShell","term_label": "install.cmd 运行完的窗口:依次停止旧版本、安装、注册服务、放行防火墙、启动,最后显示客户端要填的地址 ws://192.168.1.20:8787/signal","manage": [- ("状态", "管理员 PowerShell 里运行 <code>Get-Service CopySyncServer</code>,或者在「服务」里找 CopySync Server"),- ("日志", "<code>C:\\ProgramData\\CopySync Server\\server.log</code>"),- ("重启", "管理员 PowerShell 里运行 <code>Restart-Service CopySyncServer</code>"),+ ("状态", "管理员 PowerShell 里运行 <code>Get-Service PasteFerryServer</code>,或者在「服务」里找 PasteFerry Server"),+ ("日志", "<code>C:\\ProgramData\\PasteFerry Server\\server.log</code>"),+ ("重启", "管理员 PowerShell 里运行 <code>Restart-Service PasteFerryServer</code>"),("升级", "下载新版本,解压后再双击 <code>install.cmd</code>,原来的设置保留"),("卸载", "双击 <code>uninstall.cmd</code>,服务、防火墙规则和文件一并删除"),],@@ -421,13 +420,13 @@ C = {"notes": ["<strong>不需要管理员权限。</strong>登录这台 Mac 后自动在后台运行,意外退出会被系统重新拉起。","<strong>这台 Mac 不能睡眠:</strong>在「系统设置 → 能耗」(笔记本在「电池 → 选项」)里打开防止自动进入睡眠的选项。",- "<strong>开着系统防火墙的话,</strong>脚本最后会给出放行 copysync-server 的命令。",+ "<strong>开着系统防火墙的话,</strong>脚本最后会给出放行 pasteferry-server 的命令。","Intel 与 Apple 芯片通用,macOS 13 及以上。",],"term_label": "在终端里运行 ./install.sh 的输出:安装、写入 LaunchAgent、启动,最后显示客户端要填的地址 ws://192.168.1.20:8787/signal","manage": [- ("日志", "<code>~/Library/Logs/CopySync/server.log</code>"),- ("重启", "<code>launchctl kickstart -k gui/$(id -u)/com.copysync.server</code>"),+ ("日志", "<code>~/Library/Logs/PasteFerry/server.log</code>"),+ ("重启", "<code>launchctl kickstart -k gui/$(id -u)/com.pasteferry.server</code>"),("升级", "下载新版本,解压后再运行 <code>./install.sh</code>,原来的设置保留"),("卸载", "<code>./install.sh uninstall</code>"),],@@ -445,10 +444,10 @@ C = {],"term_label": "运行 sudo ./install.sh 的输出:安装、写入 systemd 单元、生成配置、启动,最后显示客户端要填的地址 ws://192.168.1.20:8787/signal","manage": [- ("状态", "<code>systemctl status copysync-server</code>"),- ("日志", "<code>journalctl -u copysync-server -f</code>"),- ("重启", "<code>sudo systemctl restart copysync-server</code>"),- ("配置", "<code>/etc/copysync/server.env</code>,改完重启服务"),+ ("状态", "<code>systemctl status pasteferry-server</code>"),+ ("日志", "<code>journalctl -u pasteferry-server -f</code>"),+ ("重启", "<code>sudo systemctl restart pasteferry-server</code>"),+ ("配置", "<code>/etc/pasteferry/server.env</code>,改完重启服务"),("升级", "下载新版本,解压后再运行 <code>sudo ./install.sh</code>,原来的配置保留"),("卸载", "<code>sudo ./install.sh uninstall</code>"),],@@ -482,7 +481,7 @@ C = {]),("服务器的地址变了怎么办?", ["带上新地址再运行一次安装脚本:Windows 上是 <code>install.cmd 新地址</code>,Mac 上是 <code>./install.sh 新地址</code>;"- "Linux 上编辑 <code>/etc/copysync/server.env</code> 里的 <code>-turn-ip</code>,再重启服务。然后在每台电脑上改掉服务器地址。",+ "Linux 上编辑 <code>/etc/pasteferry/server.env</code> 里的 <code>-turn-ip</code>,再重启服务。然后在每台电脑上改掉服务器地址。","在路由器里给它固定一个地址,就不会再遇到这件事。",]),("离开局域网以后还能同步吗?", [@@ -562,7 +561,7 @@ C = {"最后显示的 <code>ws://203.0.113.10:8787/signal</code> 就是客户端要填的地址。",],"install_notes": [- "<strong>注册为 systemd 服务,</strong>开机自动运行,配置在 <code>/etc/copysync/server.env</code>。",+ "<strong>注册为 systemd 服务,</strong>开机自动运行,配置在 <code>/etc/pasteferry/server.env</code>。","<strong>升级:</strong>下载新版本,解压后再运行 <code>sudo ./install.sh</code>,原来的配置保留。","<strong>也可以用 Docker:</strong>见<a href=\"{deploy}\">服务器部署说明</a>。",],@@ -625,7 +624,7 @@ C = {"点「启用后台同步」。系统询问是否允许读取剪贴板、能否查找本地网络上的设备时,都选择允许。",],"win": [- "运行 CopySync-Setup.exe,不需要管理员权限。<span class=\"aside\">提示「Windows 已保护你的电脑」时,点「更多信息」,再点「仍要运行」。</span>",+ "运行 PasteFerry-Setup.exe,不需要管理员权限。<span class=\"aside\">提示「Windows 已保护你的电脑」时,点「更多信息」,再点「仍要运行」。</span>","打开隔空贴,点「启用后台同步」。防火墙询问时选择允许。关掉窗口后它在右下角的托盘里继续运行。",],"linux": [@@ -688,7 +687,7 @@ C = {"公司里有线和无线常常不在一个网段,这时看下面的<a href=\"#subnet\">不在同一网段</a>。"),("Windows 防火墙", "第一次运行时,Windows 会问是否允许隔空贴通过防火墙,选允许。点过取消的话,""在隔空贴的「设置 → 局域网」里点「放行」,会请求一次管理员权限。"),- ("macOS 的本地网络权限", "macOS 15 起,第一次连接局域网里的设备时,系统会问是否允许 CopySync Daemon 查找本地网络上的设备,选允许。"+ ("macOS 的本地网络权限", "macOS 15 起,第一次连接局域网里的设备时,系统会问是否允许 PasteFerry Daemon 查找本地网络上的设备,选允许。""拒绝过的话,到「系统设置 → 隐私与安全性 → 本地网络」里打开它。"),("不用填服务器", "「设置」里的服务器地址留空就行。以后要跨网络同步,再填上服务器或者改用 Tailscale,已经配对的设备不用重新配对。"),],@@ -726,7 +725,7 @@ C = {"先确认两台连着同一个网络、都启用了后台同步。再试试在输入配对码的那台填上对方的地址:""这样能找到的话,说明两台不在同一网段,或者网络挡住了 mDNS。","还是找不到,就看对方的防火墙:对方是 Windows 的话,在它的「设置 → 局域网」里点「放行」;"- "是 Mac 的话,确认「系统设置 → 隐私与安全性 → 本地网络」里打开了 CopySync Daemon,系统防火墙也没有拦着它。",+ "是 Mac 的话,确认「系统设置 → 隐私与安全性 → 本地网络」里打开了 PasteFerry Daemon,系统防火墙也没有拦着它。",]),("离开这个网络后还能同步吗?", ["不能,回到这个网络后自动恢复,这期间复制的内容会补发到对方的复制记录里。"@@ -833,7 +832,7 @@ C = {("配对时找不到对方?", ["先确认两台的 Tailscale 都已连接:在终端里运行 <code>tailscale ping 对方的地址</code>,能 ping 通再试。","能 ping 通还找不到,多半是对方的防火墙挡住了:对方是 Windows 的话,在它的隔空贴「设置 → 局域网」里点「放行」;"- "是 Mac 的话,确认「系统设置 → 隐私与安全性 → 本地网络」里打开了 CopySync Daemon。",+ "是 Mac 的话,确认「系统设置 → 隐私与安全性 → 本地网络」里打开了 PasteFerry Daemon。",]),("一定要每台电脑都装 Tailscale 吗?", ["是的,没装的电脑访问不到 100 开头的地址。两台在同一个网络里时,不装也能用,见<a href=\"{lan}\">同一网络教程</a>。",@@ -871,7 +870,7 @@ C = {"setup": "下载安装程序","portable": "不想运行安装程序的话,可以下载<a href=\"{portable}\">便携版</a>,解压后直接运行。","steps": [- "运行 CopySync-Setup.exe,装在当前用户目录下,不需要管理员权限。"+ "运行 PasteFerry-Setup.exe,装在当前用户目录下,不需要管理员权限。""<span class=\"aside\">提示「Windows 已保护你的电脑」时,点「更多信息」,再点「仍要运行」。</span>","打开隔空贴,点「启用后台同步」。防火墙询问时选择允许。",],@@ -906,7 +905,7 @@ C = {"notes": ["需要图形桌面:X11,或者带 XWayland 的 Wayland 桌面,GNOME、KDE 等主流桌面默认都带。","不确定是 x64 还是 ARM64:在终端运行 <code>uname -m</code>,显示 <code>x86_64</code> 是 x64,<code>aarch64</code> 是 ARM64。",- ".deb 装在 /opt/CopySync,出现在应用菜单里。tar.gz 解压到哪里都能运行,<code>install.sh</code> 把它加进应用菜单。",+ ".deb 装在 /opt/PasteFerry,出现在应用菜单里。tar.gz 解压到哪里都能运行,<code>install.sh</code> 把它加进应用菜单。","打开后点「启用后台同步」,之后随登录自动启动。GNOME 默认不显示托盘图标,从应用菜单打开窗口。","需要 GTK 3。在 Ubuntu 24.04 的 GNOME(Wayland)上实测过。",],diff --git a/tools/stats/downloads.py b/tools/stats/downloads.pyindex d5116a8..91c701d 100755--- a/tools/stats/downloads.py+++ b/tools/stats/downloads.py@@ -4,7 +4,7 @@python3 tools/stats/downloads.py --record 同时记一份快照,并显示与上次、7 天前相比新增了多少数据来自 GitHub 的 Release 接口(每个文件的 download_count),只有累计值,没有按天的明细,-所以想看趋势就要定期记快照。快照默认存在 ~/.copysync-stats/downloads.jsonl,不进仓库。+所以想看趋势就要定期记快照。快照默认存在 ~/.pasteferry-stats/downloads.jsonl,不进仓库。官网的下载按钮链接的就是这些文件,所以从官网下载的都算在里面;测试时自己下载的也算。只用 Python 标准库。直连 api.github.com 不通时,设置 HTTPS_PROXY 即可。@@ -18,19 +18,22 @@ import urllib.requestfrom datetime import datetime, timedeltafrom pathlib import Path-REPO = "baiyuze/copysync"-DEFAULT_LOG = Path.home() / ".copysync-stats" / "downloads.jsonl"+REPO = "baiyuze/pasteferry"+DEFAULT_LOG = Path.home() / ".pasteferry-stats" / "downloads.jsonl"-# 文件名 → 类别。1.0.0 的文件名带版本号,后来的不带,两种都要认+# 文件名 → 类别。1.0.0 的文件名带版本号,后来的不带,两种都要认;+# 2.0.0 之前产品叫 CopySync,旧版本的文件名还是 CopySync-*、copysync-server-*,一并算上# 1.6.0 起 Mac 分 Apple 芯片、Intel 与通用三个 DMG,合在一起算;Linux 的 .deb 与 tar.gz 也合在一起+APP = r"(PasteFerry|CopySync)"+SERVER = r"(pasteferry|copysync)-server"CATEGORIES = [- ("Mac 客户端", re.compile(r"^CopySync.*\.dmg$")),- ("Windows 安装包", re.compile(r"^CopySync-Setup\.exe$")),- ("Windows 便携版", re.compile(r"^CopySync-windows-x64\.zip$")),- ("Linux 客户端", re.compile(r"^CopySync-linux-(amd64|arm64)\.(deb|tar\.gz)$")),- ("服务器 Linux", re.compile(r"^copysync-server.*-linux-(amd64|arm64)\.tar\.gz$")),- ("服务器 macOS", re.compile(r"^copysync-server.*-macos\.tar\.gz$")),- ("服务器 Windows", re.compile(r"^copysync-server.*-windows-amd64\.zip$")),+ ("Mac 客户端", re.compile(rf"^{APP}.*\.dmg$")),+ ("Windows 安装包", re.compile(rf"^{APP}-Setup\.exe$")),+ ("Windows 便携版", re.compile(rf"^{APP}-windows-x64\.zip$")),+ ("Linux 客户端", re.compile(rf"^{APP}-linux-(amd64|arm64)\.(deb|tar\.gz)$")),+ ("服务器 Linux", re.compile(rf"^{SERVER}.*-linux-(amd64|arm64)\.tar\.gz$")),+ ("服务器 macOS", re.compile(rf"^{SERVER}.*-macos\.tar\.gz$")),+ ("服务器 Windows", re.compile(rf"^{SERVER}.*-windows-amd64\.zip$")),]NAMES = [name for name, _ in CATEGORIES]CLIENTS = NAMES[:4]@@ -48,7 +51,7 @@ def fetch() -> list[dict]:while True:req = urllib.request.Request(f"https://api.github.com/repos/{REPO}/releases?per_page=100&page={page}",- headers={"Accept": "application/vnd.github+json", "User-Agent": "copysync-stats"})+ headers={"Accept": "application/vnd.github+json", "User-Agent": "pasteferry-stats"})with urllib.request.urlopen(req, timeout=30) as resp:batch = json.load(resp)releases += batch@@ -99,7 +102,7 @@ def diff(now: dict, before: dict) -> dict:def main() -> None:- ap = argparse.ArgumentParser(description="统计 CopySync 各版本的下载次数")+ ap = argparse.ArgumentParser(description="统计 PasteFerry 各版本的下载次数")ap.add_argument("--record", action="store_true", help="记录一份快照,并显示新增")ap.add_argument("--log", type=Path, default=DEFAULT_LOG, help=f"快照文件(默认 {DEFAULT_LOG})")args = ap.parse_args()@@ -113,7 +116,7 @@ def main() -> None:totals = by_category(counts)clients = sum(totals[k] for k in CLIENTS)servers = sum(totals[k] for k in NAMES if k not in CLIENTS)- print(f"CopySync 下载统计,{now:%Y-%m-%d %H:%M}(GitHub Release 累计)\n")+ print(f"PasteFerry 下载统计,{now:%Y-%m-%d %H:%M}(GitHub Release 累计)\n")print(table(["类别", "下载次数"], [[k, str(totals[k])] for k in NAMES]+ [["客户端合计", str(clients)], ["服务器合计", str(servers)]]))diff --git a/ui/README.md b/ui/README.mdindex 1e46a96..613b66c 100644--- a/ui/README.md+++ b/ui/README.md@@ -1,10 +1,10 @@-# CopySync 界面+# 隔空贴界面-CopySync 的 macOS 界面(Flutter):复制记录、设备配对、设置,以及首次启动时启用后台同步。+隔空贴的 macOS 界面(Flutter):复制记录、设备配对、设置,以及首次启动时启用后台同步。-界面本身不碰剪贴板,也不联网:所有操作都经本机 gRPC 交给后台服务 `copysyncd`+界面本身不碰剪贴板,也不联网:所有操作都经本机 gRPC 交给后台服务 `pasteferryd`(见 `../client-core`)。连接信息由后台服务写在-`~/Library/Application Support/CopySync/daemon.json`。+`~/Library/Application Support/PasteFerry/daemon.json`。```bashflutter run -d macos # 开发运行,需要后台服务已在运行(../scripts/install-macos.sh)diff --git a/ui/lib/app_state.dart b/ui/lib/app_state.dartindex 544686c..c61940b 100644--- a/ui/lib/app_state.dart+++ b/ui/lib/app_state.dart@@ -6,8 +6,8 @@ import 'package:grpc/grpc.dart';import 'background_service.dart';import 'daemon_client.dart';import 'i18n.dart';-import 'gen/copysync/v1/daemon.pb.dart';-import 'gen/copysync/v1/daemon.pbgrpc.dart' show DaemonServiceClient;+import 'gen/pasteferry/v1/daemon.pb.dart';+import 'gen/pasteferry/v1/daemon.pbgrpc.dart' show DaemonServiceClient;/// daemon 连接的生命周期状态。enum LinkState { connecting, online, offline }@@ -107,6 +107,7 @@ class AppState extends ChangeNotifier {Future<void> connect() async {_retry?.cancel();_setLink(LinkState.connecting, null);+ await _replaceLegacyService();try {final conn = await DaemonConnection.connect();@@ -146,6 +147,20 @@ class AppState extends ChangeNotifier {}}+ bool _legacyChecked = false;++ /// 2.0.0 之前叫 CopySync 时登记的后台服务先停掉;原先启用着的,改为启用新的,+ /// 新的后台服务第一次启动时会把旧的数据目录挪过来,配对关系与复制记录都还在+ Future<void> _replaceLegacyService() async {+ if (_legacyChecked || !service.available) return;+ _legacyChecked = true;+ try {+ if (await service.removeLegacy()) await service.install();+ } catch (_) {+ // 清理失败不影响使用:用户还可以在界面上手动启用后台同步+ }+ }+Future<void> _refreshServiceState() async {try {_serviceState = await service.state();diff --git a/ui/lib/background_service.dart b/ui/lib/background_service.dartindex 57f7ff2..4988e79 100644--- a/ui/lib/background_service.dart+++ b/ui/lib/background_service.dart@@ -56,9 +56,13 @@ abstract class BackgroundService {/// 停用并取消开机自启。数据目录保留,重新启用后历史记录与配对关系都还在。Future<void> uninstall();++ /// 2.0.0 之前产品叫 CopySync:停掉并移除那时登记的后台服务,否则它会和新的同时监听剪贴板。+ /// 返回旧服务原先是否启用,启用过的就该接着启用新的。数据目录由新的后台服务第一次启动时挪过来+ Future<bool> removeLegacy();}-/// Mac:后台服务内置在 `CopySync.app/Contents/Helpers/` 下,由界面在首次启动时+/// Mac:后台服务内置在 `PasteFerry.app/Contents/Helpers/` 下,由界面在首次启动时/// 注册成 launchd 的 LaunchAgent。/// 用 LaunchAgent 而非 LaunchDaemon:剪贴板属于登录用户的会话,系统级进程访问不到。class MacBackgroundService implements BackgroundService {@@ -66,22 +70,22 @@ class MacBackgroundService implements BackgroundService {: _executable = executable ?? Platform.resolvedExecutable,_home = home ?? Platform.environment['HOME'] ?? '';- static const label = 'com.copysync.daemon';+ static const label = 'com.pasteferry.daemon';/// 界面 App 的 bundle ID。写进登录项,系统才知道后台服务属于哪个 App:- /// macOS 15 的「本地网络」权限按它记账,登录项列表里也显示成 CopySync。- static const _appBundleId = 'com.copysync.app';+ /// macOS 15 的「本地网络」权限按它记账,登录项列表里也显示成 PasteFerry。+ static const _appBundleId = 'com.pasteferry.app';final String _executable;final String _home;- /// `…/CopySync.app`,由可执行文件 `…/CopySync.app/Contents/MacOS/CopySync` 上溯三级。+ /// `…/PasteFerry.app`,由可执行文件 `…/PasteFerry.app/Contents/MacOS/PasteFerry` 上溯三级。String get _bundle => File(_executable).parent.parent.parent.path;- String get helperApp => '$_bundle/Contents/Helpers/CopySyncDaemon.app';- String get helperBinary => '$helperApp/Contents/MacOS/copysyncd';+ String get helperApp => '$_bundle/Contents/Helpers/PasteFerryDaemon.app';+ String get helperBinary => '$helperApp/Contents/MacOS/pasteferryd';String get plistPath => '$_home/Library/LaunchAgents/$label.plist';- String get logPath => '$_home/Library/Logs/CopySync/daemon.log';+ String get logPath => '$_home/Library/Logs/PasteFerry/daemon.log';@overrideString get displayLogPath => logPath.replaceFirst(RegExp(r'^/Users/[^/]+'), '~');@@ -150,11 +154,21 @@ class MacBackgroundService implements BackgroundService {if (await plist.exists()) await plist.delete();}- Future<void> _bootout() async {- await Process.run('launchctl', ['bootout', await _target()]);+ @override+ Future<bool> removeLegacy() async {+ final plist = File('$_home/Library/LaunchAgents/com.copysync.daemon.plist');+ if (!await plist.exists()) return false;+ await _bootout('${await _domain()}/com.copysync.daemon');+ await plist.delete();+ return true;+ }++ Future<void> _bootout([String? target]) async {+ target ??= await _target();+ await Process.run('launchctl', ['bootout', target]);// bootout 是异步的:旧服务没注销干净就 bootstrap 会报 "Bootstrap failed: 5"for (var i = 0; i < 20; i++) {- final r = await Process.run('launchctl', ['print', await _target()]);+ final r = await Process.run('launchctl', ['print', target]);if (r.exitCode != 0) return;await Future<void>.delayed(const Duration(milliseconds: 250));}diff --git a/ui/lib/background_service_linux.dart b/ui/lib/background_service_linux.dartindex 1a6b0ec..8136d2c 100644--- a/ui/lib/background_service_linux.dart+++ b/ui/lib/background_service_linux.dart@@ -3,11 +3,11 @@ import 'dart:io';import 'background_service.dart';import 'i18n.dart';-/// Linux:后台服务 `copysyncd` 与界面程序放在同一个目录(.deb 装在 /opt/CopySync)。+/// Linux:后台服务 `pasteferryd` 与界面程序放在同一个目录(.deb 装在 /opt/PasteFerry)。////// 开机自启用 XDG 自启动项(`~/.config/autostart/` 下的 .desktop 文件),GNOME、KDE、Xfce 等桌面都认。/// 它在登录后的图形会话里启动,带着 DISPLAY、XAUTHORITY 等环境变量,后台服务才连得上剪贴板。-/// 登记的命令是 `copysyncd -supervise`:守护进程拉起真正干活的子进程,崩溃就隔 10 秒再拉起,+/// 登记的命令是 `pasteferryd -supervise`:守护进程拉起真正干活的子进程,崩溃就隔 10 秒再拉起,/// 与 Windows 的做法相同。////// 不用 systemd 的用户服务:它不一定拿得到图形会话的环境变量,各发行版的做法也不一致。@@ -16,7 +16,7 @@ class LinuxBackgroundService implements BackgroundService {: _executable = executable ?? Platform.resolvedExecutable,_env = environment ?? Platform.environment;- static const _image = 'copysyncd';+ static const _image = 'pasteferryd';final String _executable;final Map<String, String> _env;@@ -31,9 +31,9 @@ class LinuxBackgroundService implements BackgroundService {return v.startsWith('/') ? v : '$_home/$fallback';}- String get autostartPath => '${_xdg('XDG_CONFIG_HOME', '.config')}/autostart/copysync-daemon.desktop';+ String get autostartPath => '${_xdg('XDG_CONFIG_HOME', '.config')}/autostart/pasteferry-daemon.desktop';- String get logPath => '${_xdg('XDG_DATA_HOME', '.local/share')}/copysync/logs/daemon.log';+ String get logPath => '${_xdg('XDG_DATA_HOME', '.local/share')}/pasteferry/logs/daemon.log';@overrideString get displayLogPath => _home.isEmpty ? logPath : logPath.replaceFirst(_home, '~');@@ -80,20 +80,30 @@ class LinuxBackgroundService implements BackgroundService {await _stop();}+ @override+ Future<bool> removeLegacy() async {+ const legacyImage = 'copysyncd';+ final old = File('${_xdg('XDG_CONFIG_HOME', '.config')}/autostart/copysync-daemon.desktop');+ final enabled = old.existsSync();+ if (enabled) await old.delete();+ if (await _running(legacyImage)) await _stop(legacyImage);+ return enabled;+ }+/// 守护进程与后台服务一起结束:只结束后台服务的话,守护进程会把它重新拉起来- Future<void> _stop() async {- await Process.run('pkill', [..._ownedBy, '-x', _image]);- for (var i = 0; i < 20 && await _running(); i++) {+ Future<void> _stop([String image = _image]) async {+ await Process.run('pkill', [..._ownedBy, '-x', image]);+ for (var i = 0; i < 20 && await _running(image); i++) {await Future<void>.delayed(const Duration(milliseconds: 250));}}- Future<bool> _running() async {- final r = await Process.run('pgrep', [..._ownedBy, '-x', _image]);+ Future<bool> _running([String image = _image]) async {+ final r = await Process.run('pgrep', [..._ownedBy, '-x', image]);return r.exitCode == 0;}- /// 只管当前用户的进程:同一台电脑上别的用户也可能在运行 CopySync+ /// 只管当前用户的进程:同一台电脑上别的用户也可能在运行 PasteFerryList<String> get _ownedBy {final user = _env['USER'] ?? '';return user.isEmpty ? const [] : ['-u', user];@@ -103,10 +113,10 @@ class LinuxBackgroundService implements BackgroundService {/// XDG 自启动项。NoDisplay:不出现在应用菜单里;它只是后台服务的开机启动入口。String desktopEntry(String exec) => '''[Desktop Entry]Type=Application-Name=CopySync+Name=PasteFerryComment=Keeps the clipboard in sync with your other devicesExec=$exec-Icon=com.copysync.app+Icon=com.pasteferry.appTerminal=falseNoDisplay=trueX-GNOME-Autostart-enabled=truediff --git a/ui/lib/background_service_windows.dart b/ui/lib/background_service_windows.dartindex 6f38093..22a5d94 100644--- a/ui/lib/background_service_windows.dart+++ b/ui/lib/background_service_windows.dart@@ -3,10 +3,10 @@ import 'dart:io';import 'background_service.dart';import 'i18n.dart';-/// Windows:后台服务 `copysyncd.exe` 与 `CopySync.exe` 放在同一个目录。+/// Windows:后台服务 `pasteferryd.exe` 与 `PasteFerry.exe` 放在同一个目录。////// 开机自启登记在 `HKCU\...\Run`,只影响当前用户,不需要管理员权限。登记的命令是-/// `copysyncd.exe -supervise`:守护进程拉起真正干活的子进程,子进程崩溃就隔 10 秒+/// `pasteferryd.exe -supervise`:守护进程拉起真正干活的子进程,子进程崩溃就隔 10 秒/// 再拉起,相当于 Mac 上 launchd 的 KeepAlive。////// 不做成 Windows 服务:服务运行在会话 0,与用户桌面隔离,访问不到用户的剪贴板。@@ -16,8 +16,8 @@ class WindowsBackgroundService implements BackgroundService {_env = environment ?? Platform.environment;static const _runKey = r'HKCU\Software\Microsoft\Windows\CurrentVersion\Run';- static const _valueName = 'CopySync';- static const _image = 'copysyncd.exe';+ static const _valueName = 'PasteFerry';+ static const _image = 'pasteferryd.exe';final String _executable;final Map<String, String> _env;@@ -29,7 +29,7 @@ class WindowsBackgroundService implements BackgroundService {String get _localAppData => _env['LOCALAPPDATA'] ?? '${_env['USERPROFILE']}\\AppData\\Local';- String get logPath => '$_localAppData\\CopySync\\logs\\daemon.log';+ String get logPath => '$_localAppData\\PasteFerry\\logs\\daemon.log';@overrideString get displayLogPath => logPath.replaceFirst(_localAppData, '%LOCALAPPDATA%');@@ -79,17 +79,26 @@ class WindowsBackgroundService implements BackgroundService {await _stop();}+ @override+ Future<bool> removeLegacy() async {+ const legacyValue = 'CopySync', legacyImage = 'copysyncd.exe';+ final enabled = (await Process.run('reg', ['query', _runKey, '/v', legacyValue])).exitCode == 0;+ if (enabled) await Process.run('reg', ['delete', _runKey, '/v', legacyValue, '/f']);+ if (await _running(legacyImage)) await _stop(legacyImage);+ return enabled;+ }+/// 守护进程与后台服务一起结束:只结束后台服务的话,守护进程会把它重新拉起来- Future<void> _stop() async {- await Process.run('taskkill', ['/F', '/T', '/IM', _image]);- for (var i = 0; i < 20 && await _running(); i++) {+ Future<void> _stop([String image = _image]) async {+ await Process.run('taskkill', ['/F', '/T', '/IM', image]);+ for (var i = 0; i < 20 && await _running(image); i++) {await Future<void>.delayed(const Duration(milliseconds: 250));}}- Future<bool> _running() async {- final r = await Process.run('tasklist', ['/FI', 'IMAGENAME eq $_image', '/NH']);- return '${r.stdout}'.toLowerCase().contains(_image);+ Future<bool> _running([String image = _image]) async {+ final r = await Process.run('tasklist', ['/FI', 'IMAGENAME eq $image', '/NH']);+ return '${r.stdout}'.toLowerCase().contains(image);}/// 自启项里登记的命令;没有登记时为 null。@@ -97,7 +106,7 @@ class WindowsBackgroundService implements BackgroundService {/// `reg query` 的输出形如:////// HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run- /// CopySync REG_SZ "C:\...\copysyncd.exe" -supervise+ /// PasteFerry REG_SZ "C:\...\pasteferryd.exe" -superviseFuture<String?> _registeredCommand() async {final r = await Process.run('reg', ['query', _runKey, '/v', _valueName]);if (r.exitCode != 0) return null;diff --git a/ui/lib/daemon_client.dart b/ui/lib/daemon_client.dartindex 9e8ce6c..d511501 100644--- a/ui/lib/daemon_client.dart+++ b/ui/lib/daemon_client.dart@@ -4,7 +4,7 @@ import 'dart:io';import 'package:grpc/grpc.dart';-import 'gen/copysync/v1/daemon.pbgrpc.dart';+import 'gen/pasteferry/v1/daemon.pbgrpc.dart';/// daemon 写在数据目录下的握手信息。///@@ -35,23 +35,23 @@ class DaemonEndpoint {////// 刻意不用 path_provider:它在 macOS 上返回的是/// `~/Library/Application Support/<bundle_id>`,与 daemon 用的- /// `~/Library/Application Support/CopySync` 并不是同一个位置。+ /// `~/Library/Application Support/PasteFerry` 并不是同一个位置。static String defaultDataDir() {if (Platform.isMacOS) {final home = Platform.environment['HOME'] ?? '';- return '$home/Library/Application Support/CopySync';+ return '$home/Library/Application Support/PasteFerry';}if (Platform.isWindows) {final base = Platform.environment['LOCALAPPDATA'] ??Platform.environment['APPDATA'] ??'';- return '$base\\CopySync';+ return '$base\\PasteFerry';}// Linux:按 XDG 放在 ~/.local/share 下,XDG_DATA_HOME 是绝对路径时以它为准final env = Platform.environment;final data = env['XDG_DATA_HOME'] ?? '';final base = data.startsWith('/') ? data : '${env['HOME'] ?? ''}/.local/share';- return '$base/copysync';+ return '$base/pasteferry';}static File endpointFile([String? dataDir]) =>@@ -95,7 +95,7 @@ class DaemonConnection {);final client = DaemonServiceClient(channel,- options: CallOptions(metadata: {'x-copysync-token': ep.token}),+ options: CallOptions(metadata: {'x-pasteferry-token': ep.token}),);return DaemonConnection._(channel, client, ep);}diff --git a/ui/lib/gen/copysync/v1/daemon.pb.dart b/ui/lib/gen/pasteferry/v1/daemon.pb.dartsimilarity index 97%rename from ui/lib/gen/copysync/v1/daemon.pb.dartrename to ui/lib/gen/pasteferry/v1/daemon.pb.dartindex 11b08fa..81a8f04 100644--- a/ui/lib/gen/copysync/v1/daemon.pb.dart+++ b/ui/lib/gen/pasteferry/v1/daemon.pb.dart@@ -1,6 +1,6 @@// This is a generated file - do not edit.//-// Generated from copysync/v1/daemon.proto.+// Generated from pasteferry/v1/daemon.proto.// @dart = 3.3@@ -35,7 +35,7 @@ class Empty extends $pb.GeneratedMessage {static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'Empty',- package: const $pb.PackageName(_omitMessageNames ? '' : 'copysync.v1'),+ package: const $pb.PackageName(_omitMessageNames ? '' : 'pasteferry.v1'),createEmptyInstance: Empty.$_createMessage)..hasRequiredFields = false;@@ -86,7 +86,7 @@ class ClipItem extends $pb.GeneratedMessage {static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'ClipItem',- package: const $pb.PackageName(_omitMessageNames ? '' : 'copysync.v1'),+ package: const $pb.PackageName(_omitMessageNames ? '' : 'pasteferry.v1'),createEmptyInstance: ClipItem.$_createMessage)..aOS(1, _omitFieldNames ? '' : 'name')..aInt64(2, _omitFieldNames ? '' : 'size')@@ -195,7 +195,7 @@ class ClipRecord extends $pb.GeneratedMessage {static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'ClipRecord',- package: const $pb.PackageName(_omitMessageNames ? '' : 'copysync.v1'),+ package: const $pb.PackageName(_omitMessageNames ? '' : 'pasteferry.v1'),createEmptyInstance: ClipRecord.$_createMessage)..aOS(1, _omitFieldNames ? '' : 'id')..aE<ClipKind>(2, _omitFieldNames ? '' : 'kind',@@ -369,7 +369,7 @@ class SubscribeRequest extends $pb.GeneratedMessage {static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'SubscribeRequest',- package: const $pb.PackageName(_omitMessageNames ? '' : 'copysync.v1'),+ package: const $pb.PackageName(_omitMessageNames ? '' : 'pasteferry.v1'),createEmptyInstance: SubscribeRequest.$_createMessage)..aInt64(1, _omitFieldNames ? '' : 'sinceUnix')..hasRequiredFields = false;@@ -433,7 +433,7 @@ class TransferProgress extends $pb.GeneratedMessage {static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'TransferProgress',- package: const $pb.PackageName(_omitMessageNames ? '' : 'copysync.v1'),+ package: const $pb.PackageName(_omitMessageNames ? '' : 'pasteferry.v1'),createEmptyInstance: TransferProgress.$_createMessage)..aOS(1, _omitFieldNames ? '' : 'clipId')..aInt64(2, _omitFieldNames ? '' : 'transferred')@@ -535,7 +535,7 @@ class Device extends $pb.GeneratedMessage {static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'Device',- package: const $pb.PackageName(_omitMessageNames ? '' : 'copysync.v1'),+ package: const $pb.PackageName(_omitMessageNames ? '' : 'pasteferry.v1'),createEmptyInstance: Device.$_createMessage)..aOS(1, _omitFieldNames ? '' : 'id')..aOS(2, _omitFieldNames ? '' : 'name')@@ -697,7 +697,7 @@ class Event extends $pb.GeneratedMessage {};static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'Event',- package: const $pb.PackageName(_omitMessageNames ? '' : 'copysync.v1'),+ package: const $pb.PackageName(_omitMessageNames ? '' : 'pasteferry.v1'),createEmptyInstance: Event.$_createMessage)..oo(0, [1, 2, 3, 4, 5, 6, 7])..aOM<ClipRecord>(1, _omitFieldNames ? '' : 'clipAdded',@@ -852,7 +852,7 @@ class ListHistoryRequest extends $pb.GeneratedMessage {static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'ListHistoryRequest',- package: const $pb.PackageName(_omitMessageNames ? '' : 'copysync.v1'),+ package: const $pb.PackageName(_omitMessageNames ? '' : 'pasteferry.v1'),createEmptyInstance: ListHistoryRequest.$_createMessage)..aI(1, _omitFieldNames ? '' : 'limit')..aInt64(2, _omitFieldNames ? '' : 'beforeUnix')@@ -944,7 +944,7 @@ class ListHistoryResponse extends $pb.GeneratedMessage {static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'ListHistoryResponse',- package: const $pb.PackageName(_omitMessageNames ? '' : 'copysync.v1'),+ package: const $pb.PackageName(_omitMessageNames ? '' : 'pasteferry.v1'),createEmptyInstance: ListHistoryResponse.$_createMessage)..pPM<ClipRecord>(1, _omitFieldNames ? '' : 'records',subBuilder: ClipRecord.$_createMessage)@@ -1010,7 +1010,7 @@ class DeleteHistoryRequest extends $pb.GeneratedMessage {static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'DeleteHistoryRequest',- package: const $pb.PackageName(_omitMessageNames ? '' : 'copysync.v1'),+ package: const $pb.PackageName(_omitMessageNames ? '' : 'pasteferry.v1'),createEmptyInstance: DeleteHistoryRequest.$_createMessage)..pPS(1, _omitFieldNames ? '' : 'ids')..aOB(2, _omitFieldNames ? '' : 'all')@@ -1074,7 +1074,7 @@ class FetchRequest extends $pb.GeneratedMessage {static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'FetchRequest',- package: const $pb.PackageName(_omitMessageNames ? '' : 'copysync.v1'),+ package: const $pb.PackageName(_omitMessageNames ? '' : 'pasteferry.v1'),createEmptyInstance: FetchRequest.$_createMessage)..aOS(1, _omitFieldNames ? '' : 'clipId')..aOB(2, _omitFieldNames ? '' : 'preserveClipboard')@@ -1141,7 +1141,7 @@ class ApplyToClipboardRequest extends $pb.GeneratedMessage {static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'ApplyToClipboardRequest',- package: const $pb.PackageName(_omitMessageNames ? '' : 'copysync.v1'),+ package: const $pb.PackageName(_omitMessageNames ? '' : 'pasteferry.v1'),createEmptyInstance: ApplyToClipboardRequest.$_createMessage)..aOS(1, _omitFieldNames ? '' : 'clipId')..hasRequiredFields = false;@@ -1202,7 +1202,7 @@ class ListDevicesResponse extends $pb.GeneratedMessage {static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'ListDevicesResponse',- package: const $pb.PackageName(_omitMessageNames ? '' : 'copysync.v1'),+ package: const $pb.PackageName(_omitMessageNames ? '' : 'pasteferry.v1'),createEmptyInstance: ListDevicesResponse.$_createMessage)..aOM<Device>(1, _omitFieldNames ? '' : 'self',subBuilder: Device.$_createMessage)@@ -1272,7 +1272,7 @@ class CreatePairingCodeResponse extends $pb.GeneratedMessage {static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'CreatePairingCodeResponse',- package: const $pb.PackageName(_omitMessageNames ? '' : 'copysync.v1'),+ package: const $pb.PackageName(_omitMessageNames ? '' : 'pasteferry.v1'),createEmptyInstance: CreatePairingCodeResponse.$_createMessage)..aOS(1, _omitFieldNames ? '' : 'code')..aInt64(2, _omitFieldNames ? '' : 'expiresAtUnix')@@ -1353,7 +1353,7 @@ class RedeemPairingCodeRequest extends $pb.GeneratedMessage {static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'RedeemPairingCodeRequest',- package: const $pb.PackageName(_omitMessageNames ? '' : 'copysync.v1'),+ package: const $pb.PackageName(_omitMessageNames ? '' : 'pasteferry.v1'),createEmptyInstance: RedeemPairingCodeRequest.$_createMessage)..aOS(1, _omitFieldNames ? '' : 'code')..aOS(2, _omitFieldNames ? '' : 'address')@@ -1426,7 +1426,7 @@ class RedeemPairingCodeResponse extends $pb.GeneratedMessage {static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'RedeemPairingCodeResponse',- package: const $pb.PackageName(_omitMessageNames ? '' : 'copysync.v1'),+ package: const $pb.PackageName(_omitMessageNames ? '' : 'pasteferry.v1'),createEmptyInstance: RedeemPairingCodeResponse.$_createMessage)..aOM<Device>(1, _omitFieldNames ? '' : 'peer',subBuilder: Device.$_createMessage)@@ -1503,7 +1503,7 @@ class ConfirmPairingRequest extends $pb.GeneratedMessage {static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'ConfirmPairingRequest',- package: const $pb.PackageName(_omitMessageNames ? '' : 'copysync.v1'),+ package: const $pb.PackageName(_omitMessageNames ? '' : 'pasteferry.v1'),createEmptyInstance: ConfirmPairingRequest.$_createMessage)..aOS(1, _omitFieldNames ? '' : 'pairingSession')..aOB(2, _omitFieldNames ? '' : 'accept')@@ -1579,7 +1579,7 @@ class NearbyDevice extends $pb.GeneratedMessage {static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'NearbyDevice',- package: const $pb.PackageName(_omitMessageNames ? '' : 'copysync.v1'),+ package: const $pb.PackageName(_omitMessageNames ? '' : 'pasteferry.v1'),createEmptyInstance: NearbyDevice.$_createMessage)..aOS(1, _omitFieldNames ? '' : 'id')..aOS(2, _omitFieldNames ? '' : 'name')@@ -1666,7 +1666,7 @@ class NearbyDevices extends $pb.GeneratedMessage {static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'NearbyDevices',- package: const $pb.PackageName(_omitMessageNames ? '' : 'copysync.v1'),+ package: const $pb.PackageName(_omitMessageNames ? '' : 'pasteferry.v1'),createEmptyInstance: NearbyDevices.$_createMessage)..pPM<NearbyDevice>(1, _omitFieldNames ? '' : 'devices',subBuilder: NearbyDevice.$_createMessage)@@ -1718,7 +1718,7 @@ class PairNearbyRequest extends $pb.GeneratedMessage {static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'PairNearbyRequest',- package: const $pb.PackageName(_omitMessageNames ? '' : 'copysync.v1'),+ package: const $pb.PackageName(_omitMessageNames ? '' : 'pasteferry.v1'),createEmptyInstance: PairNearbyRequest.$_createMessage)..aOS(1, _omitFieldNames ? '' : 'id')..hasRequiredFields = false;@@ -1775,7 +1775,7 @@ class UnpairRequest extends $pb.GeneratedMessage {static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'UnpairRequest',- package: const $pb.PackageName(_omitMessageNames ? '' : 'copysync.v1'),+ package: const $pb.PackageName(_omitMessageNames ? '' : 'pasteferry.v1'),createEmptyInstance: UnpairRequest.$_createMessage)..aOS(1, _omitFieldNames ? '' : 'deviceId')..hasRequiredFields = false;@@ -1834,7 +1834,7 @@ class SetDeviceAddressRequest extends $pb.GeneratedMessage {static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'SetDeviceAddressRequest',- package: const $pb.PackageName(_omitMessageNames ? '' : 'copysync.v1'),+ package: const $pb.PackageName(_omitMessageNames ? '' : 'pasteferry.v1'),createEmptyInstance: SetDeviceAddressRequest.$_createMessage)..aOS(1, _omitFieldNames ? '' : 'deviceId')..aOS(2, _omitFieldNames ? '' : 'address')@@ -1931,7 +1931,7 @@ class Config extends $pb.GeneratedMessage {static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'Config',- package: const $pb.PackageName(_omitMessageNames ? '' : 'copysync.v1'),+ package: const $pb.PackageName(_omitMessageNames ? '' : 'pasteferry.v1'),createEmptyInstance: Config.$_createMessage)..aInt64(1, _omitFieldNames ? '' : 'autoSyncThresholdBytes')..aInt64(2, _omitFieldNames ? '' : 'historyTtlSeconds')@@ -2135,7 +2135,7 @@ class NetworkInfo extends $pb.GeneratedMessage {static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'NetworkInfo',- package: const $pb.PackageName(_omitMessageNames ? '' : 'copysync.v1'),+ package: const $pb.PackageName(_omitMessageNames ? '' : 'pasteferry.v1'),createEmptyInstance: NetworkInfo.$_createMessage)..aI(1, _omitFieldNames ? '' : 'localPort')..pPM<NetworkEgress>(2, _omitFieldNames ? '' : 'egresses',@@ -2220,7 +2220,7 @@ class NetworkInfo extends $pb.GeneratedMessage {LanInfo ensureLan() => $_ensure(5);}-/// 局域网直连的诊断信息,见 copysync-cli nat。+/// 局域网直连的诊断信息,见 pasteferry-cli nat。class LanInfo extends $pb.GeneratedMessage {factory LanInfo({$core.bool? enabled,@@ -2251,7 +2251,7 @@ class LanInfo extends $pb.GeneratedMessage {static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'LanInfo',- package: const $pb.PackageName(_omitMessageNames ? '' : 'copysync.v1'),+ package: const $pb.PackageName(_omitMessageNames ? '' : 'pasteferry.v1'),createEmptyInstance: LanInfo.$_createMessage)..aOB(1, _omitFieldNames ? '' : 'enabled')..aI(2, _omitFieldNames ? '' : 'port')@@ -2355,7 +2355,7 @@ class LanPeer extends $pb.GeneratedMessage {static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'LanPeer',- package: const $pb.PackageName(_omitMessageNames ? '' : 'copysync.v1'),+ package: const $pb.PackageName(_omitMessageNames ? '' : 'pasteferry.v1'),createEmptyInstance: LanPeer.$_createMessage)..aOS(1, _omitFieldNames ? '' : 'deviceId')..aOS(2, _omitFieldNames ? '' : 'deviceName')@@ -2460,7 +2460,7 @@ class NetworkEgress extends $pb.GeneratedMessage {static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'NetworkEgress',- package: const $pb.PackageName(_omitMessageNames ? '' : 'copysync.v1'),+ package: const $pb.PackageName(_omitMessageNames ? '' : 'pasteferry.v1'),createEmptyInstance: NetworkEgress.$_createMessage)..aOS(1, _omitFieldNames ? '' : 'address')..aOB(2, _omitFieldNames ? '' : 'portPreserved')@@ -2564,7 +2564,7 @@ class Status extends $pb.GeneratedMessage {static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'Status',- package: const $pb.PackageName(_omitMessageNames ? '' : 'copysync.v1'),+ package: const $pb.PackageName(_omitMessageNames ? '' : 'pasteferry.v1'),createEmptyInstance: Status.$_createMessage)..aOS(1, _omitFieldNames ? '' : 'deviceId')..aOS(2, _omitFieldNames ? '' : 'deviceName')@@ -2725,7 +2725,7 @@ class ExportDiagnosticsRequest extends $pb.GeneratedMessage {static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'ExportDiagnosticsRequest',- package: const $pb.PackageName(_omitMessageNames ? '' : 'copysync.v1'),+ package: const $pb.PackageName(_omitMessageNames ? '' : 'pasteferry.v1'),createEmptyInstance: ExportDiagnosticsRequest.$_createMessage)..aI(1, _omitFieldNames ? '' : 'logLines')..aOS(2, _omitFieldNames ? '' : 'uiVersion')@@ -2795,7 +2795,7 @@ class Diagnostics extends $pb.GeneratedMessage {static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'Diagnostics',- package: const $pb.PackageName(_omitMessageNames ? '' : 'copysync.v1'),+ package: const $pb.PackageName(_omitMessageNames ? '' : 'pasteferry.v1'),createEmptyInstance: Diagnostics.$_createMessage)..aOS(1, _omitFieldNames ? '' : 'report')..hasRequiredFields = false;@@ -2852,7 +2852,7 @@ class SetVerboseLogRequest extends $pb.GeneratedMessage {static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'SetVerboseLogRequest',- package: const $pb.PackageName(_omitMessageNames ? '' : 'copysync.v1'),+ package: const $pb.PackageName(_omitMessageNames ? '' : 'pasteferry.v1'),createEmptyInstance: SetVerboseLogRequest.$_createMessage)..aI(1, _omitFieldNames ? '' : 'minutes')..hasRequiredFields = false;@@ -2912,7 +2912,7 @@ class GetImagePreviewRequest extends $pb.GeneratedMessage {static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'GetImagePreviewRequest',- package: const $pb.PackageName(_omitMessageNames ? '' : 'copysync.v1'),+ package: const $pb.PackageName(_omitMessageNames ? '' : 'pasteferry.v1'),createEmptyInstance: GetImagePreviewRequest.$_createMessage)..aOS(1, _omitFieldNames ? '' : 'clipId')..aI(2, _omitFieldNames ? '' : 'index')@@ -2985,7 +2985,7 @@ class GetImagePreviewResponse extends $pb.GeneratedMessage {static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'GetImagePreviewResponse',- package: const $pb.PackageName(_omitMessageNames ? '' : 'copysync.v1'),+ package: const $pb.PackageName(_omitMessageNames ? '' : 'pasteferry.v1'),createEmptyInstance: GetImagePreviewResponse.$_createMessage)..aOS(1, _omitFieldNames ? '' : 'path')..aI(2, _omitFieldNames ? '' : 'count')diff --git a/ui/lib/gen/copysync/v1/daemon.pbenum.dart b/ui/lib/gen/pasteferry/v1/daemon.pbenum.dartsimilarity index 99%rename from ui/lib/gen/copysync/v1/daemon.pbenum.dartrename to ui/lib/gen/pasteferry/v1/daemon.pbenum.dartindex 3f2488e..0850fcc 100644--- a/ui/lib/gen/copysync/v1/daemon.pbenum.dart+++ b/ui/lib/gen/pasteferry/v1/daemon.pbenum.dart@@ -1,6 +1,6 @@// This is a generated file - do not edit.//-// Generated from copysync/v1/daemon.proto.+// Generated from pasteferry/v1/daemon.proto.// @dart = 3.3diff --git a/ui/lib/gen/copysync/v1/daemon.pbgrpc.dart b/ui/lib/gen/pasteferry/v1/daemon.pbgrpc.dartsimilarity index 94%rename from ui/lib/gen/copysync/v1/daemon.pbgrpc.dartrename to ui/lib/gen/pasteferry/v1/daemon.pbgrpc.dartindex 7deebe8..af5d032 100644--- a/ui/lib/gen/copysync/v1/daemon.pbgrpc.dart+++ b/ui/lib/gen/pasteferry/v1/daemon.pbgrpc.dart@@ -1,6 +1,6 @@// This is a generated file - do not edit.//-// Generated from copysync/v1/daemon.proto.+// Generated from pasteferry/v1/daemon.proto.// @dart = 3.3@@ -20,7 +20,7 @@ import 'daemon.pb.dart' as $0;export 'daemon.pb.dart';-@$pb.GrpcServiceName('copysync.v1.DaemonService')+@$pb.GrpcServiceName('pasteferry.v1.DaemonService')class DaemonServiceClient extends $grpc.Client {/// The hostname for this service.static const $core.String defaultHost = '';@@ -183,7 +183,7 @@ class DaemonServiceClient extends $grpc.Client {options: options);}- /// 网络出口与打洞诊断:本机有几个出口、各自的公网地址,见 copysync-cli nat+ /// 网络出口与打洞诊断:本机有几个出口、各自的公网地址,见 pasteferry-cli nat$grpc.ResponseFuture<$0.NetworkInfo> getNetwork($0.Empty request, {$grpc.CallOptions? options,@@ -211,112 +211,112 @@ class DaemonServiceClient extends $grpc.Client {// method descriptorsstatic final _$subscribe = $grpc.ClientMethod<$0.SubscribeRequest, $0.Event>(- '/copysync.v1.DaemonService/Subscribe',+ '/pasteferry.v1.DaemonService/Subscribe',($0.SubscribeRequest value) => value.writeToBuffer(),$0.Event.fromBuffer);static final _$listHistory =$grpc.ClientMethod<$0.ListHistoryRequest, $0.ListHistoryResponse>(- '/copysync.v1.DaemonService/ListHistory',+ '/pasteferry.v1.DaemonService/ListHistory',($0.ListHistoryRequest value) => value.writeToBuffer(),$0.ListHistoryResponse.fromBuffer);static final _$deleteHistory =$grpc.ClientMethod<$0.DeleteHistoryRequest, $0.Empty>(- '/copysync.v1.DaemonService/DeleteHistory',+ '/pasteferry.v1.DaemonService/DeleteHistory',($0.DeleteHistoryRequest value) => value.writeToBuffer(),$0.Empty.fromBuffer);static final _$fetch = $grpc.ClientMethod<$0.FetchRequest, $0.Empty>(- '/copysync.v1.DaemonService/Fetch',+ '/pasteferry.v1.DaemonService/Fetch',($0.FetchRequest value) => value.writeToBuffer(),$0.Empty.fromBuffer);static final _$applyToClipboard =$grpc.ClientMethod<$0.ApplyToClipboardRequest, $0.Empty>(- '/copysync.v1.DaemonService/ApplyToClipboard',+ '/pasteferry.v1.DaemonService/ApplyToClipboard',($0.ApplyToClipboardRequest value) => value.writeToBuffer(),$0.Empty.fromBuffer);static final _$getImagePreview =$grpc.ClientMethod<$0.GetImagePreviewRequest, $0.GetImagePreviewResponse>(- '/copysync.v1.DaemonService/GetImagePreview',+ '/pasteferry.v1.DaemonService/GetImagePreview',($0.GetImagePreviewRequest value) => value.writeToBuffer(),$0.GetImagePreviewResponse.fromBuffer);static final _$listDevices =$grpc.ClientMethod<$0.Empty, $0.ListDevicesResponse>(- '/copysync.v1.DaemonService/ListDevices',+ '/pasteferry.v1.DaemonService/ListDevices',($0.Empty value) => value.writeToBuffer(),$0.ListDevicesResponse.fromBuffer);static final _$createPairingCode =$grpc.ClientMethod<$0.Empty, $0.CreatePairingCodeResponse>(- '/copysync.v1.DaemonService/CreatePairingCode',+ '/pasteferry.v1.DaemonService/CreatePairingCode',($0.Empty value) => value.writeToBuffer(),$0.CreatePairingCodeResponse.fromBuffer);static final _$redeemPairingCode = $grpc.ClientMethod<$0.RedeemPairingCodeRequest, $0.RedeemPairingCodeResponse>(- '/copysync.v1.DaemonService/RedeemPairingCode',+ '/pasteferry.v1.DaemonService/RedeemPairingCode',($0.RedeemPairingCodeRequest value) => value.writeToBuffer(),$0.RedeemPairingCodeResponse.fromBuffer);static final _$confirmPairing =$grpc.ClientMethod<$0.ConfirmPairingRequest, $0.Empty>(- '/copysync.v1.DaemonService/ConfirmPairing',+ '/pasteferry.v1.DaemonService/ConfirmPairing',($0.ConfirmPairingRequest value) => value.writeToBuffer(),$0.Empty.fromBuffer);static final _$unpair = $grpc.ClientMethod<$0.UnpairRequest, $0.Empty>(- '/copysync.v1.DaemonService/Unpair',+ '/pasteferry.v1.DaemonService/Unpair',($0.UnpairRequest value) => value.writeToBuffer(),$0.Empty.fromBuffer);static final _$setDeviceAddress =$grpc.ClientMethod<$0.SetDeviceAddressRequest, $0.Empty>(- '/copysync.v1.DaemonService/SetDeviceAddress',+ '/pasteferry.v1.DaemonService/SetDeviceAddress',($0.SetDeviceAddressRequest value) => value.writeToBuffer(),$0.Empty.fromBuffer);static final _$watchNearby = $grpc.ClientMethod<$0.Empty, $0.NearbyDevices>(- '/copysync.v1.DaemonService/WatchNearby',+ '/pasteferry.v1.DaemonService/WatchNearby',($0.Empty value) => value.writeToBuffer(),$0.NearbyDevices.fromBuffer);static final _$pairNearby =$grpc.ClientMethod<$0.PairNearbyRequest, $0.RedeemPairingCodeResponse>(- '/copysync.v1.DaemonService/PairNearby',+ '/pasteferry.v1.DaemonService/PairNearby',($0.PairNearbyRequest value) => value.writeToBuffer(),$0.RedeemPairingCodeResponse.fromBuffer);static final _$getConfig = $grpc.ClientMethod<$0.Empty, $0.Config>(- '/copysync.v1.DaemonService/GetConfig',+ '/pasteferry.v1.DaemonService/GetConfig',($0.Empty value) => value.writeToBuffer(),$0.Config.fromBuffer);static final _$updateConfig = $grpc.ClientMethod<$0.Config, $0.Config>(- '/copysync.v1.DaemonService/UpdateConfig',+ '/pasteferry.v1.DaemonService/UpdateConfig',($0.Config value) => value.writeToBuffer(),$0.Config.fromBuffer);static final _$getStatus = $grpc.ClientMethod<$0.Empty, $0.Status>(- '/copysync.v1.DaemonService/GetStatus',+ '/pasteferry.v1.DaemonService/GetStatus',($0.Empty value) => value.writeToBuffer(),$0.Status.fromBuffer);static final _$requestClipboardPermission =$grpc.ClientMethod<$0.Empty, $0.Empty>(- '/copysync.v1.DaemonService/RequestClipboardPermission',+ '/pasteferry.v1.DaemonService/RequestClipboardPermission',($0.Empty value) => value.writeToBuffer(),$0.Empty.fromBuffer);static final _$requestLocalNetworkPermission =$grpc.ClientMethod<$0.Empty, $0.Empty>(- '/copysync.v1.DaemonService/RequestLocalNetworkPermission',+ '/pasteferry.v1.DaemonService/RequestLocalNetworkPermission',($0.Empty value) => value.writeToBuffer(),$0.Empty.fromBuffer);static final _$getNetwork = $grpc.ClientMethod<$0.Empty, $0.NetworkInfo>(- '/copysync.v1.DaemonService/GetNetwork',+ '/pasteferry.v1.DaemonService/GetNetwork',($0.Empty value) => value.writeToBuffer(),$0.NetworkInfo.fromBuffer);static final _$exportDiagnostics =$grpc.ClientMethod<$0.ExportDiagnosticsRequest, $0.Diagnostics>(- '/copysync.v1.DaemonService/ExportDiagnostics',+ '/pasteferry.v1.DaemonService/ExportDiagnostics',($0.ExportDiagnosticsRequest value) => value.writeToBuffer(),$0.Diagnostics.fromBuffer);static final _$setVerboseLog =$grpc.ClientMethod<$0.SetVerboseLogRequest, $0.Status>(- '/copysync.v1.DaemonService/SetVerboseLog',+ '/pasteferry.v1.DaemonService/SetVerboseLog',($0.SetVerboseLogRequest value) => value.writeToBuffer(),$0.Status.fromBuffer);}-@$pb.GrpcServiceName('copysync.v1.DaemonService')+@$pb.GrpcServiceName('pasteferry.v1.DaemonService')abstract class DaemonServiceBase extends $grpc.Service {- $core.String get $name => 'copysync.v1.DaemonService';+ $core.String get $name => 'pasteferry.v1.DaemonService';DaemonServiceBase() {$addMethod($grpc.ServiceMethod<$0.SubscribeRequest, $0.Event>(diff --git a/ui/lib/gen/copysync/v1/daemon.pbjson.dart b/ui/lib/gen/pasteferry/v1/daemon.pbjson.dartsimilarity index 86%rename from ui/lib/gen/copysync/v1/daemon.pbjson.dartrename to ui/lib/gen/pasteferry/v1/daemon.pbjson.dartindex 22c26ce..85d84c1 100644--- a/ui/lib/gen/copysync/v1/daemon.pbjson.dart+++ b/ui/lib/gen/pasteferry/v1/daemon.pbjson.dart@@ -1,6 +1,6 @@// This is a generated file - do not edit.//-// Generated from copysync/v1/daemon.proto.+// Generated from pasteferry/v1/daemon.proto.// @dart = 3.3@@ -126,7 +126,7 @@ const ClipRecord$json = {'3': 2,'4': 1,'5': 14,- '6': '.copysync.v1.ClipKind',+ '6': '.pasteferry.v1.ClipKind','10': 'kind'},{@@ -134,7 +134,7 @@ const ClipRecord$json = {'3': 3,'4': 1,'5': 14,- '6': '.copysync.v1.ClipStatus',+ '6': '.pasteferry.v1.ClipStatus','10': 'status'},{'1': 'origin_device_id', '3': 4, '4': 1, '5': 9, '10': 'originDeviceId'},@@ -151,7 +151,7 @@ const ClipRecord$json = {'3': 7,'4': 3,'5': 11,- '6': '.copysync.v1.ClipItem',+ '6': '.pasteferry.v1.ClipItem','10': 'items'},{'1': 'total_size', '3': 8, '4': 1, '5': 3, '10': 'totalSize'},@@ -165,15 +165,15 @@ const ClipRecord$json = {/// Descriptor for `ClipRecord`. Decode as a `google.protobuf.DescriptorProto`.final $typed_data.Uint8List clipRecordDescriptor = $convert.base64Decode(- 'CgpDbGlwUmVjb3JkEg4KAmlkGAEgASgJUgJpZBIpCgRraW5kGAIgASgOMhUuY29weXN5bmMudj'- 'EuQ2xpcEtpbmRSBGtpbmQSLwoGc3RhdHVzGAMgASgOMhcuY29weXN5bmMudjEuQ2xpcFN0YXR1'- 'c1IGc3RhdHVzEigKEG9yaWdpbl9kZXZpY2VfaWQYBCABKAlSDm9yaWdpbkRldmljZUlkEiwKEm'- '9yaWdpbl9kZXZpY2VfbmFtZRgFIAEoCVIQb3JpZ2luRGV2aWNlTmFtZRIaCghvdXRnb2luZxgG'- 'IAEoCFIIb3V0Z29pbmcSKwoFaXRlbXMYByADKAsyFS5jb3B5c3luYy52MS5DbGlwSXRlbVIFaX'- 'RlbXMSHQoKdG90YWxfc2l6ZRgIIAEoA1IJdG90YWxTaXplEiEKDHRleHRfcHJldmlldxgJIAEo'- 'CVILdGV4dFByZXZpZXcSJgoPY3JlYXRlZF9hdF91bml4GAogASgDUg1jcmVhdGVkQXRVbml4Ei'- 'YKD2V4cGlyZXNfYXRfdW5peBgLIAEoA1INZXhwaXJlc0F0VW5peBIUCgVlcnJvchgMIAEoCVIF'- 'ZXJyb3ISHwoLaW1hZ2VfY291bnQYDSABKAVSCmltYWdlQ291bnQ=');+ 'CgpDbGlwUmVjb3JkEg4KAmlkGAEgASgJUgJpZBIrCgRraW5kGAIgASgOMhcucGFzdGVmZXJyeS'+ '52MS5DbGlwS2luZFIEa2luZBIxCgZzdGF0dXMYAyABKA4yGS5wYXN0ZWZlcnJ5LnYxLkNsaXBT'+ 'dGF0dXNSBnN0YXR1cxIoChBvcmlnaW5fZGV2aWNlX2lkGAQgASgJUg5vcmlnaW5EZXZpY2VJZB'+ 'IsChJvcmlnaW5fZGV2aWNlX25hbWUYBSABKAlSEG9yaWdpbkRldmljZU5hbWUSGgoIb3V0Z29p'+ 'bmcYBiABKAhSCG91dGdvaW5nEi0KBWl0ZW1zGAcgAygLMhcucGFzdGVmZXJyeS52MS5DbGlwSX'+ 'RlbVIFaXRlbXMSHQoKdG90YWxfc2l6ZRgIIAEoA1IJdG90YWxTaXplEiEKDHRleHRfcHJldmll'+ 'dxgJIAEoCVILdGV4dFByZXZpZXcSJgoPY3JlYXRlZF9hdF91bml4GAogASgDUg1jcmVhdGVkQX'+ 'RVbml4EiYKD2V4cGlyZXNfYXRfdW5peBgLIAEoA1INZXhwaXJlc0F0VW5peBIUCgVlcnJvchgM'+ 'IAEoCVIFZXJyb3ISHwoLaW1hZ2VfY291bnQYDSABKAVSCmltYWdlQ291bnQ=');@$core.Deprecated('Use subscribeRequestDescriptor instead')const SubscribeRequest$json = {@@ -217,7 +217,7 @@ const Device$json = {'3': 5,'4': 1,'5': 14,- '6': '.copysync.v1.ConnectionKind',+ '6': '.pasteferry.v1.ConnectionKind','10': 'connection'},{@@ -235,11 +235,11 @@ const Device$json = {/// Descriptor for `Device`. Decode as a `google.protobuf.DescriptorProto`.final $typed_data.Uint8List deviceDescriptor = $convert.base64Decode('CgZEZXZpY2USDgoCaWQYASABKAlSAmlkEhIKBG5hbWUYAiABKAlSBG5hbWUSGgoIcGxhdGZvcm'- '0YAyABKAlSCHBsYXRmb3JtEhYKBm9ubGluZRgEIAEoCFIGb25saW5lEjsKCmNvbm5lY3Rpb24Y'- 'BSABKA4yGy5jb3B5c3luYy52MS5Db25uZWN0aW9uS2luZFIKY29ubmVjdGlvbhI0ChZwdWJsaW'- 'Nfa2V5X2ZpbmdlcnByaW50GAYgASgJUhRwdWJsaWNLZXlGaW5nZXJwcmludBIkCg5wYWlyZWRf'- 'YXRfdW5peBgHIAEoA1IMcGFpcmVkQXRVbml4EicKD3BhaXJpbmdfc2Vzc2lvbhgIIAEoCVIOcG'- 'FpcmluZ1Nlc3Npb24=');+ '0YAyABKAlSCHBsYXRmb3JtEhYKBm9ubGluZRgEIAEoCFIGb25saW5lEj0KCmNvbm5lY3Rpb24Y'+ 'BSABKA4yHS5wYXN0ZWZlcnJ5LnYxLkNvbm5lY3Rpb25LaW5kUgpjb25uZWN0aW9uEjQKFnB1Ym'+ 'xpY19rZXlfZmluZ2VycHJpbnQYBiABKAlSFHB1YmxpY0tleUZpbmdlcnByaW50EiQKDnBhaXJl'+ 'ZF9hdF91bml4GAcgASgDUgxwYWlyZWRBdFVuaXgSJwoPcGFpcmluZ19zZXNzaW9uGAggASgJUg'+ '5wYWlyaW5nU2Vzc2lvbg==');@$core.Deprecated('Use eventDescriptor instead')const Event$json = {@@ -250,7 +250,7 @@ const Event$json = {'3': 1,'4': 1,'5': 11,- '6': '.copysync.v1.ClipRecord',+ '6': '.pasteferry.v1.ClipRecord','9': 0,'10': 'clipAdded'},@@ -259,7 +259,7 @@ const Event$json = {'3': 2,'4': 1,'5': 11,- '6': '.copysync.v1.ClipRecord',+ '6': '.pasteferry.v1.ClipRecord','9': 0,'10': 'clipUpdated'},@@ -269,7 +269,7 @@ const Event$json = {'3': 4,'4': 1,'5': 11,- '6': '.copysync.v1.TransferProgress',+ '6': '.pasteferry.v1.TransferProgress','9': 0,'10': 'progress'},@@ -278,7 +278,7 @@ const Event$json = {'3': 5,'4': 1,'5': 11,- '6': '.copysync.v1.Device',+ '6': '.pasteferry.v1.Device','9': 0,'10': 'deviceChanged'},@@ -287,7 +287,7 @@ const Event$json = {'3': 6,'4': 1,'5': 14,- '6': '.copysync.v1.ClipboardPermission',+ '6': '.pasteferry.v1.ClipboardPermission','9': 0,'10': 'permissionChanged'},@@ -296,7 +296,7 @@ const Event$json = {'3': 7,'4': 1,'5': 11,- '6': '.copysync.v1.Status',+ '6': '.pasteferry.v1.Status','9': 0,'10': 'statusChanged'},@@ -308,14 +308,15 @@ const Event$json = {/// Descriptor for `Event`. Decode as a `google.protobuf.DescriptorProto`.final $typed_data.Uint8List eventDescriptor = $convert.base64Decode(- 'CgVFdmVudBI4CgpjbGlwX2FkZGVkGAEgASgLMhcuY29weXN5bmMudjEuQ2xpcFJlY29yZEgAUg'- 'ljbGlwQWRkZWQSPAoMY2xpcF91cGRhdGVkGAIgASgLMhcuY29weXN5bmMudjEuQ2xpcFJlY29y'- 'ZEgAUgtjbGlwVXBkYXRlZBIjCgxjbGlwX3JlbW92ZWQYAyABKAlIAFILY2xpcFJlbW92ZWQSOw'- 'oIcHJvZ3Jlc3MYBCABKAsyHS5jb3B5c3luYy52MS5UcmFuc2ZlclByb2dyZXNzSABSCHByb2dy'- 'ZXNzEjwKDmRldmljZV9jaGFuZ2VkGAUgASgLMhMuY29weXN5bmMudjEuRGV2aWNlSABSDWRldm'- 'ljZUNoYW5nZWQSUQoScGVybWlzc2lvbl9jaGFuZ2VkGAYgASgOMiAuY29weXN5bmMudjEuQ2xp'- 'cGJvYXJkUGVybWlzc2lvbkgAUhFwZXJtaXNzaW9uQ2hhbmdlZBI8Cg5zdGF0dXNfY2hhbmdlZB'- 'gHIAEoCzITLmNvcHlzeW5jLnYxLlN0YXR1c0gAUg1zdGF0dXNDaGFuZ2VkQgkKB3BheWxvYWQ=');+ 'CgVFdmVudBI6CgpjbGlwX2FkZGVkGAEgASgLMhkucGFzdGVmZXJyeS52MS5DbGlwUmVjb3JkSA'+ 'BSCWNsaXBBZGRlZBI+CgxjbGlwX3VwZGF0ZWQYAiABKAsyGS5wYXN0ZWZlcnJ5LnYxLkNsaXBS'+ 'ZWNvcmRIAFILY2xpcFVwZGF0ZWQSIwoMY2xpcF9yZW1vdmVkGAMgASgJSABSC2NsaXBSZW1vdm'+ 'VkEj0KCHByb2dyZXNzGAQgASgLMh8ucGFzdGVmZXJyeS52MS5UcmFuc2ZlclByb2dyZXNzSABS'+ 'CHByb2dyZXNzEj4KDmRldmljZV9jaGFuZ2VkGAUgASgLMhUucGFzdGVmZXJyeS52MS5EZXZpY2'+ 'VIAFINZGV2aWNlQ2hhbmdlZBJTChJwZXJtaXNzaW9uX2NoYW5nZWQYBiABKA4yIi5wYXN0ZWZl'+ 'cnJ5LnYxLkNsaXBib2FyZFBlcm1pc3Npb25IAFIRcGVybWlzc2lvbkNoYW5nZWQSPgoOc3RhdH'+ 'VzX2NoYW5nZWQYByABKAsyFS5wYXN0ZWZlcnJ5LnYxLlN0YXR1c0gAUg1zdGF0dXNDaGFuZ2Vk'+ 'QgkKB3BheWxvYWQ=');@$core.Deprecated('Use listHistoryRequestDescriptor instead')const ListHistoryRequest$json = {@@ -328,7 +329,7 @@ const ListHistoryRequest$json = {'3': 3,'4': 1,'5': 14,- '6': '.copysync.v1.ClipKind',+ '6': '.pasteferry.v1.ClipKind','10': 'kindFilter'},{'1': 'query', '3': 4, '4': 1, '5': 9, '10': 'query'},@@ -338,8 +339,8 @@ const ListHistoryRequest$json = {/// Descriptor for `ListHistoryRequest`. Decode as a `google.protobuf.DescriptorProto`.final $typed_data.Uint8List listHistoryRequestDescriptor = $convert.base64Decode('ChJMaXN0SGlzdG9yeVJlcXVlc3QSFAoFbGltaXQYASABKAVSBWxpbWl0Eh8KC2JlZm9yZV91bm'- 'l4GAIgASgDUgpiZWZvcmVVbml4EjYKC2tpbmRfZmlsdGVyGAMgASgOMhUuY29weXN5bmMudjEu'- 'Q2xpcEtpbmRSCmtpbmRGaWx0ZXISFAoFcXVlcnkYBCABKAlSBXF1ZXJ5');+ 'l4GAIgASgDUgpiZWZvcmVVbml4EjgKC2tpbmRfZmlsdGVyGAMgASgOMhcucGFzdGVmZXJyeS52'+ 'MS5DbGlwS2luZFIKa2luZEZpbHRlchIUCgVxdWVyeRgEIAEoCVIFcXVlcnk=');@$core.Deprecated('Use listHistoryResponseDescriptor instead')const ListHistoryResponse$json = {@@ -350,7 +351,7 @@ const ListHistoryResponse$json = {'3': 1,'4': 3,'5': 11,- '6': '.copysync.v1.ClipRecord',+ '6': '.pasteferry.v1.ClipRecord','10': 'records'},{'1': 'searched', '3': 2, '4': 1, '5': 8, '10': 'searched'},@@ -359,8 +360,8 @@ const ListHistoryResponse$json = {/// Descriptor for `ListHistoryResponse`. Decode as a `google.protobuf.DescriptorProto`.final $typed_data.Uint8List listHistoryResponseDescriptor = $convert.base64Decode(- 'ChNMaXN0SGlzdG9yeVJlc3BvbnNlEjEKB3JlY29yZHMYASADKAsyFy5jb3B5c3luYy52MS5DbG'- 'lwUmVjb3JkUgdyZWNvcmRzEhoKCHNlYXJjaGVkGAIgASgIUghzZWFyY2hlZA==');+ 'ChNMaXN0SGlzdG9yeVJlc3BvbnNlEjMKB3JlY29yZHMYASADKAsyGS5wYXN0ZWZlcnJ5LnYxLk'+ 'NsaXBSZWNvcmRSB3JlY29yZHMSGgoIc2VhcmNoZWQYAiABKAhSCHNlYXJjaGVk');@$core.Deprecated('Use deleteHistoryRequestDescriptor instead')const DeleteHistoryRequest$json = {@@ -418,7 +419,7 @@ const ListDevicesResponse$json = {'3': 1,'4': 1,'5': 11,- '6': '.copysync.v1.Device',+ '6': '.pasteferry.v1.Device','10': 'self'},{@@ -426,7 +427,7 @@ const ListDevicesResponse$json = {'3': 2,'4': 3,'5': 11,- '6': '.copysync.v1.Device',+ '6': '.pasteferry.v1.Device','10': 'peers'},],@@ -434,8 +435,8 @@ const ListDevicesResponse$json = {/// Descriptor for `ListDevicesResponse`. Decode as a `google.protobuf.DescriptorProto`.final $typed_data.Uint8List listDevicesResponseDescriptor = $convert.base64Decode(- 'ChNMaXN0RGV2aWNlc1Jlc3BvbnNlEicKBHNlbGYYASABKAsyEy5jb3B5c3luYy52MS5EZXZpY2'- 'VSBHNlbGYSKQoFcGVlcnMYAiADKAsyEy5jb3B5c3luYy52MS5EZXZpY2VSBXBlZXJz');+ 'ChNMaXN0RGV2aWNlc1Jlc3BvbnNlEikKBHNlbGYYASABKAsyFS5wYXN0ZWZlcnJ5LnYxLkRldm'+ 'ljZVIEc2VsZhIrCgVwZWVycxgCIAMoCzIVLnBhc3RlZmVycnkudjEuRGV2aWNlUgVwZWVycw==');@$core.Deprecated('Use createPairingCodeResponseDescriptor instead')const CreatePairingCodeResponse$json = {@@ -477,7 +478,7 @@ const RedeemPairingCodeResponse$json = {'3': 1,'4': 1,'5': 11,- '6': '.copysync.v1.Device',+ '6': '.pasteferry.v1.Device','10': 'peer'},{'1': 'pairing_session', '3': 2, '4': 1, '5': 9, '10': 'pairingSession'},@@ -486,8 +487,8 @@ const RedeemPairingCodeResponse$json = {/// Descriptor for `RedeemPairingCodeResponse`. Decode as a `google.protobuf.DescriptorProto`.final $typed_data.Uint8List redeemPairingCodeResponseDescriptor = $convert.base64Decode(- 'ChlSZWRlZW1QYWlyaW5nQ29kZVJlc3BvbnNlEicKBHBlZXIYASABKAsyEy5jb3B5c3luYy52MS'- '5EZXZpY2VSBHBlZXISJwoPcGFpcmluZ19zZXNzaW9uGAIgASgJUg5wYWlyaW5nU2Vzc2lvbg==');+ 'ChlSZWRlZW1QYWlyaW5nQ29kZVJlc3BvbnNlEikKBHBlZXIYASABKAsyFS5wYXN0ZWZlcnJ5Ln'+ 'YxLkRldmljZVIEcGVlchInCg9wYWlyaW5nX3Nlc3Npb24YAiABKAlSDnBhaXJpbmdTZXNzaW9u');@$core.Deprecated('Use confirmPairingRequestDescriptor instead')const ConfirmPairingRequest$json = {@@ -528,7 +529,7 @@ const NearbyDevices$json = {'3': 1,'4': 3,'5': 11,- '6': '.copysync.v1.NearbyDevice',+ '6': '.pasteferry.v1.NearbyDevice','10': 'devices'},],@@ -536,8 +537,8 @@ const NearbyDevices$json = {/// Descriptor for `NearbyDevices`. Decode as a `google.protobuf.DescriptorProto`.final $typed_data.Uint8List nearbyDevicesDescriptor = $convert.base64Decode(- 'Cg1OZWFyYnlEZXZpY2VzEjMKB2RldmljZXMYASADKAsyGS5jb3B5c3luYy52MS5OZWFyYnlEZX'- 'ZpY2VSB2RldmljZXM=');+ 'Cg1OZWFyYnlEZXZpY2VzEjUKB2RldmljZXMYASADKAsyGy5wYXN0ZWZlcnJ5LnYxLk5lYXJieU'+ 'RldmljZVIHZGV2aWNlcw==');@$core.Deprecated('Use pairNearbyRequestDescriptor instead')const PairNearbyRequest$json = {@@ -640,7 +641,7 @@ const NetworkInfo$json = {'3': 2,'4': 3,'5': 11,- '6': '.copysync.v1.NetworkEgress',+ '6': '.pasteferry.v1.NetworkEgress','10': 'egresses'},{'1': 'probed', '3': 3, '4': 1, '5': 5, '10': 'probed'},@@ -651,7 +652,7 @@ const NetworkInfo$json = {'3': 6,'4': 1,'5': 11,- '6': '.copysync.v1.LanInfo',+ '6': '.pasteferry.v1.LanInfo','10': 'lan'},],@@ -659,11 +660,11 @@ const NetworkInfo$json = {/// Descriptor for `NetworkInfo`. Decode as a `google.protobuf.DescriptorProto`.final $typed_data.Uint8List networkInfoDescriptor = $convert.base64Decode(- 'CgtOZXR3b3JrSW5mbxIdCgpsb2NhbF9wb3J0GAEgASgFUglsb2NhbFBvcnQSNgoIZWdyZXNzZX'- 'MYAiADKAsyGi5jb3B5c3luYy52MS5OZXR3b3JrRWdyZXNzUghlZ3Jlc3NlcxIWCgZwcm9iZWQY'- 'AyABKAVSBnByb2JlZBIaCghhbnN3ZXJlZBgEIAEoBVIIYW5zd2VyZWQSJAoOcHJvYmVkX2F0X3'- 'VuaXgYBSABKANSDHByb2JlZEF0VW5peBImCgNsYW4YBiABKAsyFC5jb3B5c3luYy52MS5MYW5J'- 'bmZvUgNsYW4=');+ 'CgtOZXR3b3JrSW5mbxIdCgpsb2NhbF9wb3J0GAEgASgFUglsb2NhbFBvcnQSOAoIZWdyZXNzZX'+ 'MYAiADKAsyHC5wYXN0ZWZlcnJ5LnYxLk5ldHdvcmtFZ3Jlc3NSCGVncmVzc2VzEhYKBnByb2Jl'+ 'ZBgDIAEoBVIGcHJvYmVkEhoKCGFuc3dlcmVkGAQgASgFUghhbnN3ZXJlZBIkCg5wcm9iZWRfYX'+ 'RfdW5peBgFIAEoA1IMcHJvYmVkQXRVbml4EigKA2xhbhgGIAEoCzIWLnBhc3RlZmVycnkudjEu'+ 'TGFuSW5mb1IDbGFu');@$core.Deprecated('Use lanInfoDescriptor instead')const LanInfo$json = {@@ -678,7 +679,7 @@ const LanInfo$json = {'3': 5,'4': 3,'5': 11,- '6': '.copysync.v1.LanPeer',+ '6': '.pasteferry.v1.LanPeer','10': 'peers'},{'1': 'blocked', '3': 6, '4': 1, '5': 8, '10': 'blocked'},@@ -689,8 +690,8 @@ const LanInfo$json = {final $typed_data.Uint8List lanInfoDescriptor = $convert.base64Decode('CgdMYW5JbmZvEhgKB2VuYWJsZWQYASABKAhSB2VuYWJsZWQSEgoEcG9ydBgCIAEoBVIEcG9ydB''InCg9sb2NhbF9hZGRyZXNzZXMYAyADKAlSDmxvY2FsQWRkcmVzc2VzEh4KCmRpc2NvdmVyZWQY'- 'BCABKAVSCmRpc2NvdmVyZWQSKgoFcGVlcnMYBSADKAsyFC5jb3B5c3luYy52MS5MYW5QZWVyUg'- 'VwZWVycxIYCgdibG9ja2VkGAYgASgIUgdibG9ja2Vk');+ 'BCABKAVSCmRpc2NvdmVyZWQSLAoFcGVlcnMYBSADKAsyFi5wYXN0ZWZlcnJ5LnYxLkxhblBlZX'+ 'JSBXBlZXJzEhgKB2Jsb2NrZWQYBiABKAhSB2Jsb2NrZWQ=');@$core.Deprecated('Use lanPeerDescriptor instead')const LanPeer$json = {@@ -747,7 +748,7 @@ const Status$json = {'3': 4,'4': 1,'5': 14,- '6': '.copysync.v1.ClipboardPermission',+ '6': '.pasteferry.v1.ClipboardPermission','10': 'clipboardPermission'},{'1': 'cache_bytes_used', '3': 5, '4': 1, '5': 3, '10': 'cacheBytesUsed'},@@ -776,13 +777,13 @@ const Status$json = {final $typed_data.Uint8List statusDescriptor = $convert.base64Decode('CgZTdGF0dXMSGwoJZGV2aWNlX2lkGAEgASgJUghkZXZpY2VJZBIfCgtkZXZpY2VfbmFtZRgCIA''EoCVIKZGV2aWNlTmFtZRIvChNzaWduYWxpbmdfY29ubmVjdGVkGAMgASgIUhJzaWduYWxpbmdD'- 'b25uZWN0ZWQSUwoUY2xpcGJvYXJkX3Blcm1pc3Npb24YBCABKA4yIC5jb3B5c3luYy52MS5DbG'- 'lwYm9hcmRQZXJtaXNzaW9uUhNjbGlwYm9hcmRQZXJtaXNzaW9uEigKEGNhY2hlX2J5dGVzX3Vz'- 'ZWQYBSABKANSDmNhY2hlQnl0ZXNVc2VkEiEKDHBlZXJzX29ubGluZRgGIAEoBVILcGVlcnNPbm'- 'xpbmUSGAoHdmVyc2lvbhgHIAEoCVIHdmVyc2lvbhIrChFzZXJ2ZXJfY29uZmlndXJlZBgIIAEo'- 'CFIQc2VydmVyQ29uZmlndXJlZBIfCgtsYW5fZW5hYmxlZBgJIAEoCFIKbGFuRW5hYmxlZBIfCg'- 'tsYW5fYmxvY2tlZBgKIAEoCFIKbGFuQmxvY2tlZBIzChZ2ZXJib3NlX2xvZ191bnRpbF91bml4'- 'GAsgASgDUhN2ZXJib3NlTG9nVW50aWxVbml4');+ 'b25uZWN0ZWQSVQoUY2xpcGJvYXJkX3Blcm1pc3Npb24YBCABKA4yIi5wYXN0ZWZlcnJ5LnYxLk'+ 'NsaXBib2FyZFBlcm1pc3Npb25SE2NsaXBib2FyZFBlcm1pc3Npb24SKAoQY2FjaGVfYnl0ZXNf'+ 'dXNlZBgFIAEoA1IOY2FjaGVCeXRlc1VzZWQSIQoMcGVlcnNfb25saW5lGAYgASgFUgtwZWVyc0'+ '9ubGluZRIYCgd2ZXJzaW9uGAcgASgJUgd2ZXJzaW9uEisKEXNlcnZlcl9jb25maWd1cmVkGAgg'+ 'ASgIUhBzZXJ2ZXJDb25maWd1cmVkEh8KC2xhbl9lbmFibGVkGAkgASgIUgpsYW5FbmFibGVkEh'+ '8KC2xhbl9ibG9ja2VkGAogASgIUgpsYW5CbG9ja2VkEjMKFnZlcmJvc2VfbG9nX3VudGlsX3Vu'+ 'aXgYCyABKANSE3ZlcmJvc2VMb2dVbnRpbFVuaXg=');@$core.Deprecated('Use exportDiagnosticsRequestDescriptor instead')const ExportDiagnosticsRequest$json = {diff --git a/ui/lib/gen/copysync/v1/wire.pb.dart b/ui/lib/gen/pasteferry/v1/wire.pb.dartsimilarity index 97%rename from ui/lib/gen/copysync/v1/wire.pb.dartrename to ui/lib/gen/pasteferry/v1/wire.pb.dartindex ae1b0a0..24510bc 100644--- a/ui/lib/gen/copysync/v1/wire.pb.dart+++ b/ui/lib/gen/pasteferry/v1/wire.pb.dart@@ -1,6 +1,6 @@// This is a generated file - do not edit.//-// Generated from copysync/v1/wire.proto.+// Generated from pasteferry/v1/wire.proto.// @dart = 3.3@@ -48,7 +48,7 @@ class Signed extends $pb.GeneratedMessage {static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'Signed',- package: const $pb.PackageName(_omitMessageNames ? '' : 'copysync.v1'),+ package: const $pb.PackageName(_omitMessageNames ? '' : 'pasteferry.v1'),createEmptyInstance: Signed.$_createMessage)..a<$core.List<$core.int>>(1, _omitFieldNames ? '' : 'payload', $pb.PbFieldType.OY)@@ -150,7 +150,7 @@ class SignalMessage extends $pb.GeneratedMessage {};static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'SignalMessage',- package: const $pb.PackageName(_omitMessageNames ? '' : 'copysync.v1'),+ package: const $pb.PackageName(_omitMessageNames ? '' : 'pasteferry.v1'),createEmptyInstance: SignalMessage.$_createMessage)..oo(0, [10, 11, 12, 13, 14])..aInt64(1, _omitFieldNames ? '' : 'timestampUnix')@@ -314,7 +314,7 @@ class SdpOffer extends $pb.GeneratedMessage {static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'SdpOffer',- package: const $pb.PackageName(_omitMessageNames ? '' : 'copysync.v1'),+ package: const $pb.PackageName(_omitMessageNames ? '' : 'pasteferry.v1'),createEmptyInstance: SdpOffer.$_createMessage)..aOS(1, _omitFieldNames ? '' : 'sdp')..aOS(2, _omitFieldNames ? '' : 'dtlsFingerprint')@@ -396,7 +396,7 @@ class SdpAnswer extends $pb.GeneratedMessage {static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'SdpAnswer',- package: const $pb.PackageName(_omitMessageNames ? '' : 'copysync.v1'),+ package: const $pb.PackageName(_omitMessageNames ? '' : 'pasteferry.v1'),createEmptyInstance: SdpAnswer.$_createMessage)..aOS(1, _omitFieldNames ? '' : 'sdp')..aOS(2, _omitFieldNames ? '' : 'dtlsFingerprint')@@ -465,7 +465,7 @@ class IceCandidate extends $pb.GeneratedMessage {static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'IceCandidate',- package: const $pb.PackageName(_omitMessageNames ? '' : 'copysync.v1'),+ package: const $pb.PackageName(_omitMessageNames ? '' : 'pasteferry.v1'),createEmptyInstance: IceCandidate.$_createMessage)..aOS(1, _omitFieldNames ? '' : 'candidate')..aOS(2, _omitFieldNames ? '' : 'sdpMid')@@ -543,7 +543,7 @@ class Ping extends $pb.GeneratedMessage {static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'Ping',- package: const $pb.PackageName(_omitMessageNames ? '' : 'copysync.v1'),+ package: const $pb.PackageName(_omitMessageNames ? '' : 'pasteferry.v1'),createEmptyInstance: Ping.$_createMessage)..aInt64(1, _omitFieldNames ? '' : 'sentAtUnix')..hasRequiredFields = false;@@ -608,7 +608,7 @@ class ClientHello extends $pb.GeneratedMessage {static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'ClientHello',- package: const $pb.PackageName(_omitMessageNames ? '' : 'copysync.v1'),+ package: const $pb.PackageName(_omitMessageNames ? '' : 'pasteferry.v1'),createEmptyInstance: ClientHello.$_createMessage)..aOS(1, _omitFieldNames ? '' : 'deviceId')..aOS(2, _omitFieldNames ? '' : 'deviceName')@@ -715,7 +715,7 @@ class ServerHello extends $pb.GeneratedMessage {static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'ServerHello',- package: const $pb.PackageName(_omitMessageNames ? '' : 'copysync.v1'),+ package: const $pb.PackageName(_omitMessageNames ? '' : 'pasteferry.v1'),createEmptyInstance: ServerHello.$_createMessage)..a<$core.List<$core.int>>(1, _omitFieldNames ? '' : 'challenge', $pb.PbFieldType.OY)@@ -794,7 +794,7 @@ class IceServer extends $pb.GeneratedMessage {static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'IceServer',- package: const $pb.PackageName(_omitMessageNames ? '' : 'copysync.v1'),+ package: const $pb.PackageName(_omitMessageNames ? '' : 'pasteferry.v1'),createEmptyInstance: IceServer.$_createMessage)..pPS(1, _omitFieldNames ? '' : 'urls')..aOS(2, _omitFieldNames ? '' : 'username')@@ -875,7 +875,7 @@ class PeerPresence extends $pb.GeneratedMessage {static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'PeerPresence',- package: const $pb.PackageName(_omitMessageNames ? '' : 'copysync.v1'),+ package: const $pb.PackageName(_omitMessageNames ? '' : 'pasteferry.v1'),createEmptyInstance: PeerPresence.$_createMessage)..aOS(1, _omitFieldNames ? '' : 'deviceId')..aOB(2, _omitFieldNames ? '' : 'online')@@ -944,7 +944,7 @@ class PairingCreateRequest extends $pb.GeneratedMessage {static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'PairingCreateRequest',- package: const $pb.PackageName(_omitMessageNames ? '' : 'copysync.v1'),+ package: const $pb.PackageName(_omitMessageNames ? '' : 'pasteferry.v1'),createEmptyInstance: PairingCreateRequest.$_createMessage)..aOS(1, _omitFieldNames ? '' : 'deviceName')..a<$core.List<$core.int>>(@@ -1015,7 +1015,7 @@ class PairingCreateResponse extends $pb.GeneratedMessage {static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'PairingCreateResponse',- package: const $pb.PackageName(_omitMessageNames ? '' : 'copysync.v1'),+ package: const $pb.PackageName(_omitMessageNames ? '' : 'pasteferry.v1'),createEmptyInstance: PairingCreateResponse.$_createMessage)..aOS(1, _omitFieldNames ? '' : 'code')..aInt64(2, _omitFieldNames ? '' : 'expiresAtUnix')@@ -1090,7 +1090,7 @@ class PairingRedeemRequest extends $pb.GeneratedMessage {static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'PairingRedeemRequest',- package: const $pb.PackageName(_omitMessageNames ? '' : 'copysync.v1'),+ package: const $pb.PackageName(_omitMessageNames ? '' : 'pasteferry.v1'),createEmptyInstance: PairingRedeemRequest.$_createMessage)..aOS(1, _omitFieldNames ? '' : 'code')..aOS(2, _omitFieldNames ? '' : 'deviceId')@@ -1185,7 +1185,7 @@ class PairingRedeemResponse extends $pb.GeneratedMessage {static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'PairingRedeemResponse',- package: const $pb.PackageName(_omitMessageNames ? '' : 'copysync.v1'),+ package: const $pb.PackageName(_omitMessageNames ? '' : 'pasteferry.v1'),createEmptyInstance: PairingRedeemResponse.$_createMessage)..aOS(1, _omitFieldNames ? '' : 'peerDeviceId')..aOS(2, _omitFieldNames ? '' : 'peerDeviceName')@@ -1282,7 +1282,7 @@ class PairingRedeemed extends $pb.GeneratedMessage {static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'PairingRedeemed',- package: const $pb.PackageName(_omitMessageNames ? '' : 'copysync.v1'),+ package: const $pb.PackageName(_omitMessageNames ? '' : 'pasteferry.v1'),createEmptyInstance: PairingRedeemed.$_createMessage)..aOS(1, _omitFieldNames ? '' : 'peerDeviceId')..aOS(2, _omitFieldNames ? '' : 'peerDeviceName')@@ -1372,7 +1372,7 @@ class IceConfig extends $pb.GeneratedMessage {static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'IceConfig',- package: const $pb.PackageName(_omitMessageNames ? '' : 'copysync.v1'),+ package: const $pb.PackageName(_omitMessageNames ? '' : 'pasteferry.v1'),createEmptyInstance: IceConfig.$_createMessage)..pPM<IceServer>(1, _omitFieldNames ? '' : 'iceServers',subBuilder: IceServer.$_createMessage)@@ -1462,7 +1462,7 @@ class ServerEnvelope extends $pb.GeneratedMessage {};static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'ServerEnvelope',- package: const $pb.PackageName(_omitMessageNames ? '' : 'copysync.v1'),+ package: const $pb.PackageName(_omitMessageNames ? '' : 'pasteferry.v1'),createEmptyInstance: ServerEnvelope.$_createMessage)..oo(0, [1, 2, 3, 4, 5, 6, 7, 8])..aOM<ServerHello>(1, _omitFieldNames ? '' : 'hello',@@ -1658,7 +1658,7 @@ class ClientEnvelope extends $pb.GeneratedMessage {};static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'ClientEnvelope',- package: const $pb.PackageName(_omitMessageNames ? '' : 'copysync.v1'),+ package: const $pb.PackageName(_omitMessageNames ? '' : 'pasteferry.v1'),createEmptyInstance: ClientEnvelope.$_createMessage)..oo(0, [1, 2, 3, 4])..aOM<ClientHello>(1, _omitFieldNames ? '' : 'hello',@@ -1772,7 +1772,7 @@ class ServerError extends $pb.GeneratedMessage {static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'ServerError',- package: const $pb.PackageName(_omitMessageNames ? '' : 'copysync.v1'),+ package: const $pb.PackageName(_omitMessageNames ? '' : 'pasteferry.v1'),createEmptyInstance: ServerError.$_createMessage)..aOS(1, _omitFieldNames ? '' : 'code')..aOS(2, _omitFieldNames ? '' : 'message')@@ -1869,7 +1869,7 @@ class LanPacket extends $pb.GeneratedMessage {};static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'LanPacket',- package: const $pb.PackageName(_omitMessageNames ? '' : 'copysync.v1'),+ package: const $pb.PackageName(_omitMessageNames ? '' : 'pasteferry.v1'),createEmptyInstance: LanPacket.$_createMessage)..oo(0, [1, 2, 3, 4, 5, 6])..aOM<Signed>(1, _omitFieldNames ? '' : 'signal',@@ -2016,7 +2016,7 @@ class LanHello extends $pb.GeneratedMessage {static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'LanHello',- package: const $pb.PackageName(_omitMessageNames ? '' : 'copysync.v1'),+ package: const $pb.PackageName(_omitMessageNames ? '' : 'pasteferry.v1'),createEmptyInstance: LanHello.$_createMessage)..pPS(1, _omitFieldNames ? '' : 'addresses')..aOB(2, _omitFieldNames ? '' : 'replyWanted')@@ -2102,7 +2102,7 @@ class LanPairSigned extends $pb.GeneratedMessage {static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'LanPairSigned',- package: const $pb.PackageName(_omitMessageNames ? '' : 'copysync.v1'),+ package: const $pb.PackageName(_omitMessageNames ? '' : 'pasteferry.v1'),createEmptyInstance: LanPairSigned.$_createMessage)..a<$core.List<$core.int>>(1, _omitFieldNames ? '' : 'payload', $pb.PbFieldType.OY)@@ -2187,7 +2187,7 @@ class LanPairInfo extends $pb.GeneratedMessage {static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'LanPairInfo',- package: const $pb.PackageName(_omitMessageNames ? '' : 'copysync.v1'),+ package: const $pb.PackageName(_omitMessageNames ? '' : 'pasteferry.v1'),createEmptyInstance: LanPairInfo.$_createMessage)..aOS(1, _omitFieldNames ? '' : 'code')..aOS(2, _omitFieldNames ? '' : 'deviceId')@@ -2323,7 +2323,7 @@ class LanPairReject extends $pb.GeneratedMessage {static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'LanPairReject',- package: const $pb.PackageName(_omitMessageNames ? '' : 'copysync.v1'),+ package: const $pb.PackageName(_omitMessageNames ? '' : 'pasteferry.v1'),createEmptyInstance: LanPairReject.$_createMessage)..a<$core.List<$core.int>>(1, _omitFieldNames ? '' : 'requestNonce', $pb.PbFieldType.OY)@@ -2397,7 +2397,7 @@ class LanNearbyPing extends $pb.GeneratedMessage {static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'LanNearbyPing',- package: const $pb.PackageName(_omitMessageNames ? '' : 'copysync.v1'),+ package: const $pb.PackageName(_omitMessageNames ? '' : 'pasteferry.v1'),createEmptyInstance: LanNearbyPing.$_createMessage)..aOS(1, _omitFieldNames ? '' : 'instance')..aOS(2, _omitFieldNames ? '' : 'name')@@ -2507,7 +2507,7 @@ class PeerMessage extends $pb.GeneratedMessage {};static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'PeerMessage',- package: const $pb.PackageName(_omitMessageNames ? '' : 'copysync.v1'),+ package: const $pb.PackageName(_omitMessageNames ? '' : 'pasteferry.v1'),createEmptyInstance: PeerMessage.$_createMessage)..oo(0, [1, 2, 3, 4, 5, 6])..aOM<ClipOffer>(1, _omitFieldNames ? '' : 'offer',@@ -2652,7 +2652,7 @@ class LinkInfo extends $pb.GeneratedMessage {static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'LinkInfo',- package: const $pb.PackageName(_omitMessageNames ? '' : 'copysync.v1'),+ package: const $pb.PackageName(_omitMessageNames ? '' : 'pasteferry.v1'),createEmptyInstance: LinkInfo.$_createMessage)..aOB(1, _omitFieldNames ? '' : 'relayed')..hasRequiredFields = false;@@ -2725,7 +2725,7 @@ class ClipOffer extends $pb.GeneratedMessage {static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'ClipOffer',- package: const $pb.PackageName(_omitMessageNames ? '' : 'copysync.v1'),+ package: const $pb.PackageName(_omitMessageNames ? '' : 'pasteferry.v1'),createEmptyInstance: ClipOffer.$_createMessage)..aOS(1, _omitFieldNames ? '' : 'clipId')..aE<$0.ClipKind>(2, _omitFieldNames ? '' : 'kind',@@ -2861,7 +2861,7 @@ class PeerFetch extends $pb.GeneratedMessage {static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'PeerFetch',- package: const $pb.PackageName(_omitMessageNames ? '' : 'copysync.v1'),+ package: const $pb.PackageName(_omitMessageNames ? '' : 'pasteferry.v1'),createEmptyInstance: PeerFetch.$_createMessage)..aOS(1, _omitFieldNames ? '' : 'clipId')..hasRequiredFields = false;@@ -2918,7 +2918,7 @@ class FetchReject extends $pb.GeneratedMessage {static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'FetchReject',- package: const $pb.PackageName(_omitMessageNames ? '' : 'copysync.v1'),+ package: const $pb.PackageName(_omitMessageNames ? '' : 'pasteferry.v1'),createEmptyInstance: FetchReject.$_createMessage)..aOS(1, _omitFieldNames ? '' : 'clipId')..aOS(2, _omitFieldNames ? '' : 'reason')@@ -2994,7 +2994,7 @@ class TransferHeader extends $pb.GeneratedMessage {static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'TransferHeader',- package: const $pb.PackageName(_omitMessageNames ? '' : 'copysync.v1'),+ package: const $pb.PackageName(_omitMessageNames ? '' : 'pasteferry.v1'),createEmptyInstance: TransferHeader.$_createMessage)..aOS(1, _omitFieldNames ? '' : 'clipId')..aOS(2, _omitFieldNames ? '' : 'streamId')@@ -3101,7 +3101,7 @@ class TransferDone extends $pb.GeneratedMessage {static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'TransferDone',- package: const $pb.PackageName(_omitMessageNames ? '' : 'copysync.v1'),+ package: const $pb.PackageName(_omitMessageNames ? '' : 'pasteferry.v1'),createEmptyInstance: TransferDone.$_createMessage)..aOS(1, _omitFieldNames ? '' : 'clipId')..aOS(2, _omitFieldNames ? '' : 'streamId')diff --git a/ui/lib/gen/copysync/v1/wire.pbenum.dart b/ui/lib/gen/pasteferry/v1/wire.pbenum.dartsimilarity index 97%rename from ui/lib/gen/copysync/v1/wire.pbenum.dartrename to ui/lib/gen/pasteferry/v1/wire.pbenum.dartindex dacc575..d31971b 100644--- a/ui/lib/gen/copysync/v1/wire.pbenum.dart+++ b/ui/lib/gen/pasteferry/v1/wire.pbenum.dart@@ -1,6 +1,6 @@// This is a generated file - do not edit.//-// Generated from copysync/v1/wire.proto.+// Generated from pasteferry/v1/wire.proto.// @dart = 3.3diff --git a/ui/lib/gen/copysync/v1/wire.pbjson.dart b/ui/lib/gen/pasteferry/v1/wire.pbjson.dartsimilarity index 82%rename from ui/lib/gen/copysync/v1/wire.pbjson.dartrename to ui/lib/gen/pasteferry/v1/wire.pbjson.dartindex be0dbfc..ce0bf52 100644--- a/ui/lib/gen/copysync/v1/wire.pbjson.dart+++ b/ui/lib/gen/pasteferry/v1/wire.pbjson.dart@@ -1,6 +1,6 @@// This is a generated file - do not edit.//-// Generated from copysync/v1/wire.proto.+// Generated from pasteferry/v1/wire.proto.// @dart = 3.3@@ -72,7 +72,7 @@ const SignalMessage$json = {'3': 10,'4': 1,'5': 11,- '6': '.copysync.v1.SdpOffer',+ '6': '.pasteferry.v1.SdpOffer','9': 0,'10': 'offer'},@@ -81,7 +81,7 @@ const SignalMessage$json = {'3': 11,'4': 1,'5': 11,- '6': '.copysync.v1.SdpAnswer',+ '6': '.pasteferry.v1.SdpAnswer','9': 0,'10': 'answer'},@@ -90,7 +90,7 @@ const SignalMessage$json = {'3': 12,'4': 1,'5': 11,- '6': '.copysync.v1.IceCandidate',+ '6': '.pasteferry.v1.IceCandidate','9': 0,'10': 'candidate'},@@ -99,7 +99,7 @@ const SignalMessage$json = {'3': 13,'4': 1,'5': 11,- '6': '.copysync.v1.Ping',+ '6': '.pasteferry.v1.Ping','9': 0,'10': 'ping'},@@ -108,7 +108,7 @@ const SignalMessage$json = {'3': 14,'4': 1,'5': 11,- '6': '.copysync.v1.LanHello',+ '6': '.pasteferry.v1.LanHello','9': 0,'10': 'lanHello'},@@ -122,11 +122,11 @@ const SignalMessage$json = {final $typed_data.Uint8List signalMessageDescriptor = $convert.base64Decode('Cg1TaWduYWxNZXNzYWdlEiUKDnRpbWVzdGFtcF91bml4GAEgASgDUg10aW1lc3RhbXBVbml4Eh''QKBW5vbmNlGAIgASgMUgVub25jZRIgCgx0b19kZXZpY2VfaWQYAyABKAlSCnRvRGV2aWNlSWQS'- 'LQoFb2ZmZXIYCiABKAsyFS5jb3B5c3luYy52MS5TZHBPZmZlckgAUgVvZmZlchIwCgZhbnN3ZX'- 'IYCyABKAsyFi5jb3B5c3luYy52MS5TZHBBbnN3ZXJIAFIGYW5zd2VyEjkKCWNhbmRpZGF0ZRgM'- 'IAEoCzIZLmNvcHlzeW5jLnYxLkljZUNhbmRpZGF0ZUgAUgljYW5kaWRhdGUSJwoEcGluZxgNIA'- 'EoCzIRLmNvcHlzeW5jLnYxLlBpbmdIAFIEcGluZxI0CglsYW5faGVsbG8YDiABKAsyFS5jb3B5'- 'c3luYy52MS5MYW5IZWxsb0gAUghsYW5IZWxsb0IJCgdwYXlsb2Fk');+ 'LwoFb2ZmZXIYCiABKAsyFy5wYXN0ZWZlcnJ5LnYxLlNkcE9mZmVySABSBW9mZmVyEjIKBmFuc3'+ 'dlchgLIAEoCzIYLnBhc3RlZmVycnkudjEuU2RwQW5zd2VySABSBmFuc3dlchI7CgljYW5kaWRh'+ 'dGUYDCABKAsyGy5wYXN0ZWZlcnJ5LnYxLkljZUNhbmRpZGF0ZUgAUgljYW5kaWRhdGUSKQoEcG'+ 'luZxgNIAEoCzITLnBhc3RlZmVycnkudjEuUGluZ0gAUgRwaW5nEjYKCWxhbl9oZWxsbxgOIAEo'+ 'CzIXLnBhc3RlZmVycnkudjEuTGFuSGVsbG9IAFIIbGFuSGVsbG9CCQoHcGF5bG9hZA==');@$core.Deprecated('Use sdpOfferDescriptor instead')const SdpOffer$json = {@@ -214,7 +214,7 @@ const ServerHello$json = {'3': 2,'4': 3,'5': 11,- '6': '.copysync.v1.IceServer',+ '6': '.pasteferry.v1.IceServer','10': 'iceServers'},{'1': 'server_time_unix', '3': 3, '4': 1, '5': 3, '10': 'serverTimeUnix'},@@ -223,9 +223,9 @@ const ServerHello$json = {/// Descriptor for `ServerHello`. Decode as a `google.protobuf.DescriptorProto`.final $typed_data.Uint8List serverHelloDescriptor = $convert.base64Decode(- 'CgtTZXJ2ZXJIZWxsbxIcCgljaGFsbGVuZ2UYASABKAxSCWNoYWxsZW5nZRI3CgtpY2Vfc2Vydm'- 'VycxgCIAMoCzIWLmNvcHlzeW5jLnYxLkljZVNlcnZlclIKaWNlU2VydmVycxIoChBzZXJ2ZXJf'- 'dGltZV91bml4GAMgASgDUg5zZXJ2ZXJUaW1lVW5peA==');+ 'CgtTZXJ2ZXJIZWxsbxIcCgljaGFsbGVuZ2UYASABKAxSCWNoYWxsZW5nZRI5CgtpY2Vfc2Vydm'+ 'VycxgCIAMoCzIYLnBhc3RlZmVycnkudjEuSWNlU2VydmVyUgppY2VTZXJ2ZXJzEigKEHNlcnZl'+ 'cl90aW1lX3VuaXgYAyABKANSDnNlcnZlclRpbWVVbml4');@$core.Deprecated('Use iceServerDescriptor instead')const IceServer$json = {@@ -348,7 +348,7 @@ const IceConfig$json = {'3': 1,'4': 3,'5': 11,- '6': '.copysync.v1.IceServer',+ '6': '.pasteferry.v1.IceServer','10': 'iceServers'},],@@ -356,8 +356,8 @@ const IceConfig$json = {/// Descriptor for `IceConfig`. Decode as a `google.protobuf.DescriptorProto`.final $typed_data.Uint8List iceConfigDescriptor = $convert.base64Decode(- 'CglJY2VDb25maWcSNwoLaWNlX3NlcnZlcnMYASADKAsyFi5jb3B5c3luYy52MS5JY2VTZXJ2ZX'- 'JSCmljZVNlcnZlcnM=');+ 'CglJY2VDb25maWcSOQoLaWNlX3NlcnZlcnMYASADKAsyGC5wYXN0ZWZlcnJ5LnYxLkljZVNlcn'+ 'ZlclIKaWNlU2VydmVycw==');@$core.Deprecated('Use serverEnvelopeDescriptor instead')const ServerEnvelope$json = {@@ -368,7 +368,7 @@ const ServerEnvelope$json = {'3': 1,'4': 1,'5': 11,- '6': '.copysync.v1.ServerHello',+ '6': '.pasteferry.v1.ServerHello','9': 0,'10': 'hello'},@@ -377,7 +377,7 @@ const ServerEnvelope$json = {'3': 2,'4': 1,'5': 11,- '6': '.copysync.v1.Signed',+ '6': '.pasteferry.v1.Signed','9': 0,'10': 'forwarded'},@@ -386,7 +386,7 @@ const ServerEnvelope$json = {'3': 3,'4': 1,'5': 11,- '6': '.copysync.v1.PeerPresence',+ '6': '.pasteferry.v1.PeerPresence','9': 0,'10': 'presence'},@@ -395,7 +395,7 @@ const ServerEnvelope$json = {'3': 4,'4': 1,'5': 11,- '6': '.copysync.v1.PairingCreateResponse',+ '6': '.pasteferry.v1.PairingCreateResponse','9': 0,'10': 'pairingCreated'},@@ -404,7 +404,7 @@ const ServerEnvelope$json = {'3': 5,'4': 1,'5': 11,- '6': '.copysync.v1.PairingRedeemResponse',+ '6': '.pasteferry.v1.PairingRedeemResponse','9': 0,'10': 'pairingRedeemedResult'},@@ -413,7 +413,7 @@ const ServerEnvelope$json = {'3': 6,'4': 1,'5': 11,- '6': '.copysync.v1.PairingRedeemed',+ '6': '.pasteferry.v1.PairingRedeemed','9': 0,'10': 'pairingRedeemed'},@@ -422,7 +422,7 @@ const ServerEnvelope$json = {'3': 7,'4': 1,'5': 11,- '6': '.copysync.v1.ServerError',+ '6': '.pasteferry.v1.ServerError','9': 0,'10': 'error'},@@ -431,7 +431,7 @@ const ServerEnvelope$json = {'3': 8,'4': 1,'5': 11,- '6': '.copysync.v1.IceConfig',+ '6': '.pasteferry.v1.IceConfig','9': 0,'10': 'iceConfig'},@@ -443,16 +443,17 @@ const ServerEnvelope$json = {/// Descriptor for `ServerEnvelope`. Decode as a `google.protobuf.DescriptorProto`.final $typed_data.Uint8List serverEnvelopeDescriptor = $convert.base64Decode(- 'Cg5TZXJ2ZXJFbnZlbG9wZRIwCgVoZWxsbxgBIAEoCzIYLmNvcHlzeW5jLnYxLlNlcnZlckhlbG'- 'xvSABSBWhlbGxvEjMKCWZvcndhcmRlZBgCIAEoCzITLmNvcHlzeW5jLnYxLlNpZ25lZEgAUglm'- 'b3J3YXJkZWQSNwoIcHJlc2VuY2UYAyABKAsyGS5jb3B5c3luYy52MS5QZWVyUHJlc2VuY2VIAF'- 'IIcHJlc2VuY2USTQoPcGFpcmluZ19jcmVhdGVkGAQgASgLMiIuY29weXN5bmMudjEuUGFpcmlu'- 'Z0NyZWF0ZVJlc3BvbnNlSABSDnBhaXJpbmdDcmVhdGVkElwKF3BhaXJpbmdfcmVkZWVtZWRfcm'- 'VzdWx0GAUgASgLMiIuY29weXN5bmMudjEuUGFpcmluZ1JlZGVlbVJlc3BvbnNlSABSFXBhaXJp'- 'bmdSZWRlZW1lZFJlc3VsdBJJChBwYWlyaW5nX3JlZGVlbWVkGAYgASgLMhwuY29weXN5bmMudj'- 'EuUGFpcmluZ1JlZGVlbWVkSABSD3BhaXJpbmdSZWRlZW1lZBIwCgVlcnJvchgHIAEoCzIYLmNv'- 'cHlzeW5jLnYxLlNlcnZlckVycm9ySABSBWVycm9yEjcKCmljZV9jb25maWcYCCABKAsyFi5jb3'- 'B5c3luYy52MS5JY2VDb25maWdIAFIJaWNlQ29uZmlnQgkKB3BheWxvYWQ=');+ 'Cg5TZXJ2ZXJFbnZlbG9wZRIyCgVoZWxsbxgBIAEoCzIaLnBhc3RlZmVycnkudjEuU2VydmVySG'+ 'VsbG9IAFIFaGVsbG8SNQoJZm9yd2FyZGVkGAIgASgLMhUucGFzdGVmZXJyeS52MS5TaWduZWRI'+ 'AFIJZm9yd2FyZGVkEjkKCHByZXNlbmNlGAMgASgLMhsucGFzdGVmZXJyeS52MS5QZWVyUHJlc2'+ 'VuY2VIAFIIcHJlc2VuY2USTwoPcGFpcmluZ19jcmVhdGVkGAQgASgLMiQucGFzdGVmZXJyeS52'+ 'MS5QYWlyaW5nQ3JlYXRlUmVzcG9uc2VIAFIOcGFpcmluZ0NyZWF0ZWQSXgoXcGFpcmluZ19yZW'+ 'RlZW1lZF9yZXN1bHQYBSABKAsyJC5wYXN0ZWZlcnJ5LnYxLlBhaXJpbmdSZWRlZW1SZXNwb25z'+ 'ZUgAUhVwYWlyaW5nUmVkZWVtZWRSZXN1bHQSSwoQcGFpcmluZ19yZWRlZW1lZBgGIAEoCzIeLn'+ 'Bhc3RlZmVycnkudjEuUGFpcmluZ1JlZGVlbWVkSABSD3BhaXJpbmdSZWRlZW1lZBIyCgVlcnJv'+ 'chgHIAEoCzIaLnBhc3RlZmVycnkudjEuU2VydmVyRXJyb3JIAFIFZXJyb3ISOQoKaWNlX2Nvbm'+ 'ZpZxgIIAEoCzIYLnBhc3RlZmVycnkudjEuSWNlQ29uZmlnSABSCWljZUNvbmZpZ0IJCgdwYXls'+ 'b2Fk');@$core.Deprecated('Use clientEnvelopeDescriptor instead')const ClientEnvelope$json = {@@ -463,7 +464,7 @@ const ClientEnvelope$json = {'3': 1,'4': 1,'5': 11,- '6': '.copysync.v1.ClientHello',+ '6': '.pasteferry.v1.ClientHello','9': 0,'10': 'hello'},@@ -472,7 +473,7 @@ const ClientEnvelope$json = {'3': 2,'4': 1,'5': 11,- '6': '.copysync.v1.Signed',+ '6': '.pasteferry.v1.Signed','9': 0,'10': 'forward'},@@ -481,7 +482,7 @@ const ClientEnvelope$json = {'3': 3,'4': 1,'5': 11,- '6': '.copysync.v1.PairingCreateRequest',+ '6': '.pasteferry.v1.PairingCreateRequest','9': 0,'10': 'pairingCreate'},@@ -490,7 +491,7 @@ const ClientEnvelope$json = {'3': 4,'4': 1,'5': 11,- '6': '.copysync.v1.PairingRedeemRequest',+ '6': '.pasteferry.v1.PairingRedeemRequest','9': 0,'10': 'pairingRedeem'},@@ -502,12 +503,12 @@ const ClientEnvelope$json = {/// Descriptor for `ClientEnvelope`. Decode as a `google.protobuf.DescriptorProto`.final $typed_data.Uint8List clientEnvelopeDescriptor = $convert.base64Decode(- 'Cg5DbGllbnRFbnZlbG9wZRIwCgVoZWxsbxgBIAEoCzIYLmNvcHlzeW5jLnYxLkNsaWVudEhlbG'- 'xvSABSBWhlbGxvEi8KB2ZvcndhcmQYAiABKAsyEy5jb3B5c3luYy52MS5TaWduZWRIAFIHZm9y'- 'd2FyZBJKCg5wYWlyaW5nX2NyZWF0ZRgDIAEoCzIhLmNvcHlzeW5jLnYxLlBhaXJpbmdDcmVhdG'- 'VSZXF1ZXN0SABSDXBhaXJpbmdDcmVhdGUSSgoOcGFpcmluZ19yZWRlZW0YBCABKAsyIS5jb3B5'- 'c3luYy52MS5QYWlyaW5nUmVkZWVtUmVxdWVzdEgAUg1wYWlyaW5nUmVkZWVtQgkKB3BheWxvYW'- 'Q=');+ 'Cg5DbGllbnRFbnZlbG9wZRIyCgVoZWxsbxgBIAEoCzIaLnBhc3RlZmVycnkudjEuQ2xpZW50SG'+ 'VsbG9IAFIFaGVsbG8SMQoHZm9yd2FyZBgCIAEoCzIVLnBhc3RlZmVycnkudjEuU2lnbmVkSABS'+ 'B2ZvcndhcmQSTAoOcGFpcmluZ19jcmVhdGUYAyABKAsyIy5wYXN0ZWZlcnJ5LnYxLlBhaXJpbm'+ 'dDcmVhdGVSZXF1ZXN0SABSDXBhaXJpbmdDcmVhdGUSTAoOcGFpcmluZ19yZWRlZW0YBCABKAsy'+ 'Iy5wYXN0ZWZlcnJ5LnYxLlBhaXJpbmdSZWRlZW1SZXF1ZXN0SABSDXBhaXJpbmdSZWRlZW1CCQ'+ 'oHcGF5bG9hZA==');@$core.Deprecated('Use serverErrorDescriptor instead')const ServerError$json = {@@ -532,7 +533,7 @@ const LanPacket$json = {'3': 1,'4': 1,'5': 11,- '6': '.copysync.v1.Signed',+ '6': '.pasteferry.v1.Signed','9': 0,'10': 'signal'},@@ -541,7 +542,7 @@ const LanPacket$json = {'3': 2,'4': 1,'5': 11,- '6': '.copysync.v1.LanPairSigned',+ '6': '.pasteferry.v1.LanPairSigned','9': 0,'10': 'pairRequest'},@@ -550,7 +551,7 @@ const LanPacket$json = {'3': 3,'4': 1,'5': 11,- '6': '.copysync.v1.LanPairSigned',+ '6': '.pasteferry.v1.LanPairSigned','9': 0,'10': 'pairResponse'},@@ -559,7 +560,7 @@ const LanPacket$json = {'3': 4,'4': 1,'5': 11,- '6': '.copysync.v1.LanPairReject',+ '6': '.pasteferry.v1.LanPairReject','9': 0,'10': 'pairReject'},@@ -568,7 +569,7 @@ const LanPacket$json = {'3': 5,'4': 1,'5': 11,- '6': '.copysync.v1.LanPairSigned',+ '6': '.pasteferry.v1.LanPairSigned','9': 0,'10': 'nearbyRequest'},@@ -577,7 +578,7 @@ const LanPacket$json = {'3': 6,'4': 1,'5': 11,- '6': '.copysync.v1.LanNearbyPing',+ '6': '.pasteferry.v1.LanNearbyPing','9': 0,'10': 'nearbyPing'},@@ -589,14 +590,14 @@ const LanPacket$json = {/// Descriptor for `LanPacket`. Decode as a `google.protobuf.DescriptorProto`.final $typed_data.Uint8List lanPacketDescriptor = $convert.base64Decode(- 'CglMYW5QYWNrZXQSLQoGc2lnbmFsGAEgASgLMhMuY29weXN5bmMudjEuU2lnbmVkSABSBnNpZ2'- '5hbBI/CgxwYWlyX3JlcXVlc3QYAiABKAsyGi5jb3B5c3luYy52MS5MYW5QYWlyU2lnbmVkSABS'- 'C3BhaXJSZXF1ZXN0EkEKDXBhaXJfcmVzcG9uc2UYAyABKAsyGi5jb3B5c3luYy52MS5MYW5QYW'- 'lyU2lnbmVkSABSDHBhaXJSZXNwb25zZRI9CgtwYWlyX3JlamVjdBgEIAEoCzIaLmNvcHlzeW5j'- 'LnYxLkxhblBhaXJSZWplY3RIAFIKcGFpclJlamVjdBJDCg5uZWFyYnlfcmVxdWVzdBgFIAEoCz'- 'IaLmNvcHlzeW5jLnYxLkxhblBhaXJTaWduZWRIAFINbmVhcmJ5UmVxdWVzdBI9CgtuZWFyYnlf'- 'cGluZxgGIAEoCzIaLmNvcHlzeW5jLnYxLkxhbk5lYXJieVBpbmdIAFIKbmVhcmJ5UGluZ0IJCg'- 'dwYXlsb2Fk');+ 'CglMYW5QYWNrZXQSLwoGc2lnbmFsGAEgASgLMhUucGFzdGVmZXJyeS52MS5TaWduZWRIAFIGc2'+ 'lnbmFsEkEKDHBhaXJfcmVxdWVzdBgCIAEoCzIcLnBhc3RlZmVycnkudjEuTGFuUGFpclNpZ25l'+ 'ZEgAUgtwYWlyUmVxdWVzdBJDCg1wYWlyX3Jlc3BvbnNlGAMgASgLMhwucGFzdGVmZXJyeS52MS'+ '5MYW5QYWlyU2lnbmVkSABSDHBhaXJSZXNwb25zZRI/CgtwYWlyX3JlamVjdBgEIAEoCzIcLnBh'+ 'c3RlZmVycnkudjEuTGFuUGFpclJlamVjdEgAUgpwYWlyUmVqZWN0EkUKDm5lYXJieV9yZXF1ZX'+ 'N0GAUgASgLMhwucGFzdGVmZXJyeS52MS5MYW5QYWlyU2lnbmVkSABSDW5lYXJieVJlcXVlc3QS'+ 'PwoLbmVhcmJ5X3BpbmcYBiABKAsyHC5wYXN0ZWZlcnJ5LnYxLkxhbk5lYXJieVBpbmdIAFIKbm'+ 'VhcmJ5UGluZ0IJCgdwYXlsb2Fk');@$core.Deprecated('Use lanHelloDescriptor instead')const LanHello$json = {@@ -694,7 +695,7 @@ const PeerMessage$json = {'3': 1,'4': 1,'5': 11,- '6': '.copysync.v1.ClipOffer',+ '6': '.pasteferry.v1.ClipOffer','9': 0,'10': 'offer'},@@ -703,7 +704,7 @@ const PeerMessage$json = {'3': 2,'4': 1,'5': 11,- '6': '.copysync.v1.PeerFetch',+ '6': '.pasteferry.v1.PeerFetch','9': 0,'10': 'fetch'},@@ -712,7 +713,7 @@ const PeerMessage$json = {'3': 3,'4': 1,'5': 11,- '6': '.copysync.v1.FetchReject',+ '6': '.pasteferry.v1.FetchReject','9': 0,'10': 'reject'},@@ -721,7 +722,7 @@ const PeerMessage$json = {'3': 4,'4': 1,'5': 11,- '6': '.copysync.v1.TransferHeader',+ '6': '.pasteferry.v1.TransferHeader','9': 0,'10': 'header'},@@ -730,7 +731,7 @@ const PeerMessage$json = {'3': 5,'4': 1,'5': 11,- '6': '.copysync.v1.TransferDone',+ '6': '.pasteferry.v1.TransferDone','9': 0,'10': 'done'},@@ -739,7 +740,7 @@ const PeerMessage$json = {'3': 6,'4': 1,'5': 11,- '6': '.copysync.v1.LinkInfo',+ '6': '.pasteferry.v1.LinkInfo','9': 0,'10': 'link'},@@ -751,12 +752,12 @@ const PeerMessage$json = {/// Descriptor for `PeerMessage`. Decode as a `google.protobuf.DescriptorProto`.final $typed_data.Uint8List peerMessageDescriptor = $convert.base64Decode(- 'CgtQZWVyTWVzc2FnZRIuCgVvZmZlchgBIAEoCzIWLmNvcHlzeW5jLnYxLkNsaXBPZmZlckgAUg'- 'VvZmZlchIuCgVmZXRjaBgCIAEoCzIWLmNvcHlzeW5jLnYxLlBlZXJGZXRjaEgAUgVmZXRjaBIy'- 'CgZyZWplY3QYAyABKAsyGC5jb3B5c3luYy52MS5GZXRjaFJlamVjdEgAUgZyZWplY3QSNQoGaG'- 'VhZGVyGAQgASgLMhsuY29weXN5bmMudjEuVHJhbnNmZXJIZWFkZXJIAFIGaGVhZGVyEi8KBGRv'- 'bmUYBSABKAsyGS5jb3B5c3luYy52MS5UcmFuc2ZlckRvbmVIAFIEZG9uZRIrCgRsaW5rGAYgAS'- 'gLMhUuY29weXN5bmMudjEuTGlua0luZm9IAFIEbGlua0IJCgdwYXlsb2Fk');+ 'CgtQZWVyTWVzc2FnZRIwCgVvZmZlchgBIAEoCzIYLnBhc3RlZmVycnkudjEuQ2xpcE9mZmVySA'+ 'BSBW9mZmVyEjAKBWZldGNoGAIgASgLMhgucGFzdGVmZXJyeS52MS5QZWVyRmV0Y2hIAFIFZmV0'+ 'Y2gSNAoGcmVqZWN0GAMgASgLMhoucGFzdGVmZXJyeS52MS5GZXRjaFJlamVjdEgAUgZyZWplY3'+ 'QSNwoGaGVhZGVyGAQgASgLMh0ucGFzdGVmZXJyeS52MS5UcmFuc2ZlckhlYWRlckgAUgZoZWFk'+ 'ZXISMQoEZG9uZRgFIAEoCzIbLnBhc3RlZmVycnkudjEuVHJhbnNmZXJEb25lSABSBGRvbmUSLQ'+ 'oEbGluaxgGIAEoCzIXLnBhc3RlZmVycnkudjEuTGlua0luZm9IAFIEbGlua0IJCgdwYXlsb2Fk');@$core.Deprecated('Use linkInfoDescriptor instead')const LinkInfo$json = {@@ -780,7 +781,7 @@ const ClipOffer$json = {'3': 2,'4': 1,'5': 14,- '6': '.copysync.v1.ClipKind',+ '6': '.pasteferry.v1.ClipKind','10': 'kind'},{@@ -788,7 +789,7 @@ const ClipOffer$json = {'3': 3,'4': 3,'5': 11,- '6': '.copysync.v1.ClipItem',+ '6': '.pasteferry.v1.ClipItem','10': 'items'},{'1': 'total_size', '3': 4, '4': 1, '5': 3, '10': 'totalSize'},@@ -802,12 +803,12 @@ const ClipOffer$json = {/// Descriptor for `ClipOffer`. Decode as a `google.protobuf.DescriptorProto`.final $typed_data.Uint8List clipOfferDescriptor = $convert.base64Decode(- 'CglDbGlwT2ZmZXISFwoHY2xpcF9pZBgBIAEoCVIGY2xpcElkEikKBGtpbmQYAiABKA4yFS5jb3'- 'B5c3luYy52MS5DbGlwS2luZFIEa2luZBIrCgVpdGVtcxgDIAMoCzIVLmNvcHlzeW5jLnYxLkNs'- 'aXBJdGVtUgVpdGVtcxIdCgp0b3RhbF9zaXplGAQgASgDUgl0b3RhbFNpemUSIQoMdGV4dF9jb2'- '50ZW50GAUgASgJUgt0ZXh0Q29udGVudBImCg9jcmVhdGVkX2F0X3VuaXgYBiABKANSDWNyZWF0'- 'ZWRBdFVuaXgSGwoJd2lsbF9wdXNoGAcgASgIUgh3aWxsUHVzaBIdCgpwbGFpbl90ZXh0GAggAS'- 'gJUglwbGFpblRleHQSGAoHYmFja2xvZxgJIAEoCFIHYmFja2xvZw==');+ 'CglDbGlwT2ZmZXISFwoHY2xpcF9pZBgBIAEoCVIGY2xpcElkEisKBGtpbmQYAiABKA4yFy5wYX'+ 'N0ZWZlcnJ5LnYxLkNsaXBLaW5kUgRraW5kEi0KBWl0ZW1zGAMgAygLMhcucGFzdGVmZXJyeS52'+ 'MS5DbGlwSXRlbVIFaXRlbXMSHQoKdG90YWxfc2l6ZRgEIAEoA1IJdG90YWxTaXplEiEKDHRleH'+ 'RfY29udGVudBgFIAEoCVILdGV4dENvbnRlbnQSJgoPY3JlYXRlZF9hdF91bml4GAYgASgDUg1j'+ 'cmVhdGVkQXRVbml4EhsKCXdpbGxfcHVzaBgHIAEoCFIId2lsbFB1c2gSHQoKcGxhaW5fdGV4dB'+ 'gIIAEoCVIJcGxhaW5UZXh0EhgKB2JhY2tsb2cYCSABKAhSB2JhY2tsb2c=');@$core.Deprecated('Use peerFetchDescriptor instead')const PeerFetch$json = {@@ -847,7 +848,7 @@ const TransferHeader$json = {'3': 4,'4': 1,'5': 14,- '6': '.copysync.v1.Compression',+ '6': '.pasteferry.v1.Compression','10': 'compression'},{@@ -855,7 +856,7 @@ const TransferHeader$json = {'3': 5,'4': 1,'5': 14,- '6': '.copysync.v1.Packaging',+ '6': '.pasteferry.v1.Packaging','10': 'packaging'},],@@ -864,9 +865,9 @@ const TransferHeader$json = {/// Descriptor for `TransferHeader`. Decode as a `google.protobuf.DescriptorProto`.final $typed_data.Uint8List transferHeaderDescriptor = $convert.base64Decode('Cg5UcmFuc2ZlckhlYWRlchIXCgdjbGlwX2lkGAEgASgJUgZjbGlwSWQSGwoJc3RyZWFtX2lkGA'- 'IgASgJUghzdHJlYW1JZBIfCgt0b3RhbF9ieXRlcxgDIAEoA1IKdG90YWxCeXRlcxI6Cgtjb21w'- 'cmVzc2lvbhgEIAEoDjIYLmNvcHlzeW5jLnYxLkNvbXByZXNzaW9uUgtjb21wcmVzc2lvbhI0Cg'- 'lwYWNrYWdpbmcYBSABKA4yFi5jb3B5c3luYy52MS5QYWNrYWdpbmdSCXBhY2thZ2luZw==');+ 'IgASgJUghzdHJlYW1JZBIfCgt0b3RhbF9ieXRlcxgDIAEoA1IKdG90YWxCeXRlcxI8Cgtjb21w'+ 'cmVzc2lvbhgEIAEoDjIaLnBhc3RlZmVycnkudjEuQ29tcHJlc3Npb25SC2NvbXByZXNzaW9uEj'+ 'YKCXBhY2thZ2luZxgFIAEoDjIYLnBhc3RlZmVycnkudjEuUGFja2FnaW5nUglwYWNrYWdpbmc=');@$core.Deprecated('Use transferDoneDescriptor instead')const TransferDone$json = {diff --git a/ui/lib/l10n/app_en.arb b/ui/lib/l10n/app_en.arbindex 37a45cf..22c4a63 100644--- a/ui/lib/l10n/app_en.arb+++ b/ui/lib/l10n/app_en.arb@@ -1,5 +1,6 @@{"@@locale": "en",+ "appName": "PasteFerry","navHistory": "History","navDevices": "Devices","navSettings": "Settings",@@ -47,7 +48,7 @@}}},- "errAutostart": "Couldn't set CopySync to start at login: {detail}",+ "errAutostart": "Couldn't set PasteFerry to start at login: {detail}","@errAutostart": {"placeholders": {"detail": {@@ -174,10 +175,10 @@},"clear": "Clear","historyCleared": "History cleared",- "permDeniedTitle": "CopySync can't read the clipboard",- "permAskTitle": "Allow CopySync to read the clipboard",- "permDeniedBody": "What you copy on this Mac won't be synced. In System Settings, set CopySync Daemon to Allow.",- "permAskBody": "Otherwise macOS asks every time. In System Settings, set CopySync Daemon to Allow.",+ "permDeniedTitle": "PasteFerry can't read the clipboard",+ "permAskTitle": "Allow PasteFerry to read the clipboard",+ "permDeniedBody": "What you copy on this Mac won't be synced. In System Settings, set PasteFerry Daemon to Allow.",+ "permAskBody": "Otherwise macOS asks every time. In System Settings, set PasteFerry Daemon to Allow.","openSystemSettings": "Open System Settings","fetch": "Pull to this device","fetchStarted": "Pulling…",@@ -259,7 +260,7 @@}},"noDevicesTitle": "No paired devices yet",- "noDevicesBody": "Open CopySync on your other computer and link the two with a 6-character pairing code. On the same network, you can also open Search nearby on both and click the other one.",+ "noDevicesBody": "Open PasteFerry on your other computer and link the two with a 6-character pairing code. On the same network, you can also open Search nearby on both and click the other one.","pairedDevices": "Paired devices","pairedFootnote": "Direct: data goes straight between the two devices. Relay: when the network blocks a direct path, data goes through your server and stays end-to-end encrypted.","offline": "Offline",@@ -300,7 +301,7 @@},"addressSaved": "Looking for it at that address","lanBlockedTitle": "macOS is blocking the local network",- "lanBlockedBody": "Turn on CopySync Daemon in System Settings → Privacy & Security → Local Network. Until then, {device} can't connect to devices on this network.",+ "lanBlockedBody": "Turn on PasteFerry Daemon in System Settings → Privacy & Security → Local Network. Until then, {device} can't connect to devices on this network.","@lanBlockedBody": {"placeholders": {"device": {@@ -407,7 +408,7 @@"lanDiscovery": "Find devices on this network","lanDiscoveryDesc": "Pair and sync without a server. Others on the network only see an anonymous entry that changes daily, and the device name only while Search nearby is open.","macLocalNetwork": "Local Network access",- "macLocalNetworkDesc": "macOS asks once whether CopySync may connect to devices on your network. If you declined, turn on CopySync Daemon there.",+ "macLocalNetworkDesc": "macOS asks once whether PasteFerry may connect to devices on your network. If you declined, turn on PasteFerry Daemon there.","allowLan": "Windows Firewall","allowLanDesc": "Allow this when other devices can't reach this one, for example when pairing from another subnet. Asks for administrator approval once.","allow": "Allow",@@ -434,7 +435,7 @@"keepCacheDesc": "Never longer than the history","cacheUsage": "Cache size","backgroundSync": "Background sync",- "backgroundFootnote": "When off, nothing syncs and CopySync doesn't start at login. History and pairings are kept; open the app to turn it back on.",+ "backgroundFootnote": "When off, nothing syncs and PasteFerry doesn't start at login. History and pairings are kept; open the app to turn it back on.","backgroundService": "Background service","backgroundServiceDesc": "Starts at login and keeps syncing with the window closed","restart": "Restart",@@ -445,7 +446,7 @@"homepage": "Website","feedback": "Report a problem","disableTitle": "Turn off background sync?",- "disableBody": "CopySync on {device} will stop syncing and won't start at login. History and pairings are kept.",+ "disableBody": "PasteFerry on {device} will stop syncing and won't start at login. History and pairings are kept.","@disableBody": {"placeholders": {"device": {@@ -493,21 +494,21 @@}}},- "svcExtractTitle": "Install or extract CopySync first",- "svcExtractBody": "CopySync is running straight from the zip, and its temporary folder disappears when you close it. Run the installer, or extract the whole folder and open it from there, to turn on background sync.",- "svcMoveTitle": "Move CopySync to Applications first",- "svcMoveBody": "CopySync is running straight from the disk image. Drag it into Applications, eject the disk image, and open it from Applications to turn on background sync.",- "svcStartTitle": "Get started with CopySync",- "svcStartBody": "CopySync runs a small background process that notices clipboard changes and stays connected to your other devices. Once on, it starts at login and keeps syncing even with this window closed.",+ "svcExtractTitle": "Install or extract PasteFerry first",+ "svcExtractBody": "PasteFerry is running straight from the zip, and its temporary folder disappears when you close it. Run the installer, or extract the whole folder and open it from there, to turn on background sync.",+ "svcMoveTitle": "Move PasteFerry to Applications first",+ "svcMoveBody": "PasteFerry is running straight from the disk image. Drag it into Applications, eject the disk image, and open it from Applications to turn on background sync.",+ "svcStartTitle": "Get started with PasteFerry",+ "svcStartBody": "PasteFerry runs a small background process that notices clipboard changes and stays connected to your other devices. Once on, it starts at login and keeps syncing even with this window closed.","svcEnable": "Turn on background sync","svcStaleTitle": "Turn background sync on again",- "svcStaleBodyWin": "CopySync has moved, but starting at login still points to the old place. Turn it on again so the background process uses this copy. History and pairings are kept.",- "svcStaleBodyMac": "CopySync has moved, or was installed with an old script. Turn it on again so the background process uses this app. History and pairings are kept.",+ "svcStaleBodyWin": "PasteFerry has moved, but starting at login still points to the old place. Turn it on again so the background process uses this copy. History and pairings are kept.",+ "svcStaleBodyMac": "PasteFerry has moved, or was installed with an old script. Turn it on again so the background process uses this app. History and pairings are kept.","svcReenable": "Turn on again","svcStoppedTitle": "The background service isn't running","svcStoppedBody": "It may have just quit; the system usually restarts it within seconds. If you stay on this page, restart it with the button below.",- "svcDevBodyWin": "This is a development build with no copysyncd.exe next to it. Run scripts\\build-windows.ps1 in the source folder to build a complete version.",- "svcDevBodyLinux": "This is a development build with no copysyncd next to it. Run ./scripts/package-linux.sh in the source folder to build a complete version.",+ "svcDevBodyWin": "This is a development build with no pasteferryd.exe next to it. Run scripts\\build-windows.ps1 in the source folder to build a complete version.",+ "svcDevBodyLinux": "This is a development build with no pasteferryd next to it. Run ./scripts/package-linux.sh in the source folder to build a complete version.","svcDevBodyMac": "This is a development build without the background service. Run ./scripts/install-macos.sh in the source folder to install it.","svcLogPath": "Log: {path}","@svcLogPath": {diff --git a/ui/lib/l10n/app_ja.arb b/ui/lib/l10n/app_ja.arbindex 0385edf..c551ee4 100644--- a/ui/lib/l10n/app_ja.arb+++ b/ui/lib/l10n/app_ja.arb@@ -1,5 +1,6 @@{"@@locale": "ja",+ "appName": "PasteFerry","navHistory": "履歴","navDevices": "デバイス","navSettings": "設定",@@ -56,10 +57,10 @@"clearConfirmBody": "同期した履歴とキャッシュしたファイルが{device}から削除されます。元のファイルには影響しません。","clear": "消去","historyCleared": "履歴を消去しました",- "permDeniedTitle": "CopySync はクリップボードを読み取れません",- "permAskTitle": "CopySync にクリップボードの読み取りを許可してください",- "permDeniedBody": "この Mac でコピーした内容は同期されません。システム設定で CopySync Daemon を「許可」にしてください。",- "permAskBody": "許可しないと macOS が毎回確認します。システム設定で CopySync Daemon を「許可」にしてください。",+ "permDeniedTitle": "PasteFerry はクリップボードを読み取れません",+ "permAskTitle": "PasteFerry にクリップボードの読み取りを許可してください",+ "permDeniedBody": "この Mac でコピーした内容は同期されません。システム設定で PasteFerry Daemon を「許可」にしてください。",+ "permAskBody": "許可しないと macOS が毎回確認します。システム設定で PasteFerry Daemon を「許可」にしてください。","openSystemSettings": "システム設定を開く","fetch": "このデバイスに取り込む","fetchStarted": "取り込みを開始しました",@@ -97,7 +98,7 @@"addDevice": "デバイスを追加","thisDeviceFootnote": "ペアリング時、{both}に同じ 2 行のセキュリティ指紋(このデバイスと相手のもの)が表示されます。1 文字ずつ一致を確かめてから確定してください。","noDevicesTitle": "ペアリングしたデバイスはまだありません",- "noDevicesBody": "もう一台のコンピューターで CopySync を開き、6 桁のペアリングコードでつなげます。同じネットワーク内なら、両方で「近くを検索」を開いて相手をクリックすることもできます。",+ "noDevicesBody": "もう一台のコンピューターで PasteFerry を開き、6 桁のペアリングコードでつなげます。同じネットワーク内なら、両方で「近くを検索」を開いて相手をクリックすることもできます。","pairedDevices": "ペアリング済みのデバイス","pairedFootnote": "直接接続:データは 2 台のデバイス間で直接やり取りされます。中継:直接つながらないネットワークでは、あなたのサーバーを経由します。内容はエンドツーエンドで暗号化されたままです。","offline": "オフライン",@@ -117,7 +118,7 @@"setAddressBody": "2 台が別のサブネットにある場合や、どちらもアドレスが変わった場合に使います。「{name}」の「デバイスを追加 → コードを表示」に表示されるアドレスを入力してください。","addressSaved": "そのアドレスで探しています","lanBlockedTitle": "macOS がローカルネットワークへのアクセスをブロックしています",- "lanBlockedBody": "「システム設定 → プライバシーとセキュリティ → ローカルネットワーク」で CopySync Daemon をオンにしてください。オンにするまで、{device}は同じネットワークのデバイスに接続できません。",+ "lanBlockedBody": "「システム設定 → プライバシーとセキュリティ → ローカルネットワーク」で PasteFerry Daemon をオンにしてください。オンにするまで、{device}は同じネットワークのデバイスに接続できません。","searchNearby": "近くを検索","nearbyTitle": "近くのデバイス","nearbySearching": "近くのデバイスを探しています…",@@ -175,7 +176,7 @@"lanDiscovery": "このネットワークでデバイスを探す","lanDiscoveryDesc": "サーバーなしでペアリングと同期ができます。ネットワーク上の他の人には、毎日変わる匿名の識別子しか見えません。デバイス名が見えるのは「近くを検索」を開いている間だけです","macLocalNetwork": "ローカルネットワークへのアクセス",- "macLocalNetworkDesc": "CopySync がネットワーク上のデバイスに接続してよいか、macOS が一度だけ確認します。拒否した場合は、そこで CopySync Daemon をオンにしてください",+ "macLocalNetworkDesc": "PasteFerry がネットワーク上のデバイスに接続してよいか、macOS が一度だけ確認します。拒否した場合は、そこで PasteFerry Daemon をオンにしてください","allowLan": "Windows ファイアウォール","allowLanDesc": "他のデバイスからこのデバイスに接続できないとき(別のサブネットからのペアリングなど)に許可します。管理者の承認を 1 回求めます","allow": "許可",@@ -233,21 +234,21 @@"diagNewIssue": "GitHub で Issue を作成","diagIssueHint": "レポートをコピーしました。Issue の「Diagnostics report」欄に貼り付けてください","diagFailed": "レポートを作成できませんでした:{detail}",- "svcExtractTitle": "先に CopySync をインストールまたは展開してください",- "svcExtractBody": "CopySync は zip から直接開かれていて、閉じると一時フォルダごと消えます。インストーラーを実行するか、フォルダ全体を展開してから開くと、バックグラウンド同期を有効にできます。",- "svcMoveTitle": "先に CopySync を「アプリケーション」に移動してください",- "svcMoveBody": "CopySync はディスクイメージから直接開かれています。「アプリケーション」にドラッグしてディスクイメージを取り出し、「アプリケーション」から開くと、バックグラウンド同期を有効にできます。",- "svcStartTitle": "CopySync を始める",- "svcStartBody": "CopySync は小さなバックグラウンドプロセスを動かし、クリップボードの変化を検知して他のデバイスとつながり続けます。有効にするとログイン時に起動し、このウィンドウを閉じても同期を続けます。",+ "svcExtractTitle": "先に PasteFerry をインストールまたは展開してください",+ "svcExtractBody": "PasteFerry は zip から直接開かれていて、閉じると一時フォルダごと消えます。インストーラーを実行するか、フォルダ全体を展開してから開くと、バックグラウンド同期を有効にできます。",+ "svcMoveTitle": "先に PasteFerry を「アプリケーション」に移動してください",+ "svcMoveBody": "PasteFerry はディスクイメージから直接開かれています。「アプリケーション」にドラッグしてディスクイメージを取り出し、「アプリケーション」から開くと、バックグラウンド同期を有効にできます。",+ "svcStartTitle": "PasteFerry を始める",+ "svcStartBody": "PasteFerry は小さなバックグラウンドプロセスを動かし、クリップボードの変化を検知して他のデバイスとつながり続けます。有効にするとログイン時に起動し、このウィンドウを閉じても同期を続けます。","svcEnable": "バックグラウンド同期を有効にする","svcStaleTitle": "バックグラウンド同期をもう一度有効にする",- "svcStaleBodyWin": "CopySync の場所が変わりましたが、自動起動は以前の場所を指しています。もう一度有効にすると、このコピーを使うようになります。履歴とペアリングは残ります。",- "svcStaleBodyMac": "CopySync の場所が変わったか、古いスクリプトでインストールされています。もう一度有効にすると、このアプリを使うようになります。履歴とペアリングは残ります。",+ "svcStaleBodyWin": "PasteFerry の場所が変わりましたが、自動起動は以前の場所を指しています。もう一度有効にすると、このコピーを使うようになります。履歴とペアリングは残ります。",+ "svcStaleBodyMac": "PasteFerry の場所が変わったか、古いスクリプトでインストールされています。もう一度有効にすると、このアプリを使うようになります。履歴とペアリングは残ります。","svcReenable": "もう一度有効にする","svcStoppedTitle": "バックグラウンドサービスが動いていません","svcStoppedBody": "終了した直後かもしれません。通常は数秒で再起動されます。この画面のままなら、下のボタンで再起動してください。",- "svcDevBodyWin": "開発ビルドのため copysyncd.exe がありません。ソースフォルダで scripts\\build-windows.ps1 を実行して完全版をビルドしてください。",- "svcDevBodyLinux": "開発ビルドのため copysyncd がありません。ソースフォルダで ./scripts/package-linux.sh を実行して完全版をビルドしてください。",+ "svcDevBodyWin": "開発ビルドのため pasteferryd.exe がありません。ソースフォルダで scripts\\build-windows.ps1 を実行して完全版をビルドしてください。",+ "svcDevBodyLinux": "開発ビルドのため pasteferryd がありません。ソースフォルダで ./scripts/package-linux.sh を実行して完全版をビルドしてください。","svcDevBodyMac": "開発ビルドのためバックグラウンドサービスが含まれていません。ソースフォルダで ./scripts/install-macos.sh を実行してインストールしてください。","svcLogPath": "ログ:{path}","svcCanDisable": "バックグラウンド同期は「設定」でいつでもオフにできます。"diff --git a/ui/lib/l10n/app_localizations.dart b/ui/lib/l10n/app_localizations.dartindex eb9f489..d455c85 100644--- a/ui/lib/l10n/app_localizations.dart+++ b/ui/lib/l10n/app_localizations.dart@@ -110,6 +110,12 @@ abstract class AppLocalizations {),];+ /// No description provided for @appName.+ ///+ /// In en, this message translates to:+ /// **'PasteFerry'**+ String get appName;+/// No description provided for @navHistory.////// In en, this message translates to:@@ -227,7 +233,7 @@ abstract class AppLocalizations {/// No description provided for @errAutostart.////// In en, this message translates to:- /// **'Couldn\'t set CopySync to start at login: {detail}'**+ /// **'Couldn\'t set PasteFerry to start at login: {detail}'**String errAutostart(String detail);/// No description provided for @thisMacTitle.@@ -449,25 +455,25 @@ abstract class AppLocalizations {/// No description provided for @permDeniedTitle.////// In en, this message translates to:- /// **'CopySync can\'t read the clipboard'**+ /// **'PasteFerry can\'t read the clipboard'**String get permDeniedTitle;/// No description provided for @permAskTitle.////// In en, this message translates to:- /// **'Allow CopySync to read the clipboard'**+ /// **'Allow PasteFerry to read the clipboard'**String get permAskTitle;/// No description provided for @permDeniedBody.////// In en, this message translates to:- /// **'What you copy on this Mac won\'t be synced. In System Settings, set CopySync Daemon to Allow.'**+ /// **'What you copy on this Mac won\'t be synced. In System Settings, set PasteFerry Daemon to Allow.'**String get permDeniedBody;/// No description provided for @permAskBody.////// In en, this message translates to:- /// **'Otherwise macOS asks every time. In System Settings, set CopySync Daemon to Allow.'**+ /// **'Otherwise macOS asks every time. In System Settings, set PasteFerry Daemon to Allow.'**String get permAskBody;/// No description provided for @openSystemSettings.@@ -695,7 +701,7 @@ abstract class AppLocalizations {/// No description provided for @noDevicesBody.////// In en, this message translates to:- /// **'Open CopySync on your other computer and link the two with a 6-character pairing code. On the same network, you can also open Search nearby on both and click the other one.'**+ /// **'Open PasteFerry on your other computer and link the two with a 6-character pairing code. On the same network, you can also open Search nearby on both and click the other one.'**String get noDevicesBody;/// No description provided for @pairedDevices.@@ -815,7 +821,7 @@ abstract class AppLocalizations {/// No description provided for @lanBlockedBody.////// In en, this message translates to:- /// **'Turn on CopySync Daemon in System Settings → Privacy & Security → Local Network. Until then, {device} can\'t connect to devices on this network.'**+ /// **'Turn on PasteFerry Daemon in System Settings → Privacy & Security → Local Network. Until then, {device} can\'t connect to devices on this network.'**String lanBlockedBody(String device);/// No description provided for @searchNearby.@@ -1163,7 +1169,7 @@ abstract class AppLocalizations {/// No description provided for @macLocalNetworkDesc.////// In en, this message translates to:- /// **'macOS asks once whether CopySync may connect to devices on your network. If you declined, turn on CopySync Daemon there.'**+ /// **'macOS asks once whether PasteFerry may connect to devices on your network. If you declined, turn on PasteFerry Daemon there.'**String get macLocalNetworkDesc;/// No description provided for @allowLan.@@ -1325,7 +1331,7 @@ abstract class AppLocalizations {/// No description provided for @backgroundFootnote.////// In en, this message translates to:- /// **'When off, nothing syncs and CopySync doesn\'t start at login. History and pairings are kept; open the app to turn it back on.'**+ /// **'When off, nothing syncs and PasteFerry doesn\'t start at login. History and pairings are kept; open the app to turn it back on.'**String get backgroundFootnote;/// No description provided for @backgroundService.@@ -1391,7 +1397,7 @@ abstract class AppLocalizations {/// No description provided for @disableBody.////// In en, this message translates to:- /// **'CopySync on {device} will stop syncing and won\'t start at login. History and pairings are kept.'**+ /// **'PasteFerry on {device} will stop syncing and won\'t start at login. History and pairings are kept.'**String disableBody(String device);/// No description provided for @disable.@@ -1511,37 +1517,37 @@ abstract class AppLocalizations {/// No description provided for @svcExtractTitle.////// In en, this message translates to:- /// **'Install or extract CopySync first'**+ /// **'Install or extract PasteFerry first'**String get svcExtractTitle;/// No description provided for @svcExtractBody.////// In en, this message translates to:- /// **'CopySync is running straight from the zip, and its temporary folder disappears when you close it. Run the installer, or extract the whole folder and open it from there, to turn on background sync.'**+ /// **'PasteFerry is running straight from the zip, and its temporary folder disappears when you close it. Run the installer, or extract the whole folder and open it from there, to turn on background sync.'**String get svcExtractBody;/// No description provided for @svcMoveTitle.////// In en, this message translates to:- /// **'Move CopySync to Applications first'**+ /// **'Move PasteFerry to Applications first'**String get svcMoveTitle;/// No description provided for @svcMoveBody.////// In en, this message translates to:- /// **'CopySync is running straight from the disk image. Drag it into Applications, eject the disk image, and open it from Applications to turn on background sync.'**+ /// **'PasteFerry is running straight from the disk image. Drag it into Applications, eject the disk image, and open it from Applications to turn on background sync.'**String get svcMoveBody;/// No description provided for @svcStartTitle.////// In en, this message translates to:- /// **'Get started with CopySync'**+ /// **'Get started with PasteFerry'**String get svcStartTitle;/// No description provided for @svcStartBody.////// In en, this message translates to:- /// **'CopySync runs a small background process that notices clipboard changes and stays connected to your other devices. Once on, it starts at login and keeps syncing even with this window closed.'**+ /// **'PasteFerry runs a small background process that notices clipboard changes and stays connected to your other devices. Once on, it starts at login and keeps syncing even with this window closed.'**String get svcStartBody;/// No description provided for @svcEnable.@@ -1559,13 +1565,13 @@ abstract class AppLocalizations {/// No description provided for @svcStaleBodyWin.////// In en, this message translates to:- /// **'CopySync has moved, but starting at login still points to the old place. Turn it on again so the background process uses this copy. History and pairings are kept.'**+ /// **'PasteFerry has moved, but starting at login still points to the old place. Turn it on again so the background process uses this copy. History and pairings are kept.'**String get svcStaleBodyWin;/// No description provided for @svcStaleBodyMac.////// In en, this message translates to:- /// **'CopySync has moved, or was installed with an old script. Turn it on again so the background process uses this app. History and pairings are kept.'**+ /// **'PasteFerry has moved, or was installed with an old script. Turn it on again so the background process uses this app. History and pairings are kept.'**String get svcStaleBodyMac;/// No description provided for @svcReenable.@@ -1589,13 +1595,13 @@ abstract class AppLocalizations {/// No description provided for @svcDevBodyWin.////// In en, this message translates to:- /// **'This is a development build with no copysyncd.exe next to it. Run scripts\\build-windows.ps1 in the source folder to build a complete version.'**+ /// **'This is a development build with no pasteferryd.exe next to it. Run scripts\\build-windows.ps1 in the source folder to build a complete version.'**String get svcDevBodyWin;/// No description provided for @svcDevBodyLinux.////// In en, this message translates to:- /// **'This is a development build with no copysyncd next to it. Run ./scripts/package-linux.sh in the source folder to build a complete version.'**+ /// **'This is a development build with no pasteferryd next to it. Run ./scripts/package-linux.sh in the source folder to build a complete version.'**String get svcDevBodyLinux;/// No description provided for @svcDevBodyMac.diff --git a/ui/lib/l10n/app_localizations_en.dart b/ui/lib/l10n/app_localizations_en.dartindex d0bb7f2..22536a2 100644--- a/ui/lib/l10n/app_localizations_en.dart+++ b/ui/lib/l10n/app_localizations_en.dart@@ -8,6 +8,9 @@ import 'app_localizations.dart';class AppLocalizationsEn extends AppLocalizations {AppLocalizationsEn([String locale = 'en']) : super(locale);+ @override+ String get appName => 'PasteFerry';+@overrideString get navHistory => 'History';@@ -84,7 +87,7 @@ class AppLocalizationsEn extends AppLocalizations {@overrideString errAutostart(String detail) {- return 'Couldn\'t set CopySync to start at login: $detail';+ return 'Couldn\'t set PasteFerry to start at login: $detail';}@override@@ -262,18 +265,18 @@ class AppLocalizationsEn extends AppLocalizations {String get historyCleared => 'History cleared';@override- String get permDeniedTitle => 'CopySync can\'t read the clipboard';+ String get permDeniedTitle => 'PasteFerry can\'t read the clipboard';@override- String get permAskTitle => 'Allow CopySync to read the clipboard';+ String get permAskTitle => 'Allow PasteFerry to read the clipboard';@overrideString get permDeniedBody =>- 'What you copy on this Mac won\'t be synced. In System Settings, set CopySync Daemon to Allow.';+ 'What you copy on this Mac won\'t be synced. In System Settings, set PasteFerry Daemon to Allow.';@overrideString get permAskBody =>- 'Otherwise macOS asks every time. In System Settings, set CopySync Daemon to Allow.';+ 'Otherwise macOS asks every time. In System Settings, set PasteFerry Daemon to Allow.';@overrideString get openSystemSettings => 'Open System Settings';@@ -413,7 +416,7 @@ class AppLocalizationsEn extends AppLocalizations {@overrideString get noDevicesBody =>- 'Open CopySync on your other computer and link the two with a 6-character pairing code. On the same network, you can also open Search nearby on both and click the other one.';+ 'Open PasteFerry on your other computer and link the two with a 6-character pairing code. On the same network, you can also open Search nearby on both and click the other one.';@overrideString get pairedDevices => 'Paired devices';@@ -482,7 +485,7 @@ class AppLocalizationsEn extends AppLocalizations {@overrideString lanBlockedBody(String device) {- return 'Turn on CopySync Daemon in System Settings → Privacy & Security → Local Network. Until then, $device can\'t connect to devices on this network.';+ return 'Turn on PasteFerry Daemon in System Settings → Privacy & Security → Local Network. Until then, $device can\'t connect to devices on this network.';}@override@@ -684,7 +687,7 @@ class AppLocalizationsEn extends AppLocalizations {@overrideString get macLocalNetworkDesc =>- 'macOS asks once whether CopySync may connect to devices on your network. If you declined, turn on CopySync Daemon there.';+ 'macOS asks once whether PasteFerry may connect to devices on your network. If you declined, turn on PasteFerry Daemon there.';@overrideString get allowLan => 'Windows Firewall';@@ -770,7 +773,7 @@ class AppLocalizationsEn extends AppLocalizations {@overrideString get backgroundFootnote =>- 'When off, nothing syncs and CopySync doesn\'t start at login. History and pairings are kept; open the app to turn it back on.';+ 'When off, nothing syncs and PasteFerry doesn\'t start at login. History and pairings are kept; open the app to turn it back on.';@overrideString get backgroundService => 'Background service';@@ -805,7 +808,7 @@ class AppLocalizationsEn extends AppLocalizations {@overrideString disableBody(String device) {- return 'CopySync on $device will stop syncing and won\'t start at login. History and pairings are kept.';+ return 'PasteFerry on $device will stop syncing and won\'t start at login. History and pairings are kept.';}@override@@ -875,25 +878,25 @@ class AppLocalizationsEn extends AppLocalizations {}@override- String get svcExtractTitle => 'Install or extract CopySync first';+ String get svcExtractTitle => 'Install or extract PasteFerry first';@overrideString get svcExtractBody =>- 'CopySync is running straight from the zip, and its temporary folder disappears when you close it. Run the installer, or extract the whole folder and open it from there, to turn on background sync.';+ 'PasteFerry is running straight from the zip, and its temporary folder disappears when you close it. Run the installer, or extract the whole folder and open it from there, to turn on background sync.';@override- String get svcMoveTitle => 'Move CopySync to Applications first';+ String get svcMoveTitle => 'Move PasteFerry to Applications first';@overrideString get svcMoveBody =>- 'CopySync is running straight from the disk image. Drag it into Applications, eject the disk image, and open it from Applications to turn on background sync.';+ 'PasteFerry is running straight from the disk image. Drag it into Applications, eject the disk image, and open it from Applications to turn on background sync.';@override- String get svcStartTitle => 'Get started with CopySync';+ String get svcStartTitle => 'Get started with PasteFerry';@overrideString get svcStartBody =>- 'CopySync runs a small background process that notices clipboard changes and stays connected to your other devices. Once on, it starts at login and keeps syncing even with this window closed.';+ 'PasteFerry runs a small background process that notices clipboard changes and stays connected to your other devices. Once on, it starts at login and keeps syncing even with this window closed.';@overrideString get svcEnable => 'Turn on background sync';@@ -903,11 +906,11 @@ class AppLocalizationsEn extends AppLocalizations {@overrideString get svcStaleBodyWin =>- 'CopySync has moved, but starting at login still points to the old place. Turn it on again so the background process uses this copy. History and pairings are kept.';+ 'PasteFerry has moved, but starting at login still points to the old place. Turn it on again so the background process uses this copy. History and pairings are kept.';@overrideString get svcStaleBodyMac =>- 'CopySync has moved, or was installed with an old script. Turn it on again so the background process uses this app. History and pairings are kept.';+ 'PasteFerry has moved, or was installed with an old script. Turn it on again so the background process uses this app. History and pairings are kept.';@overrideString get svcReenable => 'Turn on again';@@ -921,11 +924,11 @@ class AppLocalizationsEn extends AppLocalizations {@overrideString get svcDevBodyWin =>- 'This is a development build with no copysyncd.exe next to it. Run scripts\\build-windows.ps1 in the source folder to build a complete version.';+ 'This is a development build with no pasteferryd.exe next to it. Run scripts\\build-windows.ps1 in the source folder to build a complete version.';@overrideString get svcDevBodyLinux =>- 'This is a development build with no copysyncd next to it. Run ./scripts/package-linux.sh in the source folder to build a complete version.';+ 'This is a development build with no pasteferryd next to it. Run ./scripts/package-linux.sh in the source folder to build a complete version.';@overrideString get svcDevBodyMac =>diff --git a/ui/lib/l10n/app_localizations_ja.dart b/ui/lib/l10n/app_localizations_ja.dartindex ab15f7a..ca3db42 100644--- a/ui/lib/l10n/app_localizations_ja.dart+++ b/ui/lib/l10n/app_localizations_ja.dart@@ -8,6 +8,9 @@ import 'app_localizations.dart';class AppLocalizationsJa extends AppLocalizations {AppLocalizationsJa([String locale = 'ja']) : super(locale);+ @override+ String get appName => 'PasteFerry';+@overrideString get navHistory => '履歴';@@ -209,18 +212,18 @@ class AppLocalizationsJa extends AppLocalizations {String get historyCleared => '履歴を消去しました';@override- String get permDeniedTitle => 'CopySync はクリップボードを読み取れません';+ String get permDeniedTitle => 'PasteFerry はクリップボードを読み取れません';@override- String get permAskTitle => 'CopySync にクリップボードの読み取りを許可してください';+ String get permAskTitle => 'PasteFerry にクリップボードの読み取りを許可してください';@overrideString get permDeniedBody =>- 'この Mac でコピーした内容は同期されません。システム設定で CopySync Daemon を「許可」にしてください。';+ 'この Mac でコピーした内容は同期されません。システム設定で PasteFerry Daemon を「許可」にしてください。';@overrideString get permAskBody =>- '許可しないと macOS が毎回確認します。システム設定で CopySync Daemon を「許可」にしてください。';+ '許可しないと macOS が毎回確認します。システム設定で PasteFerry Daemon を「許可」にしてください。';@overrideString get openSystemSettings => 'システム設定を開く';@@ -345,7 +348,7 @@ class AppLocalizationsJa extends AppLocalizations {@overrideString get noDevicesBody =>- 'もう一台のコンピューターで CopySync を開き、6 桁のペアリングコードでつなげます。同じネットワーク内なら、両方で「近くを検索」を開いて相手をクリックすることもできます。';+ 'もう一台のコンピューターで PasteFerry を開き、6 桁のペアリングコードでつなげます。同じネットワーク内なら、両方で「近くを検索」を開いて相手をクリックすることもできます。';@overrideString get pairedDevices => 'ペアリング済みのデバイス';@@ -414,7 +417,7 @@ class AppLocalizationsJa extends AppLocalizations {@overrideString lanBlockedBody(String device) {- return '「システム設定 → プライバシーとセキュリティ → ローカルネットワーク」で CopySync Daemon をオンにしてください。オンにするまで、$deviceは同じネットワークのデバイスに接続できません。';+ return '「システム設定 → プライバシーとセキュリティ → ローカルネットワーク」で PasteFerry Daemon をオンにしてください。オンにするまで、$deviceは同じネットワークのデバイスに接続できません。';}@override@@ -609,7 +612,7 @@ class AppLocalizationsJa extends AppLocalizations {@overrideString get macLocalNetworkDesc =>- 'CopySync がネットワーク上のデバイスに接続してよいか、macOS が一度だけ確認します。拒否した場合は、そこで CopySync Daemon をオンにしてください';+ 'PasteFerry がネットワーク上のデバイスに接続してよいか、macOS が一度だけ確認します。拒否した場合は、そこで PasteFerry Daemon をオンにしてください';@overrideString get allowLan => 'Windows ファイアウォール';@@ -797,25 +800,25 @@ class AppLocalizationsJa extends AppLocalizations {}@override- String get svcExtractTitle => '先に CopySync をインストールまたは展開してください';+ String get svcExtractTitle => '先に PasteFerry をインストールまたは展開してください';@overrideString get svcExtractBody =>- 'CopySync は zip から直接開かれていて、閉じると一時フォルダごと消えます。インストーラーを実行するか、フォルダ全体を展開してから開くと、バックグラウンド同期を有効にできます。';+ 'PasteFerry は zip から直接開かれていて、閉じると一時フォルダごと消えます。インストーラーを実行するか、フォルダ全体を展開してから開くと、バックグラウンド同期を有効にできます。';@override- String get svcMoveTitle => '先に CopySync を「アプリケーション」に移動してください';+ String get svcMoveTitle => '先に PasteFerry を「アプリケーション」に移動してください';@overrideString get svcMoveBody =>- 'CopySync はディスクイメージから直接開かれています。「アプリケーション」にドラッグしてディスクイメージを取り出し、「アプリケーション」から開くと、バックグラウンド同期を有効にできます。';+ 'PasteFerry はディスクイメージから直接開かれています。「アプリケーション」にドラッグしてディスクイメージを取り出し、「アプリケーション」から開くと、バックグラウンド同期を有効にできます。';@override- String get svcStartTitle => 'CopySync を始める';+ String get svcStartTitle => 'PasteFerry を始める';@overrideString get svcStartBody =>- 'CopySync は小さなバックグラウンドプロセスを動かし、クリップボードの変化を検知して他のデバイスとつながり続けます。有効にするとログイン時に起動し、このウィンドウを閉じても同期を続けます。';+ 'PasteFerry は小さなバックグラウンドプロセスを動かし、クリップボードの変化を検知して他のデバイスとつながり続けます。有効にするとログイン時に起動し、このウィンドウを閉じても同期を続けます。';@overrideString get svcEnable => 'バックグラウンド同期を有効にする';@@ -825,11 +828,11 @@ class AppLocalizationsJa extends AppLocalizations {@overrideString get svcStaleBodyWin =>- 'CopySync の場所が変わりましたが、自動起動は以前の場所を指しています。もう一度有効にすると、このコピーを使うようになります。履歴とペアリングは残ります。';+ 'PasteFerry の場所が変わりましたが、自動起動は以前の場所を指しています。もう一度有効にすると、このコピーを使うようになります。履歴とペアリングは残ります。';@overrideString get svcStaleBodyMac =>- 'CopySync の場所が変わったか、古いスクリプトでインストールされています。もう一度有効にすると、このアプリを使うようになります。履歴とペアリングは残ります。';+ 'PasteFerry の場所が変わったか、古いスクリプトでインストールされています。もう一度有効にすると、このアプリを使うようになります。履歴とペアリングは残ります。';@overrideString get svcReenable => 'もう一度有効にする';@@ -843,11 +846,11 @@ class AppLocalizationsJa extends AppLocalizations {@overrideString get svcDevBodyWin =>- '開発ビルドのため copysyncd.exe がありません。ソースフォルダで scripts\\build-windows.ps1 を実行して完全版をビルドしてください。';+ '開発ビルドのため pasteferryd.exe がありません。ソースフォルダで scripts\\build-windows.ps1 を実行して完全版をビルドしてください。';@overrideString get svcDevBodyLinux =>- '開発ビルドのため copysyncd がありません。ソースフォルダで ./scripts/package-linux.sh を実行して完全版をビルドしてください。';+ '開発ビルドのため pasteferryd がありません。ソースフォルダで ./scripts/package-linux.sh を実行して完全版をビルドしてください。';@overrideString get svcDevBodyMac =>diff --git a/ui/lib/l10n/app_localizations_zh.dart b/ui/lib/l10n/app_localizations_zh.dartindex ff9e94e..6c1e6e1 100644--- a/ui/lib/l10n/app_localizations_zh.dart+++ b/ui/lib/l10n/app_localizations_zh.dart@@ -8,6 +8,9 @@ import 'app_localizations.dart';class AppLocalizationsZh extends AppLocalizations {AppLocalizationsZh([String locale = 'zh']) : super(locale);+ @override+ String get appName => '隔空贴';+@overrideString get navHistory => '复制记录';@@ -209,17 +212,18 @@ class AppLocalizationsZh extends AppLocalizations {String get historyCleared => '记录已清空';@override- String get permDeniedTitle => '已禁止 CopySync 读取剪贴板';+ String get permDeniedTitle => '已禁止隔空贴读取剪贴板';@override- String get permAskTitle => '允许 CopySync 读取剪贴板';+ String get permAskTitle => '允许隔空贴读取剪贴板';@overrideString get permDeniedBody =>- '在这台 Mac 上复制的内容不会同步出去。到系统设置里把 CopySync Daemon 改为「允许」。';+ '在这台 Mac 上复制的内容不会同步出去。到系统设置里把 PasteFerry Daemon 改为「允许」。';@override- String get permAskBody => '否则 macOS 每次都会弹窗询问。到系统设置里把 CopySync Daemon 改为「允许」。';+ String get permAskBody =>+ '否则 macOS 每次都会弹窗询问。到系统设置里把 PasteFerry Daemon 改为「允许」。';@overrideString get openSystemSettings => '打开系统设置';@@ -344,7 +348,7 @@ class AppLocalizationsZh extends AppLocalizations {@overrideString get noDevicesBody =>- '在另一台电脑上打开 CopySync,用 6 位配对码把两台连起来。两台在同一个网络里时,也可以在两台上都打开「搜索附近设备」,点一下对方。';+ '在另一台电脑上打开隔空贴,用 6 位配对码把两台连起来。两台在同一个网络里时,也可以在两台上都打开「搜索附近设备」,点一下对方。';@overrideString get pairedDevices => '已配对的设备';@@ -412,7 +416,7 @@ class AppLocalizationsZh extends AppLocalizations {@overrideString lanBlockedBody(String device) {- return '在「系统设置 → 隐私与安全性 → 本地网络」里打开 CopySync Daemon。打开之前,$device连不上同一网络里的设备。';+ return '在「系统设置 → 隐私与安全性 → 本地网络」里打开 PasteFerry Daemon。打开之前,$device连不上同一网络里的设备。';}@override@@ -603,7 +607,7 @@ class AppLocalizationsZh extends AppLocalizations {@overrideString get macLocalNetworkDesc =>- 'macOS 会问一次是否允许 CopySync 连接网络里的设备。拒绝过的话,到那里打开 CopySync Daemon';+ 'macOS 会问一次是否允许隔空贴连接网络里的设备。拒绝过的话,到那里打开 PasteFerry Daemon';@overrideString get allowLan => 'Windows 防火墙';@@ -788,25 +792,25 @@ class AppLocalizationsZh extends AppLocalizations {}@override- String get svcExtractTitle => '先解压或安装 CopySync';+ String get svcExtractTitle => '先解压或安装隔空贴';@overrideString get svcExtractBody =>- 'CopySync 现在是直接从压缩包里打开的,关掉之后它所在的临时文件夹就会被删除。运行安装程序,或者把整个文件夹解压出来再打开,就可以启用后台同步。';+ '隔空贴现在是直接从压缩包里打开的,关掉之后它所在的临时文件夹就会被删除。运行安装程序,或者把整个文件夹解压出来再打开,就可以启用后台同步。';@override- String get svcMoveTitle => '先把 CopySync 移到「应用程序」';+ String get svcMoveTitle => '先把隔空贴移到「应用程序」';@overrideString get svcMoveBody =>- 'CopySync 现在是直接从安装盘里打开的。把它拖进「应用程序」文件夹,推出安装盘,再从「应用程序」里打开,就可以启用后台同步。';+ '隔空贴现在是直接从安装盘里打开的。把它拖进「应用程序」文件夹,推出安装盘,再从「应用程序」里打开,就可以启用后台同步。';@override- String get svcStartTitle => '开始使用 CopySync';+ String get svcStartTitle => '开始使用隔空贴';@overrideString get svcStartBody =>- 'CopySync 会在后台运行一个小进程,用来感知剪贴板的变化,并与你的其他设备保持连接。启用后它随系统登录自动启动,关掉这个窗口也会照常同步。';+ '隔空贴会在后台运行一个小进程,用来感知剪贴板的变化,并与你的其他设备保持连接。启用后它随系统登录自动启动,关掉这个窗口也会照常同步。';@overrideString get svcEnable => '启用后台同步';@@ -816,11 +820,11 @@ class AppLocalizationsZh extends AppLocalizations {@overrideString get svcStaleBodyWin =>- 'CopySync 换了位置,开机自启还指向原来的地方。重新启用一次,让后台进程指向当前这份 CopySync。历史记录与配对关系都会保留。';+ '隔空贴换了位置,开机自启还指向原来的地方。重新启用一次,让后台进程指向当前这份隔空贴。历史记录与配对关系都会保留。';@overrideString get svcStaleBodyMac =>- 'CopySync 换了位置,或者之前用旧版安装脚本装过。重新启用一次,让后台进程指向当前这个 App。历史记录与配对关系都会保留。';+ '隔空贴换了位置,或者之前用旧版安装脚本装过。重新启用一次,让后台进程指向当前这个 App。历史记录与配对关系都会保留。';@overrideString get svcReenable => '重新启用';@@ -833,11 +837,11 @@ class AppLocalizationsZh extends AppLocalizations {@overrideString get svcDevBodyWin =>- '这是开发构建,旁边没有 copysyncd.exe。在源码目录运行 scripts\\build-windows.ps1 构建完整的版本。';+ '这是开发构建,旁边没有 pasteferryd.exe。在源码目录运行 scripts\\build-windows.ps1 构建完整的版本。';@overrideString get svcDevBodyLinux =>- '这是开发构建,旁边没有 copysyncd。在源码目录运行 ./scripts/package-linux.sh 构建完整的版本。';+ '这是开发构建,旁边没有 pasteferryd。在源码目录运行 ./scripts/package-linux.sh 构建完整的版本。';@overrideString get svcDevBodyMac =>@@ -856,6 +860,9 @@ class AppLocalizationsZh extends AppLocalizations {class AppLocalizationsZhHantHk extends AppLocalizationsZh {AppLocalizationsZhHantHk() : super('zh_Hant_HK');+ @override+ String get appName => '隔空貼';+@overrideString get navHistory => '複製記錄';@@ -1057,18 +1064,18 @@ class AppLocalizationsZhHantHk extends AppLocalizationsZh {String get historyCleared => '記錄已清除';@override- String get permDeniedTitle => '已禁止 CopySync 讀取剪貼簿';+ String get permDeniedTitle => '已禁止隔空貼讀取剪貼簿';@override- String get permAskTitle => '允許 CopySync 讀取剪貼簿';+ String get permAskTitle => '允許隔空貼讀取剪貼簿';@overrideString get permDeniedBody =>- '在這部 Mac 上複製的內容不會同步出去。請到系統設定裏把 CopySync Daemon 改為「允許」。';+ '在這部 Mac 上複製的內容不會同步出去。請到系統設定裏把 PasteFerry Daemon 改為「允許」。';@overrideString get permAskBody =>- '否則 macOS 每次都會彈出視窗詢問。請到系統設定裏把 CopySync Daemon 改為「允許」。';+ '否則 macOS 每次都會彈出視窗詢問。請到系統設定裏把 PasteFerry Daemon 改為「允許」。';@overrideString get openSystemSettings => '開啟系統設定';@@ -1193,7 +1200,7 @@ class AppLocalizationsZhHantHk extends AppLocalizationsZh {@overrideString get noDevicesBody =>- '在另一部電腦上開啟 CopySync,用 6 位配對碼把兩部連起來。兩部在同一個網絡裏時,也可以在兩部上都開啟「搜尋附近裝置」,按一下對方。';+ '在另一部電腦上開啟隔空貼,用 6 位配對碼把兩部連起來。兩部在同一個網絡裏時,也可以在兩部上都開啟「搜尋附近裝置」,按一下對方。';@overrideString get pairedDevices => '已配對的裝置';@@ -1261,7 +1268,7 @@ class AppLocalizationsZhHantHk extends AppLocalizationsZh {@overrideString lanBlockedBody(String device) {- return '在「系統設定 → 私隱與保安 → 本地網絡」裏開啟 CopySync Daemon。開啟之前,$device連不上同一網絡裏的裝置。';+ return '在「系統設定 → 私隱與保安 → 本地網絡」裏開啟 PasteFerry Daemon。開啟之前,$device連不上同一網絡裏的裝置。';}@override@@ -1452,7 +1459,7 @@ class AppLocalizationsZhHantHk extends AppLocalizationsZh {@overrideString get macLocalNetworkDesc =>- 'macOS 會詢問一次是否允許 CopySync 連接網絡裏的裝置。如果拒絕過,請到那裏開啟 CopySync Daemon';+ 'macOS 會詢問一次是否允許隔空貼連接網絡裏的裝置。如果拒絕過,請到那裏開啟 PasteFerry Daemon';@overrideString get allowLan => 'Windows 防火牆';@@ -1637,25 +1644,25 @@ class AppLocalizationsZhHantHk extends AppLocalizationsZh {}@override- String get svcExtractTitle => '先解壓縮或安裝 CopySync';+ String get svcExtractTitle => '先解壓縮或安裝隔空貼';@overrideString get svcExtractBody =>- 'CopySync 現在是直接從壓縮檔裏開啟的,關閉之後它所在的臨時資料夾就會被刪除。執行安裝程式,或者把整個資料夾解壓縮出來再開啟,就可以啟用背景同步。';+ '隔空貼現在是直接從壓縮檔裏開啟的,關閉之後它所在的臨時資料夾就會被刪除。執行安裝程式,或者把整個資料夾解壓縮出來再開啟,就可以啟用背景同步。';@override- String get svcMoveTitle => '先把 CopySync 移到「應用程式」';+ String get svcMoveTitle => '先把隔空貼移到「應用程式」';@overrideString get svcMoveBody =>- 'CopySync 現在是直接從磁碟映像裏開啟的。把它拖進「應用程式」資料夾,推出磁碟映像,再從「應用程式」裏開啟,就可以啟用背景同步。';+ '隔空貼現在是直接從磁碟映像裏開啟的。把它拖進「應用程式」資料夾,推出磁碟映像,再從「應用程式」裏開啟,就可以啟用背景同步。';@override- String get svcStartTitle => '開始使用 CopySync';+ String get svcStartTitle => '開始使用隔空貼';@overrideString get svcStartBody =>- 'CopySync 會在背景執行一個小型程序,用來偵測剪貼簿的變化,並與你的其他裝置保持連線。啟用後它會隨系統登入自動啟動,關閉這個視窗也會照常同步。';+ '隔空貼會在背景執行一個小型程序,用來偵測剪貼簿的變化,並與你的其他裝置保持連線。啟用後它會隨系統登入自動啟動,關閉這個視窗也會照常同步。';@overrideString get svcEnable => '啟用背景同步';@@ -1665,11 +1672,11 @@ class AppLocalizationsZhHantHk extends AppLocalizationsZh {@overrideString get svcStaleBodyWin =>- 'CopySync 換了位置,開機自動啟動仍指向原來的位置。重新啟用一次,讓背景程序指向目前這份 CopySync。歷史記錄與配對關係都會保留。';+ '隔空貼換了位置,開機自動啟動仍指向原來的位置。重新啟用一次,讓背景程序指向目前這份隔空貼。歷史記錄與配對關係都會保留。';@overrideString get svcStaleBodyMac =>- 'CopySync 換了位置,或者之前用舊版安裝腳本安裝過。重新啟用一次,讓背景程序指向目前這個 App。歷史記錄與配對關係都會保留。';+ '隔空貼換了位置,或者之前用舊版安裝腳本安裝過。重新啟用一次,讓背景程序指向目前這個 App。歷史記錄與配對關係都會保留。';@overrideString get svcReenable => '重新啟用';@@ -1682,11 +1689,11 @@ class AppLocalizationsZhHantHk extends AppLocalizationsZh {@overrideString get svcDevBodyWin =>- '這是開發版本,旁邊沒有 copysyncd.exe。在原始碼目錄執行 scripts\\build-windows.ps1 建置完整的版本。';+ '這是開發版本,旁邊沒有 pasteferryd.exe。在原始碼目錄執行 scripts\\build-windows.ps1 建置完整的版本。';@overrideString get svcDevBodyLinux =>- '這是開發版本,旁邊沒有 copysyncd。在原始碼目錄執行 ./scripts/package-linux.sh 建置完整的版本。';+ '這是開發版本,旁邊沒有 pasteferryd。在原始碼目錄執行 ./scripts/package-linux.sh 建置完整的版本。';@overrideString get svcDevBodyMac =>@@ -1705,6 +1712,9 @@ class AppLocalizationsZhHantHk extends AppLocalizationsZh {class AppLocalizationsZhHantTw extends AppLocalizationsZh {AppLocalizationsZhHantTw() : super('zh_Hant_TW');+ @override+ String get appName => '隔空貼';+@overrideString get navHistory => '複製記錄';@@ -1906,18 +1916,18 @@ class AppLocalizationsZhHantTw extends AppLocalizationsZh {String get historyCleared => '記錄已清空';@override- String get permDeniedTitle => '已禁止 CopySync 讀取剪貼簿';+ String get permDeniedTitle => '已禁止隔空貼讀取剪貼簿';@override- String get permAskTitle => '允許 CopySync 讀取剪貼簿';+ String get permAskTitle => '允許隔空貼讀取剪貼簿';@overrideString get permDeniedBody =>- '在這台 Mac 上複製的內容不會同步出去。請到系統設定裡把 CopySync Daemon 改為「允許」。';+ '在這台 Mac 上複製的內容不會同步出去。請到系統設定裡把 PasteFerry Daemon 改為「允許」。';@overrideString get permAskBody =>- '否則 macOS 每次都會跳出視窗詢問。請到系統設定裡把 CopySync Daemon 改為「允許」。';+ '否則 macOS 每次都會跳出視窗詢問。請到系統設定裡把 PasteFerry Daemon 改為「允許」。';@overrideString get openSystemSettings => '打開系統設定';@@ -2042,7 +2052,7 @@ class AppLocalizationsZhHantTw extends AppLocalizationsZh {@overrideString get noDevicesBody =>- '在另一台電腦上打開 CopySync,用 6 碼配對碼把兩台連起來。兩台在同一個網路裡時,也可以在兩台上都打開「搜尋附近裝置」,點一下對方。';+ '在另一台電腦上打開隔空貼,用 6 碼配對碼把兩台連起來。兩台在同一個網路裡時,也可以在兩台上都打開「搜尋附近裝置」,點一下對方。';@overrideString get pairedDevices => '已配對的裝置';@@ -2110,7 +2120,7 @@ class AppLocalizationsZhHantTw extends AppLocalizationsZh {@overrideString lanBlockedBody(String device) {- return '在「系統設定 → 隱私權與安全性 → 本機網路」裡開啟 CopySync Daemon。開啟之前,$device連不上同一個網路裡的裝置。';+ return '在「系統設定 → 隱私權與安全性 → 本機網路」裡開啟 PasteFerry Daemon。開啟之前,$device連不上同一個網路裡的裝置。';}@override@@ -2301,7 +2311,7 @@ class AppLocalizationsZhHantTw extends AppLocalizationsZh {@overrideString get macLocalNetworkDesc =>- 'macOS 會詢問一次是否允許 CopySync 連線到網路裡的裝置。拒絕過的話,到那裡開啟 CopySync Daemon';+ 'macOS 會詢問一次是否允許隔空貼連線到網路裡的裝置。拒絕過的話,到那裡開啟 PasteFerry Daemon';@overrideString get allowLan => 'Windows 防火牆';@@ -2486,25 +2496,25 @@ class AppLocalizationsZhHantTw extends AppLocalizationsZh {}@override- String get svcExtractTitle => '先解壓縮或安裝 CopySync';+ String get svcExtractTitle => '先解壓縮或安裝隔空貼';@overrideString get svcExtractBody =>- 'CopySync 現在是直接從壓縮檔裡打開的,關掉之後它所在的暫存資料夾就會被刪除。執行安裝程式,或者把整個資料夾解壓縮出來再打開,就可以啟用背景同步。';+ '隔空貼現在是直接從壓縮檔裡打開的,關掉之後它所在的暫存資料夾就會被刪除。執行安裝程式,或者把整個資料夾解壓縮出來再打開,就可以啟用背景同步。';@override- String get svcMoveTitle => '先把 CopySync 移到「應用程式」';+ String get svcMoveTitle => '先把隔空貼移到「應用程式」';@overrideString get svcMoveBody =>- 'CopySync 現在是直接從磁碟映像檔裡打開的。把它拖進「應用程式」資料夾,退出磁碟映像檔,再從「應用程式」裡打開,就可以啟用背景同步。';+ '隔空貼現在是直接從磁碟映像檔裡打開的。把它拖進「應用程式」資料夾,退出磁碟映像檔,再從「應用程式」裡打開,就可以啟用背景同步。';@override- String get svcStartTitle => '開始使用 CopySync';+ String get svcStartTitle => '開始使用隔空貼';@overrideString get svcStartBody =>- 'CopySync 會在背景執行一個小程式,用來偵測剪貼簿的變化,並與你的其他裝置保持連線。啟用後它會隨系統登入自動啟動,關掉這個視窗也會照常同步。';+ '隔空貼會在背景執行一個小程式,用來偵測剪貼簿的變化,並與你的其他裝置保持連線。啟用後它會隨系統登入自動啟動,關掉這個視窗也會照常同步。';@overrideString get svcEnable => '啟用背景同步';@@ -2514,11 +2524,11 @@ class AppLocalizationsZhHantTw extends AppLocalizationsZh {@overrideString get svcStaleBodyWin =>- 'CopySync 換了位置,開機自動啟動還指向原來的地方。重新啟用一次,讓背景程序指向目前這份 CopySync。歷史記錄與配對關係都會保留。';+ '隔空貼換了位置,開機自動啟動還指向原來的地方。重新啟用一次,讓背景程序指向目前這份隔空貼。歷史記錄與配對關係都會保留。';@overrideString get svcStaleBodyMac =>- 'CopySync 換了位置,或者之前用舊版安裝腳本裝過。重新啟用一次,讓背景程序指向目前這個 App。歷史記錄與配對關係都會保留。';+ '隔空貼換了位置,或者之前用舊版安裝腳本裝過。重新啟用一次,讓背景程序指向目前這個 App。歷史記錄與配對關係都會保留。';@overrideString get svcReenable => '重新啟用';@@ -2531,11 +2541,11 @@ class AppLocalizationsZhHantTw extends AppLocalizationsZh {@overrideString get svcDevBodyWin =>- '這是開發版本,旁邊沒有 copysyncd.exe。在原始碼資料夾執行 scripts\\build-windows.ps1 建置完整的版本。';+ '這是開發版本,旁邊沒有 pasteferryd.exe。在原始碼資料夾執行 scripts\\build-windows.ps1 建置完整的版本。';@overrideString get svcDevBodyLinux =>- '這是開發版本,旁邊沒有 copysyncd。在原始碼資料夾執行 ./scripts/package-linux.sh 建置完整的版本。';+ '這是開發版本,旁邊沒有 pasteferryd。在原始碼資料夾執行 ./scripts/package-linux.sh 建置完整的版本。';@overrideString get svcDevBodyMac =>diff --git a/ui/lib/l10n/app_zh.arb b/ui/lib/l10n/app_zh.arbindex 57815b3..5990ff6 100644--- a/ui/lib/l10n/app_zh.arb+++ b/ui/lib/l10n/app_zh.arb@@ -1,5 +1,6 @@{"@@locale": "zh",+ "appName": "隔空贴","navHistory": "复制记录","navDevices": "设备","navSettings": "设置",@@ -56,10 +57,10 @@"clearConfirmBody": "所有设备上同步来的记录和已缓存的文件都会从{device}上删除。原始文件不受影响。","clear": "清空","historyCleared": "记录已清空",- "permDeniedTitle": "已禁止 CopySync 读取剪贴板",- "permAskTitle": "允许 CopySync 读取剪贴板",- "permDeniedBody": "在这台 Mac 上复制的内容不会同步出去。到系统设置里把 CopySync Daemon 改为「允许」。",- "permAskBody": "否则 macOS 每次都会弹窗询问。到系统设置里把 CopySync Daemon 改为「允许」。",+ "permDeniedTitle": "已禁止隔空贴读取剪贴板",+ "permAskTitle": "允许隔空贴读取剪贴板",+ "permDeniedBody": "在这台 Mac 上复制的内容不会同步出去。到系统设置里把 PasteFerry Daemon 改为「允许」。",+ "permAskBody": "否则 macOS 每次都会弹窗询问。到系统设置里把 PasteFerry Daemon 改为「允许」。","openSystemSettings": "打开系统设置","fetch": "拉取到本机","fetchStarted": "开始拉取",@@ -97,7 +98,7 @@"addDevice": "添加设备","thisDeviceFootnote": "配对时,{both}会显示同样的两行安全指纹:这台的和对方的。逐字核对一致才能确认。","noDevicesTitle": "还没有配对的设备",- "noDevicesBody": "在另一台电脑上打开 CopySync,用 6 位配对码把两台连起来。两台在同一个网络里时,也可以在两台上都打开「搜索附近设备」,点一下对方。",+ "noDevicesBody": "在另一台电脑上打开隔空贴,用 6 位配对码把两台连起来。两台在同一个网络里时,也可以在两台上都打开「搜索附近设备」,点一下对方。","pairedDevices": "已配对的设备","pairedFootnote": "直连:数据在两台设备之间直接传输。中转:网络环境打不通直连时,经你的服务器转发,内容依然是端到端加密的。","offline": "离线",@@ -117,7 +118,7 @@"setAddressBody": "两台不在同一网段、或者都换了地址时用。输入「{name}」上「添加设备 → 生成配对码」下面显示的地址。","addressSaved": "已记下,正在那个地址上找它","lanBlockedTitle": "macOS 阻止了局域网访问",- "lanBlockedBody": "在「系统设置 → 隐私与安全性 → 本地网络」里打开 CopySync Daemon。打开之前,{device}连不上同一网络里的设备。",+ "lanBlockedBody": "在「系统设置 → 隐私与安全性 → 本地网络」里打开 PasteFerry Daemon。打开之前,{device}连不上同一网络里的设备。","searchNearby": "搜索附近设备","nearbyTitle": "附近的设备","nearbySearching": "正在查找附近的设备…",@@ -175,7 +176,7 @@"lanDiscovery": "在局域网中查找设备","lanDiscoveryDesc": "不用服务器就能配对和同步。网络里的其他人只能看到一个每天都变的匿名标识;打开「搜索附近设备」期间才看得到设备名","macLocalNetwork": "本地网络权限",- "macLocalNetworkDesc": "macOS 会问一次是否允许 CopySync 连接网络里的设备。拒绝过的话,到那里打开 CopySync Daemon",+ "macLocalNetworkDesc": "macOS 会问一次是否允许隔空贴连接网络里的设备。拒绝过的话,到那里打开 PasteFerry Daemon","allowLan": "Windows 防火墙","allowLanDesc": "其他设备连不上这台时放行,比如从别的网段配对。会请求一次管理员权限","allow": "放行",@@ -233,21 +234,21 @@"diagNewIssue": "在 GitHub 上提问题","diagIssueHint": "报告已拷贝,粘贴到问题里的「诊断报告」一栏","diagFailed": "生成报告失败:{detail}",- "svcExtractTitle": "先解压或安装 CopySync",- "svcExtractBody": "CopySync 现在是直接从压缩包里打开的,关掉之后它所在的临时文件夹就会被删除。运行安装程序,或者把整个文件夹解压出来再打开,就可以启用后台同步。",- "svcMoveTitle": "先把 CopySync 移到「应用程序」",- "svcMoveBody": "CopySync 现在是直接从安装盘里打开的。把它拖进「应用程序」文件夹,推出安装盘,再从「应用程序」里打开,就可以启用后台同步。",- "svcStartTitle": "开始使用 CopySync",- "svcStartBody": "CopySync 会在后台运行一个小进程,用来感知剪贴板的变化,并与你的其他设备保持连接。启用后它随系统登录自动启动,关掉这个窗口也会照常同步。",+ "svcExtractTitle": "先解压或安装隔空贴",+ "svcExtractBody": "隔空贴现在是直接从压缩包里打开的,关掉之后它所在的临时文件夹就会被删除。运行安装程序,或者把整个文件夹解压出来再打开,就可以启用后台同步。",+ "svcMoveTitle": "先把隔空贴移到「应用程序」",+ "svcMoveBody": "隔空贴现在是直接从安装盘里打开的。把它拖进「应用程序」文件夹,推出安装盘,再从「应用程序」里打开,就可以启用后台同步。",+ "svcStartTitle": "开始使用隔空贴",+ "svcStartBody": "隔空贴会在后台运行一个小进程,用来感知剪贴板的变化,并与你的其他设备保持连接。启用后它随系统登录自动启动,关掉这个窗口也会照常同步。","svcEnable": "启用后台同步","svcStaleTitle": "重新启用后台同步",- "svcStaleBodyWin": "CopySync 换了位置,开机自启还指向原来的地方。重新启用一次,让后台进程指向当前这份 CopySync。历史记录与配对关系都会保留。",- "svcStaleBodyMac": "CopySync 换了位置,或者之前用旧版安装脚本装过。重新启用一次,让后台进程指向当前这个 App。历史记录与配对关系都会保留。",+ "svcStaleBodyWin": "隔空贴换了位置,开机自启还指向原来的地方。重新启用一次,让后台进程指向当前这份隔空贴。历史记录与配对关系都会保留。",+ "svcStaleBodyMac": "隔空贴换了位置,或者之前用旧版安装脚本装过。重新启用一次,让后台进程指向当前这个 App。历史记录与配对关系都会保留。","svcReenable": "重新启用","svcStoppedTitle": "后台服务没有运行","svcStoppedBody": "它可能刚刚退出,系统通常会在几秒内把它重新拉起。如果一直停在这一页,点下面的按钮重新启动。",- "svcDevBodyWin": "这是开发构建,旁边没有 copysyncd.exe。在源码目录运行 scripts\\build-windows.ps1 构建完整的版本。",- "svcDevBodyLinux": "这是开发构建,旁边没有 copysyncd。在源码目录运行 ./scripts/package-linux.sh 构建完整的版本。",+ "svcDevBodyWin": "这是开发构建,旁边没有 pasteferryd.exe。在源码目录运行 scripts\\build-windows.ps1 构建完整的版本。",+ "svcDevBodyLinux": "这是开发构建,旁边没有 pasteferryd。在源码目录运行 ./scripts/package-linux.sh 构建完整的版本。","svcDevBodyMac": "这是开发构建,App 里没有内置后台服务。在源码目录运行 ./scripts/install-macos.sh 安装它。","svcLogPath": "运行日志:{path}","svcCanDisable": "随时可以在「设置」中停用后台同步。"diff --git a/ui/lib/l10n/app_zh_Hant_HK.arb b/ui/lib/l10n/app_zh_Hant_HK.arbindex d0a92d2..2eb8f82 100644--- a/ui/lib/l10n/app_zh_Hant_HK.arb+++ b/ui/lib/l10n/app_zh_Hant_HK.arb@@ -1,5 +1,6 @@{"@@locale": "zh_Hant_HK",+ "appName": "隔空貼","navHistory": "複製記錄","navDevices": "裝置","navSettings": "設定",@@ -56,10 +57,10 @@"clearConfirmBody": "所有裝置同步過來的記錄和已快取的檔案都會從{device}上刪除。原始檔案不受影響。","clear": "清除","historyCleared": "記錄已清除",- "permDeniedTitle": "已禁止 CopySync 讀取剪貼簿",- "permAskTitle": "允許 CopySync 讀取剪貼簿",- "permDeniedBody": "在這部 Mac 上複製的內容不會同步出去。請到系統設定裏把 CopySync Daemon 改為「允許」。",- "permAskBody": "否則 macOS 每次都會彈出視窗詢問。請到系統設定裏把 CopySync Daemon 改為「允許」。",+ "permDeniedTitle": "已禁止隔空貼讀取剪貼簿",+ "permAskTitle": "允許隔空貼讀取剪貼簿",+ "permDeniedBody": "在這部 Mac 上複製的內容不會同步出去。請到系統設定裏把 PasteFerry Daemon 改為「允許」。",+ "permAskBody": "否則 macOS 每次都會彈出視窗詢問。請到系統設定裏把 PasteFerry Daemon 改為「允許」。","openSystemSettings": "開啟系統設定","fetch": "拉取到本機","fetchStarted": "開始拉取",@@ -97,7 +98,7 @@"addDevice": "新增裝置","thisDeviceFootnote": "配對時,{both}會顯示同樣的兩行安全指紋:這部的和對方的。逐字核對一致才可確認。","noDevicesTitle": "仍未有已配對的裝置",- "noDevicesBody": "在另一部電腦上開啟 CopySync,用 6 位配對碼把兩部連起來。兩部在同一個網絡裏時,也可以在兩部上都開啟「搜尋附近裝置」,按一下對方。",+ "noDevicesBody": "在另一部電腦上開啟隔空貼,用 6 位配對碼把兩部連起來。兩部在同一個網絡裏時,也可以在兩部上都開啟「搜尋附近裝置」,按一下對方。","pairedDevices": "已配對的裝置","pairedFootnote": "直連:資料在兩部裝置之間直接傳輸。中轉:網絡環境打不通直連時,經你的伺服器轉發,內容依然是端對端加密的。","offline": "離線",@@ -117,7 +118,7 @@"setAddressBody": "兩部不在同一網段,或者都換了地址時使用。輸入「{name}」上「新增裝置 → 產生配對碼」下面顯示的地址。","addressSaved": "已記下,正在那個地址上尋找它","lanBlockedTitle": "macOS 阻擋了區域網絡存取",- "lanBlockedBody": "在「系統設定 → 私隱與保安 → 本地網絡」裏開啟 CopySync Daemon。開啟之前,{device}連不上同一網絡裏的裝置。",+ "lanBlockedBody": "在「系統設定 → 私隱與保安 → 本地網絡」裏開啟 PasteFerry Daemon。開啟之前,{device}連不上同一網絡裏的裝置。","searchNearby": "搜尋附近裝置","nearbyTitle": "附近的裝置","nearbySearching": "正在尋找附近的裝置…",@@ -175,7 +176,7 @@"lanDiscovery": "在區域網絡中尋找裝置","lanDiscoveryDesc": "不用伺服器就能配對和同步。網絡裏的其他人只能看到一個每天都會改變的匿名標識;開啟「搜尋附近裝置」期間才看得到裝置名稱","macLocalNetwork": "本地網絡權限",- "macLocalNetworkDesc": "macOS 會詢問一次是否允許 CopySync 連接網絡裏的裝置。如果拒絕過,請到那裏開啟 CopySync Daemon",+ "macLocalNetworkDesc": "macOS 會詢問一次是否允許隔空貼連接網絡裏的裝置。如果拒絕過,請到那裏開啟 PasteFerry Daemon","allowLan": "Windows 防火牆","allowLanDesc": "其他裝置連不上這部電腦時允許連線,例如從別的網段配對。會要求一次管理員權限","allow": "允許",@@ -233,21 +234,21 @@"diagNewIssue": "在 GitHub 上回報","diagIssueHint": "報告已拷貝,貼到問題裏的「診斷報告」一欄","diagFailed": "產生報告失敗:{detail}",- "svcExtractTitle": "先解壓縮或安裝 CopySync",- "svcExtractBody": "CopySync 現在是直接從壓縮檔裏開啟的,關閉之後它所在的臨時資料夾就會被刪除。執行安裝程式,或者把整個資料夾解壓縮出來再開啟,就可以啟用背景同步。",- "svcMoveTitle": "先把 CopySync 移到「應用程式」",- "svcMoveBody": "CopySync 現在是直接從磁碟映像裏開啟的。把它拖進「應用程式」資料夾,推出磁碟映像,再從「應用程式」裏開啟,就可以啟用背景同步。",- "svcStartTitle": "開始使用 CopySync",- "svcStartBody": "CopySync 會在背景執行一個小型程序,用來偵測剪貼簿的變化,並與你的其他裝置保持連線。啟用後它會隨系統登入自動啟動,關閉這個視窗也會照常同步。",+ "svcExtractTitle": "先解壓縮或安裝隔空貼",+ "svcExtractBody": "隔空貼現在是直接從壓縮檔裏開啟的,關閉之後它所在的臨時資料夾就會被刪除。執行安裝程式,或者把整個資料夾解壓縮出來再開啟,就可以啟用背景同步。",+ "svcMoveTitle": "先把隔空貼移到「應用程式」",+ "svcMoveBody": "隔空貼現在是直接從磁碟映像裏開啟的。把它拖進「應用程式」資料夾,推出磁碟映像,再從「應用程式」裏開啟,就可以啟用背景同步。",+ "svcStartTitle": "開始使用隔空貼",+ "svcStartBody": "隔空貼會在背景執行一個小型程序,用來偵測剪貼簿的變化,並與你的其他裝置保持連線。啟用後它會隨系統登入自動啟動,關閉這個視窗也會照常同步。","svcEnable": "啟用背景同步","svcStaleTitle": "重新啟用背景同步",- "svcStaleBodyWin": "CopySync 換了位置,開機自動啟動仍指向原來的位置。重新啟用一次,讓背景程序指向目前這份 CopySync。歷史記錄與配對關係都會保留。",- "svcStaleBodyMac": "CopySync 換了位置,或者之前用舊版安裝腳本安裝過。重新啟用一次,讓背景程序指向目前這個 App。歷史記錄與配對關係都會保留。",+ "svcStaleBodyWin": "隔空貼換了位置,開機自動啟動仍指向原來的位置。重新啟用一次,讓背景程序指向目前這份隔空貼。歷史記錄與配對關係都會保留。",+ "svcStaleBodyMac": "隔空貼換了位置,或者之前用舊版安裝腳本安裝過。重新啟用一次,讓背景程序指向目前這個 App。歷史記錄與配對關係都會保留。","svcReenable": "重新啟用","svcStoppedTitle": "背景服務沒有執行","svcStoppedBody": "它可能剛剛結束,系統通常會在幾秒內重新啟動它。如果一直停留在這一頁,請按下面的按鈕重新啟動。",- "svcDevBodyWin": "這是開發版本,旁邊沒有 copysyncd.exe。在原始碼目錄執行 scripts\\build-windows.ps1 建置完整的版本。",- "svcDevBodyLinux": "這是開發版本,旁邊沒有 copysyncd。在原始碼目錄執行 ./scripts/package-linux.sh 建置完整的版本。",+ "svcDevBodyWin": "這是開發版本,旁邊沒有 pasteferryd.exe。在原始碼目錄執行 scripts\\build-windows.ps1 建置完整的版本。",+ "svcDevBodyLinux": "這是開發版本,旁邊沒有 pasteferryd。在原始碼目錄執行 ./scripts/package-linux.sh 建置完整的版本。","svcDevBodyMac": "這是開發版本,App 裏沒有內建背景服務。在原始碼目錄執行 ./scripts/install-macos.sh 安裝它。","svcLogPath": "執行日誌:{path}","svcCanDisable": "隨時可以在「設定」中停用背景同步。"diff --git a/ui/lib/l10n/app_zh_Hant_TW.arb b/ui/lib/l10n/app_zh_Hant_TW.arbindex d1d4fa7..81c38e2 100644--- a/ui/lib/l10n/app_zh_Hant_TW.arb+++ b/ui/lib/l10n/app_zh_Hant_TW.arb@@ -1,5 +1,6 @@{"@@locale": "zh_Hant_TW",+ "appName": "隔空貼","navHistory": "複製記錄","navDevices": "裝置","navSettings": "設定",@@ -56,10 +57,10 @@"clearConfirmBody": "從所有裝置同步過來的記錄和已快取的檔案,都會從{device}上刪除。原始檔案不受影響。","clear": "清空","historyCleared": "記錄已清空",- "permDeniedTitle": "已禁止 CopySync 讀取剪貼簿",- "permAskTitle": "允許 CopySync 讀取剪貼簿",- "permDeniedBody": "在這台 Mac 上複製的內容不會同步出去。請到系統設定裡把 CopySync Daemon 改為「允許」。",- "permAskBody": "否則 macOS 每次都會跳出視窗詢問。請到系統設定裡把 CopySync Daemon 改為「允許」。",+ "permDeniedTitle": "已禁止隔空貼讀取剪貼簿",+ "permAskTitle": "允許隔空貼讀取剪貼簿",+ "permDeniedBody": "在這台 Mac 上複製的內容不會同步出去。請到系統設定裡把 PasteFerry Daemon 改為「允許」。",+ "permAskBody": "否則 macOS 每次都會跳出視窗詢問。請到系統設定裡把 PasteFerry Daemon 改為「允許」。","openSystemSettings": "打開系統設定","fetch": "拉取到本機","fetchStarted": "開始拉取",@@ -97,7 +98,7 @@"addDevice": "新增裝置","thisDeviceFootnote": "配對時,{both}會顯示同樣的兩行安全指紋:這台的和對方的。逐字核對一致才能確認。","noDevicesTitle": "還沒有配對的裝置",- "noDevicesBody": "在另一台電腦上打開 CopySync,用 6 碼配對碼把兩台連起來。兩台在同一個網路裡時,也可以在兩台上都打開「搜尋附近裝置」,點一下對方。",+ "noDevicesBody": "在另一台電腦上打開隔空貼,用 6 碼配對碼把兩台連起來。兩台在同一個網路裡時,也可以在兩台上都打開「搜尋附近裝置」,點一下對方。","pairedDevices": "已配對的裝置","pairedFootnote": "直連:資料在兩台裝置之間直接傳輸。中繼:網路環境打不通直連時,經你的伺服器轉送,內容依然是端對端加密的。","offline": "離線",@@ -117,7 +118,7 @@"setAddressBody": "兩台不在同一網段、或都換了位址時使用。輸入「{name}」上「新增裝置 → 產生配對碼」下方顯示的位址。","addressSaved": "已記下,正在那個位址上尋找它","lanBlockedTitle": "macOS 阻擋了區域網路存取",- "lanBlockedBody": "在「系統設定 → 隱私權與安全性 → 本機網路」裡開啟 CopySync Daemon。開啟之前,{device}連不上同一個網路裡的裝置。",+ "lanBlockedBody": "在「系統設定 → 隱私權與安全性 → 本機網路」裡開啟 PasteFerry Daemon。開啟之前,{device}連不上同一個網路裡的裝置。","searchNearby": "搜尋附近裝置","nearbyTitle": "附近的裝置","nearbySearching": "正在尋找附近的裝置…",@@ -175,7 +176,7 @@"lanDiscovery": "在區域網路中尋找裝置","lanDiscoveryDesc": "不用伺服器就能配對和同步。網路裡的其他人只能看到一個每天都會變的匿名識別碼;打開「搜尋附近裝置」期間才看得到裝置名稱","macLocalNetwork": "本機網路權限",- "macLocalNetworkDesc": "macOS 會詢問一次是否允許 CopySync 連線到網路裡的裝置。拒絕過的話,到那裡開啟 CopySync Daemon",+ "macLocalNetworkDesc": "macOS 會詢問一次是否允許隔空貼連線到網路裡的裝置。拒絕過的話,到那裡開啟 PasteFerry Daemon","allowLan": "Windows 防火牆","allowLanDesc": "其他裝置連不上這台時允許連入,例如從別的網段配對。會要求一次系統管理員權限","allow": "允許",@@ -233,21 +234,21 @@"diagNewIssue": "在 GitHub 上回報","diagIssueHint": "報告已複製,貼到問題裡的「診斷報告」一欄","diagFailed": "產生報告失敗:{detail}",- "svcExtractTitle": "先解壓縮或安裝 CopySync",- "svcExtractBody": "CopySync 現在是直接從壓縮檔裡打開的,關掉之後它所在的暫存資料夾就會被刪除。執行安裝程式,或者把整個資料夾解壓縮出來再打開,就可以啟用背景同步。",- "svcMoveTitle": "先把 CopySync 移到「應用程式」",- "svcMoveBody": "CopySync 現在是直接從磁碟映像檔裡打開的。把它拖進「應用程式」資料夾,退出磁碟映像檔,再從「應用程式」裡打開,就可以啟用背景同步。",- "svcStartTitle": "開始使用 CopySync",- "svcStartBody": "CopySync 會在背景執行一個小程式,用來偵測剪貼簿的變化,並與你的其他裝置保持連線。啟用後它會隨系統登入自動啟動,關掉這個視窗也會照常同步。",+ "svcExtractTitle": "先解壓縮或安裝隔空貼",+ "svcExtractBody": "隔空貼現在是直接從壓縮檔裡打開的,關掉之後它所在的暫存資料夾就會被刪除。執行安裝程式,或者把整個資料夾解壓縮出來再打開,就可以啟用背景同步。",+ "svcMoveTitle": "先把隔空貼移到「應用程式」",+ "svcMoveBody": "隔空貼現在是直接從磁碟映像檔裡打開的。把它拖進「應用程式」資料夾,退出磁碟映像檔,再從「應用程式」裡打開,就可以啟用背景同步。",+ "svcStartTitle": "開始使用隔空貼",+ "svcStartBody": "隔空貼會在背景執行一個小程式,用來偵測剪貼簿的變化,並與你的其他裝置保持連線。啟用後它會隨系統登入自動啟動,關掉這個視窗也會照常同步。","svcEnable": "啟用背景同步","svcStaleTitle": "重新啟用背景同步",- "svcStaleBodyWin": "CopySync 換了位置,開機自動啟動還指向原來的地方。重新啟用一次,讓背景程序指向目前這份 CopySync。歷史記錄與配對關係都會保留。",- "svcStaleBodyMac": "CopySync 換了位置,或者之前用舊版安裝腳本裝過。重新啟用一次,讓背景程序指向目前這個 App。歷史記錄與配對關係都會保留。",+ "svcStaleBodyWin": "隔空貼換了位置,開機自動啟動還指向原來的地方。重新啟用一次,讓背景程序指向目前這份隔空貼。歷史記錄與配對關係都會保留。",+ "svcStaleBodyMac": "隔空貼換了位置,或者之前用舊版安裝腳本裝過。重新啟用一次,讓背景程序指向目前這個 App。歷史記錄與配對關係都會保留。","svcReenable": "重新啟用","svcStoppedTitle": "背景服務沒有在執行","svcStoppedBody": "它可能剛剛結束,系統通常會在幾秒內把它重新啟動。如果一直停在這一頁,請點下面的按鈕重新啟動。",- "svcDevBodyWin": "這是開發版本,旁邊沒有 copysyncd.exe。在原始碼資料夾執行 scripts\\build-windows.ps1 建置完整的版本。",- "svcDevBodyLinux": "這是開發版本,旁邊沒有 copysyncd。在原始碼資料夾執行 ./scripts/package-linux.sh 建置完整的版本。",+ "svcDevBodyWin": "這是開發版本,旁邊沒有 pasteferryd.exe。在原始碼資料夾執行 scripts\\build-windows.ps1 建置完整的版本。",+ "svcDevBodyLinux": "這是開發版本,旁邊沒有 pasteferryd。在原始碼資料夾執行 ./scripts/package-linux.sh 建置完整的版本。","svcDevBodyMac": "這是開發版本,App 裡沒有內建背景服務。在原始碼資料夾執行 ./scripts/install-macos.sh 安裝它。","svcLogPath": "記錄檔:{path}","svcCanDisable": "隨時可以在「設定」中停用背景同步。"diff --git a/ui/lib/main.dart b/ui/lib/main.dartindex 9bafc0a..f7ac583 100644--- a/ui/lib/main.dart+++ b/ui/lib/main.dart@@ -14,19 +14,19 @@ import 'widgets/common.dart';import 'widgets/pairing_dialog.dart';import 'icons.dart';-void main() => runApp(const CopySyncApp());+void main() => runApp(const PasteFerryApp());-class CopySyncApp extends StatefulWidget {- const CopySyncApp({super.key, this.state});+class PasteFerryApp extends StatefulWidget {+ const PasteFerryApp({super.key, this.state});/// 测试与截图用:注入预先填好数据的状态,不去连真实的后台服务。final AppState? state;@override- State<CopySyncApp> createState() => _CopySyncAppState();+ State<PasteFerryApp> createState() => _PasteFerryAppState();}-class _CopySyncAppState extends State<CopySyncApp> {+class _PasteFerryAppState extends State<PasteFerryApp> {late final AppState _state;/// 按界面语言缓存的浅色、深色主题:Windows 上中文和日文的汉字用不同的字体@@ -65,7 +65,7 @@ class _CopySyncAppState extends State<CopySyncApp> {buildTheme(Brightness.dark, language: language),));return MaterialApp(- title: 'CopySync',+ title: 'PasteFerry',debugShowCheckedModeBanner: false,theme: light,darkTheme: dark,@@ -191,7 +191,7 @@ class _Sidebar extends StatelessWidget {children: [const AppMark(size: 22),const SizedBox(width: Insets.sm),- Text('CopySync', style: context.text.titleSmall),+ Text(l.appName, style: context.text.titleSmall),],),),diff --git a/ui/lib/pages/devices_page.dart b/ui/lib/pages/devices_page.dartindex 0daf1cf..e403832 100644--- a/ui/lib/pages/devices_page.dart+++ b/ui/lib/pages/devices_page.dart@@ -2,7 +2,7 @@ import 'package:flutter/material.dart';import 'package:flutter/services.dart';import '../app_state.dart';-import '../gen/copysync/v1/daemon.pb.dart';+import '../gen/pasteferry/v1/daemon.pb.dart';import '../i18n.dart';import '../main.dart';import '../theme.dart';diff --git a/ui/lib/pages/history_page.dart b/ui/lib/pages/history_page.dartindex 161aa3c..92ea4c3 100644--- a/ui/lib/pages/history_page.dart+++ b/ui/lib/pages/history_page.dart@@ -4,7 +4,7 @@ import 'package:flutter/material.dart';import 'package:flutter/services.dart';import '../app_state.dart';-import '../gen/copysync/v1/daemon.pb.dart';+import '../gen/pasteferry/v1/daemon.pb.dart';import '../i18n.dart';import '../main.dart';import '../theme.dart';diff --git a/ui/lib/pages/settings_page.dart b/ui/lib/pages/settings_page.dartindex 756ea39..9a965e3 100644--- a/ui/lib/pages/settings_page.dart+++ b/ui/lib/pages/settings_page.dart@@ -5,7 +5,7 @@ import 'package:fixnum/fixnum.dart';import 'package:flutter/material.dart';import '../app_state.dart';-import '../gen/copysync/v1/daemon.pb.dart';+import '../gen/pasteferry/v1/daemon.pb.dart';import '../i18n.dart';import '../main.dart';import '../theme.dart';@@ -297,7 +297,7 @@ class _SettingsPageState extends State<SettingsPage> {title: l.about,child: GroupBox(children: [SettingRow(- title: 'CopySync ${state.status?.version ?? ''}',+ title: '${l.appName} ${state.status?.version ?? ''}',description: l.aboutDesc,child: Row(mainAxisSize: MainAxisSize.min,diff --git a/ui/lib/theme.dart b/ui/lib/theme.dartindex 8e5707a..a7fe08e 100644--- a/ui/lib/theme.dart+++ b/ui/lib/theme.dart@@ -2,7 +2,7 @@ import 'dart:io';import 'package:flutter/material.dart';-/// CopySync 的设计系统。+/// PasteFerry 的设计系统。////// 这是一个常驻后台的系统工具,界面要像 macOS 自带的应用一样安静:/// 大面积中性的石墨灰,强调色只出现在按钮、选中态和链接上。diff --git a/ui/lib/widgets/feedback_dialog.dart b/ui/lib/widgets/feedback_dialog.dartindex 9b422e5..9c9a266 100644--- a/ui/lib/widgets/feedback_dialog.dart+++ b/ui/lib/widgets/feedback_dialog.dart@@ -71,7 +71,7 @@ class _FeedbackDialogState extends State<FeedbackDialog> {final report = await AppScope.read(context).exportDiagnostics(logLines: 1000);final now = DateTime.now();String two(int n) => n.toString().padLeft(2, '0');- final name = 'CopySync-diagnostics-${now.year}${two(now.month)}${two(now.day)}'+ final name = 'PasteFerry-diagnostics-${now.year}${two(now.month)}${two(now.day)}''-${two(now.hour)}${two(now.minute)}.txt';final file = File('${downloadsDir()}${Platform.pathSeparator}$name');await file.parent.create(recursive: true);diff --git a/ui/lib/widgets/image_preview_dialog.dart b/ui/lib/widgets/image_preview_dialog.dartindex bd920ad..86e56d1 100644--- a/ui/lib/widgets/image_preview_dialog.dart+++ b/ui/lib/widgets/image_preview_dialog.dart@@ -4,7 +4,7 @@ import 'package:flutter/material.dart';import 'package:flutter/services.dart';import '../app_state.dart';-import '../gen/copysync/v1/daemon.pb.dart';+import '../gen/pasteferry/v1/daemon.pb.dart';import '../i18n.dart';import '../icons.dart';import '../main.dart';diff --git a/ui/lib/widgets/nearby_dialog.dart b/ui/lib/widgets/nearby_dialog.dartindex b7f66f5..a84d780 100644--- a/ui/lib/widgets/nearby_dialog.dart+++ b/ui/lib/widgets/nearby_dialog.dart@@ -5,7 +5,7 @@ import 'dart:math' as math;import 'package:flutter/material.dart';import '../app_state.dart';-import '../gen/copysync/v1/daemon.pb.dart';+import '../gen/pasteferry/v1/daemon.pb.dart';import '../i18n.dart';import '../icons.dart';import '../main.dart';diff --git a/ui/lib/widgets/pairing_dialog.dart b/ui/lib/widgets/pairing_dialog.dartindex c38781e..ae573bb 100644--- a/ui/lib/widgets/pairing_dialog.dart+++ b/ui/lib/widgets/pairing_dialog.dart@@ -2,7 +2,7 @@ import 'package:flutter/material.dart';import 'package:flutter/services.dart';import '../app_state.dart';-import '../gen/copysync/v1/daemon.pb.dart';+import '../gen/pasteferry/v1/daemon.pb.dart';import '../i18n.dart';import '../main.dart';import '../theme.dart';diff --git a/ui/linux/CMakeLists.txt b/ui/linux/CMakeLists.txtindex 16573c9..b2f6ed0 100644--- a/ui/linux/CMakeLists.txt+++ b/ui/linux/CMakeLists.txt@@ -4,11 +4,11 @@ project(runner LANGUAGES CXX)# The name of the executable created for the application. Change this to change# the on-disk name of your application.-set(BINARY_NAME "copysync")+set(BINARY_NAME "pasteferry")# The unique GTK application identifier for this application. See:# https://wiki.gnome.org/HowDoI/ChooseApplicationID-# 与 Mac 的包名一致。桌面据此把运行中的窗口与 com.copysync.app.desktop 对应起来(Dock 里的图标、名字)-set(APPLICATION_ID "com.copysync.app")+# 与 Mac 的包名一致。桌面据此把运行中的窗口与 com.pasteferry.app.desktop 对应起来(Dock 里的图标、名字)+set(APPLICATION_ID "com.pasteferry.app")# Explicitly opt in to modern CMake behaviors to avoid warnings with recent# versions of CMake.diff --git a/ui/linux/runner/my_application.cc b/ui/linux/runner/my_application.ccindex c89aeac..f3360b5 100644--- a/ui/linux/runner/my_application.cc+++ b/ui/linux/runner/my_application.cc@@ -71,13 +71,13 @@ static void my_application_activate(GApplication* application) {if (use_header_bar) {GtkHeaderBar* header_bar = GTK_HEADER_BAR(gtk_header_bar_new());gtk_widget_show(GTK_WIDGET(header_bar));- gtk_header_bar_set_title(header_bar, "CopySync");+ gtk_header_bar_set_title(header_bar, "PasteFerry");gtk_header_bar_set_show_close_button(header_bar, TRUE);gtk_window_set_titlebar(window, GTK_WIDGET(header_bar));} else {- gtk_window_set_title(window, "CopySync");+ gtk_window_set_title(window, "PasteFerry");}- gtk_window_set_title(window, "CopySync");+ gtk_window_set_title(window, "PasteFerry");set_window_icon(window);gtk_window_set_default_size(window, kDefaultWidth, kDefaultHeight);diff --git a/ui/macos/Runner.xcodeproj/project.pbxproj b/ui/macos/Runner.xcodeproj/project.pbxprojindex 4d5d874..f964db2 100644--- a/ui/macos/Runner.xcodeproj/project.pbxproj+++ b/ui/macos/Runner.xcodeproj/project.pbxproj@@ -65,7 +65,7 @@331C80D7294CF71000263BE5 /* RunnerTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = RunnerTests.swift; sourceTree = "<group>"; };333000ED22D3DE5D00554162 /* Warnings.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = Warnings.xcconfig; sourceTree = "<group>"; };335BBD1A22A9A15E00E9071D /* GeneratedPluginRegistrant.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = GeneratedPluginRegistrant.swift; sourceTree = "<group>"; };- 33CC10ED2044A3C60003C045 /* copysync_ui.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "copysync_ui.app"; sourceTree = BUILT_PRODUCTS_DIR; };+ 33CC10ED2044A3C60003C045 /* pasteferry_ui.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "pasteferry_ui.app"; sourceTree = BUILT_PRODUCTS_DIR; };33CC10F02044A3C60003C045 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; };33CC10F22044A3C60003C045 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Assets.xcassets; path = Runner/Assets.xcassets; sourceTree = "<group>"; };33CC10F52044A3C60003C045 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/MainMenu.xib; sourceTree = "<group>"; };@@ -134,7 +134,7 @@33CC10EE2044A3C60003C045 /* Products */ = {isa = PBXGroup;children = (- 33CC10ED2044A3C60003C045 /* copysync_ui.app */,+ 33CC10ED2044A3C60003C045 /* pasteferry_ui.app */,331C80D5294CF71000263BE5 /* RunnerTests.xctest */,);name = Products;@@ -224,7 +224,7 @@78A3181F2AECB46A00862997 /* FlutterGeneratedPluginSwiftPackage */,);productName = Runner;- productReference = 33CC10ED2044A3C60003C045 /* copysync_ui.app */;+ productReference = 33CC10ED2044A3C60003C045 /* pasteferry_ui.app */;productType = "com.apple.product-type.application";};/* End PBXNativeTarget section */@@ -395,10 +395,10 @@CURRENT_PROJECT_VERSION = 1;GENERATE_INFOPLIST_FILE = YES;MARKETING_VERSION = 1.0;- PRODUCT_BUNDLE_IDENTIFIER = com.copysync.copysyncUi.RunnerTests;+ PRODUCT_BUNDLE_IDENTIFIER = com.pasteferry.pasteferryUi.RunnerTests;PRODUCT_NAME = "$(TARGET_NAME)";SWIFT_VERSION = 5.0;- TEST_HOST = "$(BUILT_PRODUCTS_DIR)/copysync_ui.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/copysync_ui";+ TEST_HOST = "$(BUILT_PRODUCTS_DIR)/pasteferry_ui.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/pasteferry_ui";};name = Debug;};@@ -409,10 +409,10 @@CURRENT_PROJECT_VERSION = 1;GENERATE_INFOPLIST_FILE = YES;MARKETING_VERSION = 1.0;- PRODUCT_BUNDLE_IDENTIFIER = com.copysync.copysyncUi.RunnerTests;+ PRODUCT_BUNDLE_IDENTIFIER = com.pasteferry.pasteferryUi.RunnerTests;PRODUCT_NAME = "$(TARGET_NAME)";SWIFT_VERSION = 5.0;- TEST_HOST = "$(BUILT_PRODUCTS_DIR)/copysync_ui.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/copysync_ui";+ TEST_HOST = "$(BUILT_PRODUCTS_DIR)/pasteferry_ui.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/pasteferry_ui";};name = Release;};@@ -423,10 +423,10 @@CURRENT_PROJECT_VERSION = 1;GENERATE_INFOPLIST_FILE = YES;MARKETING_VERSION = 1.0;- PRODUCT_BUNDLE_IDENTIFIER = com.copysync.copysyncUi.RunnerTests;+ PRODUCT_BUNDLE_IDENTIFIER = com.pasteferry.pasteferryUi.RunnerTests;PRODUCT_NAME = "$(TARGET_NAME)";SWIFT_VERSION = 5.0;- TEST_HOST = "$(BUILT_PRODUCTS_DIR)/copysync_ui.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/copysync_ui";+ TEST_HOST = "$(BUILT_PRODUCTS_DIR)/pasteferry_ui.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/pasteferry_ui";};name = Profile;};diff --git a/ui/macos/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme b/ui/macos/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcschemeindex 628f3e8..01c82a0 100644--- a/ui/macos/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme+++ b/ui/macos/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme@@ -15,7 +15,7 @@<BuildableReferenceBuildableIdentifier = "primary"BlueprintIdentifier = "33CC10EC2044A3C60003C045"- BuildableName = "copysync_ui.app"+ BuildableName = "pasteferry_ui.app"BlueprintName = "Runner"ReferencedContainer = "container:Runner.xcodeproj"></BuildableReference>@@ -33,7 +33,7 @@<BuildableReferenceBuildableIdentifier = "primary"BlueprintIdentifier = "33CC10EC2044A3C60003C045"- BuildableName = "copysync_ui.app"+ BuildableName = "pasteferry_ui.app"BlueprintName = "Runner"ReferencedContainer = "container:Runner.xcodeproj"></BuildableReference>@@ -49,7 +49,7 @@<BuildableReferenceBuildableIdentifier = "primary"BlueprintIdentifier = "33CC10EC2044A3C60003C045"- BuildableName = "copysync_ui.app"+ BuildableName = "pasteferry_ui.app"BlueprintName = "Runner"ReferencedContainer = "container:Runner.xcodeproj"></BuildableReference>@@ -84,7 +84,7 @@<BuildableReferenceBuildableIdentifier = "primary"BlueprintIdentifier = "33CC10EC2044A3C60003C045"- BuildableName = "copysync_ui.app"+ BuildableName = "pasteferry_ui.app"BlueprintName = "Runner"ReferencedContainer = "container:Runner.xcodeproj"></BuildableReference>@@ -101,7 +101,7 @@<BuildableReferenceBuildableIdentifier = "primary"BlueprintIdentifier = "33CC10EC2044A3C60003C045"- BuildableName = "copysync_ui.app"+ BuildableName = "pasteferry_ui.app"BlueprintName = "Runner"ReferencedContainer = "container:Runner.xcodeproj"></BuildableReference>diff --git a/ui/macos/Runner/Configs/AppInfo.xcconfig b/ui/macos/Runner/Configs/AppInfo.xcconfigindex d2d4167..2f288b6 100644--- a/ui/macos/Runner/Configs/AppInfo.xcconfig+++ b/ui/macos/Runner/Configs/AppInfo.xcconfig@@ -1,9 +1,9 @@// Application-level settings for the Runner target.// App 名称,也是菜单栏与「关于」里显示的名字-PRODUCT_NAME = CopySync+PRODUCT_NAME = PasteFerry// 剪贴板授权(TCC)以 bundle identifier 为主体,发布后不要再改-PRODUCT_BUNDLE_IDENTIFIER = com.copysync.app+PRODUCT_BUNDLE_IDENTIFIER = com.pasteferry.appPRODUCT_COPYRIGHT = Copyright © 2026 baiyuze. Licensed under the GNU AGPL-3.0.diff --git a/ui/macos/Runner/DebugProfile.entitlements b/ui/macos/Runner/DebugProfile.entitlementsindex 5ef2752..ff4ca4d 100644--- a/ui/macos/Runner/DebugProfile.entitlements+++ b/ui/macos/Runner/DebugProfile.entitlements@@ -2,8 +2,8 @@<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"><plist version="1.0"><dict>- <!-- 刻意关闭沙盒。CopySync 需要:- 1. 读取 daemon 写在 ~/Library/Application Support/CopySync 下的 daemon.json+ <!-- 刻意关闭沙盒。PasteFerry 需要:+ 1. 读取 daemon 写在 ~/Library/Application Support/PasteFerry 下的 daemon.json2. 访问用户复制的任意路径文件(沙盒只允许访问自身容器)分发走 Developer ID 签名 + 公证,不上 App Store。 --><key>com.apple.security.app-sandbox</key>diff --git a/ui/macos/Runner/MainFlutterWindow.swift b/ui/macos/Runner/MainFlutterWindow.swiftindex f78870e..1dd9cd6 100644--- a/ui/macos/Runner/MainFlutterWindow.swift+++ b/ui/macos/Runner/MainFlutterWindow.swift@@ -16,7 +16,7 @@ class MainFlutterWindow: NSWindow {self.setContentSize(NSSize(width: 960, height: 640))self.center()// 记住用户调整过的窗口大小与位置- self.setFrameAutosaveName("CopySyncMainWindow")+ self.setFrameAutosaveName("PasteFerryMainWindow")RegisterGeneratedPlugins(registry: flutterViewController)diff --git a/ui/pubspec.yaml b/ui/pubspec.yamlindex 872ed17..e26ee9d 100644--- a/ui/pubspec.yaml+++ b/ui/pubspec.yaml@@ -1,5 +1,5 @@-name: copysync_ui-description: "CopySync 的 macOS 界面:查看复制记录、配对设备、管理设置。"+name: pasteferry_ui+description: "PasteFerry 的 macOS 界面:查看复制记录、配对设备、管理设置。"# The following line prevents the package from being accidentally published to# pub.dev using `flutter pub publish`. This is preferred for private packages.publish_to: 'none' # Remove this line if you wish to publish to pub.devdiff --git a/ui/test/background_service_linux_test.dart b/ui/test/background_service_linux_test.dartindex ed03b40..6d97ab9 100644--- a/ui/test/background_service_linux_test.dart+++ b/ui/test/background_service_linux_test.dart@@ -1,17 +1,17 @@-import 'package:copysync_ui/background_service_linux.dart';+import 'package:pasteferry_ui/background_service_linux.dart';import 'package:flutter_test/flutter_test.dart';void main() {test('自启动项里的路径按 Desktop Entry 规范加引号', () {- expect(quoteExecArg('/opt/CopySync/copysyncd'), '"/opt/CopySync/copysyncd"');+ expect(quoteExecArg('/opt/PasteFerry/pasteferryd'), '"/opt/PasteFerry/pasteferryd"');// 路径里有空格时整体放在引号里- expect(quoteExecArg('/home/a/下载/CopySync 1/copysyncd'), '"/home/a/下载/CopySync 1/copysyncd"');+ expect(quoteExecArg('/home/a/下载/PasteFerry 1/pasteferryd'), '"/home/a/下载/PasteFerry 1/pasteferryd"');// 引号里的特殊字符要转义,.desktop 文件本身又把反斜杠转义一次expect(quoteExecArg(r'/x/$a"b`c\d'), r'"/x/\\$a\\"b\\`c\\\\d"');});test('能从写出去的自启动项里读回同一条命令', () {- final exec = '${quoteExecArg('/opt/CopySync/copysyncd')} -supervise';+ final exec = '${quoteExecArg('/opt/PasteFerry/pasteferryd')} -supervise';final entry = desktopEntry(exec);expect(entry, startsWith('[Desktop Entry]\n'));expect(entry, contains('NoDisplay=true'));diff --git a/ui/test/feedback_dialog_test.dart b/ui/test/feedback_dialog_test.dartindex adf0cde..84ac349 100644--- a/ui/test/feedback_dialog_test.dart+++ b/ui/test/feedback_dialog_test.dart@@ -3,10 +3,10 @@ import 'package:flutter/material.dart';import 'package:flutter/services.dart';import 'package:flutter_test/flutter_test.dart';-import 'package:copysync_ui/app_state.dart';-import 'package:copysync_ui/gen/copysync/v1/daemon.pb.dart';-import 'package:copysync_ui/main.dart';-import 'package:copysync_ui/widgets/feedback_dialog.dart';+import 'package:pasteferry_ui/app_state.dart';+import 'package:pasteferry_ui/gen/pasteferry/v1/daemon.pb.dart';+import 'package:pasteferry_ui/main.dart';+import 'package:pasteferry_ui/widgets/feedback_dialog.dart';/// 不连后台服务:报告与详细日志的开关都由测试给出。/// 「在 GitHub 上提问题」与「保存为文件」不在测试里按:一个会打开浏览器,一个会写进真的「下载」文件夹。@@ -19,7 +19,7 @@ class _FeedbackState extends AppState {Future<String> exportDiagnostics({int logLines = 200}) async {exports++;if (failWith != null) throw failWith!;- return 'CopySync diagnostics report\n Background service 1.7.0\n#$exports';+ return 'PasteFerry diagnostics report\n Background service 1.7.0\n#$exports';}@override@@ -42,7 +42,7 @@ Future<void> _open(WidgetTester tester, AppState state) async {tester.view.physicalSize = const Size(1100, 800);tester.view.devicePixelRatio = 1;addTearDown(tester.view.reset);- await tester.pumpWidget(CopySyncApp(state: state));+ await tester.pumpWidget(PasteFerryApp(state: state));showFeedbackDialog(tester.element(find.byType(Shell)));await tester.pumpAndSettle();}@@ -58,7 +58,7 @@ void main() {final state = _seed();await _open(tester, state);- expect(find.textContaining('CopySync diagnostics report'), findsOneWidget);+ expect(find.textContaining('PasteFerry diagnostics report'), findsOneWidget);await tester.tap(find.text('Copy report'));await tester.pumpAndSettle();@@ -94,6 +94,6 @@ void main() {state.failWith = null;await tester.tap(find.text('Try again'));await tester.pumpAndSettle();- expect(find.textContaining('CopySync diagnostics report'), findsOneWidget);+ expect(find.textContaining('PasteFerry diagnostics report'), findsOneWidget);});}diff --git a/ui/test/flutter_test_config.dart b/ui/test/flutter_test_config.dartindex 7c269ce..3dc06e0 100644--- a/ui/test/flutter_test_config.dart+++ b/ui/test/flutter_test_config.dart@@ -1,6 +1,6 @@import 'dart:async';-import 'package:copysync_ui/i18n.dart';+import 'package:pasteferry_ui/i18n.dart';import 'package:flutter/widgets.dart';import 'package:flutter_test/flutter_test.dart';diff --git a/ui/test/history_search_test.dart b/ui/test/history_search_test.dartindex c6faf31..01776aa 100644--- a/ui/test/history_search_test.dart+++ b/ui/test/history_search_test.dart@@ -5,10 +5,10 @@ import 'package:flutter/material.dart';import 'package:flutter/services.dart';import 'package:flutter_test/flutter_test.dart';-import 'package:copysync_ui/app_state.dart';-import 'package:copysync_ui/gen/copysync/v1/daemon.pb.dart';-import 'package:copysync_ui/main.dart';-import 'package:copysync_ui/pages/history_page.dart';+import 'package:pasteferry_ui/app_state.dart';+import 'package:pasteferry_ui/gen/pasteferry/v1/daemon.pb.dart';+import 'package:pasteferry_ui/main.dart';+import 'package:pasteferry_ui/pages/history_page.dart';/// 不连后台服务:搜索请求记下来,按测试给的规则回答。class _SearchState extends AppState {@@ -50,7 +50,7 @@ Future<void> _type(WidgetTester tester, String text) async {void main() {testWidgets('停顿后才向后台服务查询,显示它返回的结果并标出匹配处', (tester) async {final state = _seed((q) => ListHistoryResponse(records: [_report], searched: true));- await tester.pumpWidget(CopySyncApp(state: state));+ await tester.pumpWidget(PasteFerryApp(state: state));await tester.enterText(find.byType(TextField), 'quar');await tester.pump(const Duration(milliseconds: 100));@@ -78,7 +78,7 @@ void main() {testWidgets('没有结果时说明搜的是什么,清空搜索词后回到完整列表', (tester) async {final state = _seed((q) => ListHistoryResponse(searched: true));- await tester.pumpWidget(CopySyncApp(state: state));+ await tester.pumpWidget(PasteFerryApp(state: state));await _type(tester, 'zebra');expect(find.text('No matches for “zebra”'), findsOneWidget);@@ -93,7 +93,7 @@ void main() {testWidgets('旧版后台服务不认识搜索词时,退回到在已加载的记录里找', (tester) async {// 旧版照常返回全部记录,没有 searchedfinal state = _seed((q) => ListHistoryResponse(records: [_note, _report]));- await tester.pumpWidget(CopySyncApp(state: state));+ await tester.pumpWidget(PasteFerryApp(state: state));await _type(tester, 'LUNCH');expect(find.text('Lunch at noon', findRichText: true), findsOneWidget);@@ -102,7 +102,7 @@ void main() {testWidgets('快捷键跳到搜索框,Esc 清空搜索词', (tester) async {final state = _seed((q) => ListHistoryResponse(records: [_note], searched: true));- await tester.pumpWidget(CopySyncApp(state: state));+ await tester.pumpWidget(PasteFerryApp(state: state));await tester.pump();final modifier = Platform.isMacOS ? LogicalKeyboardKey.metaLeft : LogicalKeyboardKey.controlLeft;diff --git a/ui/test/i18n_test.dart b/ui/test/i18n_test.dartindex 4804d06..6e1e787 100644--- a/ui/test/i18n_test.dart+++ b/ui/test/i18n_test.dart@@ -2,13 +2,13 @@ import 'package:fixnum/fixnum.dart';import 'package:flutter/material.dart';import 'package:flutter_test/flutter_test.dart';-import 'package:copysync_ui/app_state.dart';-import 'package:copysync_ui/background_service.dart';-import 'package:copysync_ui/gen/copysync/v1/daemon.pb.dart';-import 'package:copysync_ui/i18n.dart';-import 'package:copysync_ui/main.dart';-import 'package:copysync_ui/widgets/feedback_dialog.dart';-import 'package:copysync_ui/widgets/pairing_dialog.dart';+import 'package:pasteferry_ui/app_state.dart';+import 'package:pasteferry_ui/background_service.dart';+import 'package:pasteferry_ui/gen/pasteferry/v1/daemon.pb.dart';+import 'package:pasteferry_ui/i18n.dart';+import 'package:pasteferry_ui/main.dart';+import 'package:pasteferry_ui/widgets/feedback_dialog.dart';+import 'package:pasteferry_ui/widgets/pairing_dialog.dart';class _DemoState extends AppState {@override@@ -16,7 +16,7 @@ class _DemoState extends AppState {@overrideFuture<String> exportDiagnostics({int logLines = 200}) async =>- 'CopySync diagnostics report\n${List.filled(40, 'time=2026-10-13T20:41:02 level=INFO msg=信令已连接').join('\n')}';+ 'PasteFerry diagnostics report\n${List.filled(40, 'time=2026-10-13T20:41:02 level=INFO msg=信令已连接').join('\n')}';}AppState _demo(String language, {LinkState link = LinkState.online, ServiceState? service}) =>@@ -98,25 +98,25 @@ void main() {});testWidgets('设置里选的语言优先于系统语言', (tester) async {- await tester.pumpWidget(CopySyncApp(state: _demo('en')));+ await tester.pumpWidget(PasteFerryApp(state: _demo('en')));expect(find.text('History'), findsWidgets);expect(find.text('复制记录'), findsNothing);});testWidgets('设置里选了繁体,界面用繁体', (tester) async {- await tester.pumpWidget(CopySyncApp(state: _demo('zh-Hant-HK')));+ await tester.pumpWidget(PasteFerryApp(state: _demo('zh-Hant-HK')));expect(find.text(lookupAppLocalizations(zhHantHK).navHistory), findsWidgets);expect(find.text('复制记录'), findsNothing);});testWidgets('跟随系统时用系统语言', (tester) async {- await tester.pumpWidget(CopySyncApp(state: _demo('')));+ await tester.pumpWidget(PasteFerryApp(state: _demo('')));expect(find.text('复制记录'), findsWidgets);});testWidgets('配置里的语言一变,界面立即换过来', (tester) async {final state = _demo('');- await tester.pumpWidget(CopySyncApp(state: state));+ await tester.pumpWidget(PasteFerryApp(state: state));expect(find.text('复制记录'), findsWidgets);state.config!.language = 'ja';@@ -127,7 +127,7 @@ void main() {});testWidgets('图片与文件的标题按界面语言显示,不用后台服务存下的中文摘要', (tester) async {- await tester.pumpWidget(CopySyncApp(state: _demo('en')));+ await tester.pumpWidget(PasteFerryApp(state: _demo('en')));expect(find.text('Image'), findsOneWidget);expect(find.text('report.key and 1 more'), findsOneWidget);expect(find.textContaining('图片'), findsNothing);@@ -144,7 +144,7 @@ void main() {tearDown(() => TestWidgetsFlutterBinding.instance.platformDispatcher.views.first.reset());Future<AppLocalizations> open(WidgetTester tester, AppState state) async {- await tester.pumpWidget(CopySyncApp(state: state));+ await tester.pumpWidget(PasteFerryApp(state: state));await tester.pump();return AppLocalizations.of(tester.element(find.byType(Shell)));}diff --git a/ui/test/image_preview_test.dart b/ui/test/image_preview_test.dartindex e207818..43e9f25 100644--- a/ui/test/image_preview_test.dart+++ b/ui/test/image_preview_test.dart@@ -1,9 +1,9 @@import 'dart:io';-import 'package:copysync_ui/app_state.dart';-import 'package:copysync_ui/gen/copysync/v1/daemon.pb.dart';-import 'package:copysync_ui/main.dart';-import 'package:copysync_ui/widgets/image_preview_dialog.dart';+import 'package:pasteferry_ui/app_state.dart';+import 'package:pasteferry_ui/gen/pasteferry/v1/daemon.pb.dart';+import 'package:pasteferry_ui/main.dart';+import 'package:pasteferry_ui/widgets/image_preview_dialog.dart';import 'package:flutter/gestures.dart';import 'package:flutter/material.dart';import 'package:flutter/services.dart';@@ -66,7 +66,7 @@ class PreviewState extends AppState {}Future<void> openPreview(WidgetTester tester, PreviewState state) async {- await tester.pumpWidget(CopySyncApp(state: state));+ await tester.pumpWidget(PasteFerryApp(state: state));await tester.pump();await tester.tap(find.textContaining('来自 测试电脑'));await tester.pump(const Duration(milliseconds: 250));@@ -217,7 +217,7 @@ void main() {for (final corrupt in [false, true]) {testWidgets('文件${corrupt ? "损坏" : "被清理"}时显示提示', (tester) async {- final dir = Directory.systemTemp.createTempSync('copysync-preview-');+ final dir = Directory.systemTemp.createTempSync('pasteferry-preview-');addTearDown(() => dir.deleteSync(recursive: true));final file = File('${dir.path}/invalid.png');if (corrupt) file.writeAsStringSync('not an image');@@ -278,7 +278,7 @@ void main() {],);addTearDown(state.dispose);- await tester.pumpWidget(CopySyncApp(state: state));+ await tester.pumpWidget(PasteFerryApp(state: state));await tester.pump();expect(find.text('预览'), findsNothing);diff --git a/ui/test/pairing_flow_test.dart b/ui/test/pairing_flow_test.dartindex e1dbf93..e8f79ec 100644--- a/ui/test/pairing_flow_test.dart+++ b/ui/test/pairing_flow_test.dart@@ -1,10 +1,10 @@import 'dart:async';-import 'package:copysync_ui/app_state.dart';-import 'package:copysync_ui/gen/copysync/v1/daemon.pb.dart';-import 'package:copysync_ui/main.dart';-import 'package:copysync_ui/widgets/nearby_dialog.dart';-import 'package:copysync_ui/widgets/pairing_dialog.dart';+import 'package:pasteferry_ui/app_state.dart';+import 'package:pasteferry_ui/gen/pasteferry/v1/daemon.pb.dart';+import 'package:pasteferry_ui/main.dart';+import 'package:pasteferry_ui/widgets/nearby_dialog.dart';+import 'package:pasteferry_ui/widgets/pairing_dialog.dart';import 'package:flutter/material.dart';import 'package:flutter_test/flutter_test.dart';import 'package:grpc/grpc.dart';@@ -85,7 +85,7 @@ class PairingState extends AppState {}Future<void> openSetup(WidgetTester tester, PairingState state) async {- await tester.pumpWidget(CopySyncApp(state: state));+ await tester.pumpWidget(PasteFerryApp(state: state));await tester.tap(find.text('设备').first);await tester.pumpAndSettle();await tester.tap(find.text('添加设备').first);@@ -94,7 +94,7 @@ Future<void> openSetup(WidgetTester tester, PairingState state) async {/// 打开「搜索附近设备」。雷达的波纹一直在动,不能用 pumpAndSettle 等它停下。Future<void> openNearby(WidgetTester tester, PairingState state) async {- await tester.pumpWidget(CopySyncApp(state: state));+ await tester.pumpWidget(PasteFerryApp(state: state));await tester.tap(find.text('设备').first);await tester.pumpAndSettle();await tester.tap(find.text('搜索附近设备').first);@@ -103,8 +103,8 @@ Future<void> openNearby(WidgetTester tester, PairingState state) async {}final nearbyDevices = [- NearbyDevice(id: 'copysync-1', name: '光光的电脑', platform: 'windows'),- NearbyDevice(id: 'copysync-2', name: '旧 Mac', platform: 'darwin', paired: true),+ NearbyDevice(id: 'pasteferry-1', name: '光光的电脑', platform: 'windows'),+ NearbyDevice(id: 'pasteferry-2', name: '旧 Mac', platform: 'darwin', paired: true),];void expectSingleConfirmation() {@@ -182,7 +182,7 @@ void main() {testWidgets('未打开添加设备时收到请求仍主动确认,过期后不会反复弹出', (tester) async {final state = PairingState()..failConfirmation = true;addTearDown(state.dispose);- await tester.pumpWidget(CopySyncApp(state: state));+ await tester.pumpWidget(PasteFerryApp(state: state));state.receive(pendingPeer());await tester.pumpAndSettle();expectSingleConfirmation();@@ -288,7 +288,7 @@ void main() {await tester.tap(find.text('光光的电脑'));await tester.pumpAndSettle();- expect(state.pairedNearby, ['copysync-1']);+ expect(state.pairedNearby, ['pasteferry-1']);expectSingleConfirmation();expect(find.byType(NearbyDialog, skipOffstage: false), findsNothing);expect(state.nearbyCancelled, isTrue, reason: '雷达关掉后要撤下本机');@@ -331,7 +331,7 @@ void main() {final state = PairingState();addTearDown(state.dispose);state.debugSeed(status: status, config: Config(), self: Device(id: 'self', name: '本机'));- await tester.pumpWidget(CopySyncApp(state: state));+ await tester.pumpWidget(PasteFerryApp(state: state));await tester.pumpAndSettle();}diff --git a/ui/test/widget_test.dart b/ui/test/widget_test.dartindex bd29f84..1675b2f 100644--- a/ui/test/widget_test.dart+++ b/ui/test/widget_test.dart@@ -4,21 +4,21 @@ import 'package:fixnum/fixnum.dart';import 'package:flutter/material.dart';import 'package:flutter_test/flutter_test.dart';-import 'package:copysync_ui/app_state.dart';-import 'package:copysync_ui/daemon_client.dart';-import 'package:copysync_ui/gen/copysync/v1/daemon.pb.dart';-import 'package:copysync_ui/i18n.dart';-import 'package:copysync_ui/main.dart';-import 'package:copysync_ui/theme.dart';-import 'package:copysync_ui/widgets/common.dart';-import 'package:copysync_ui/widgets/pairing_dialog.dart';+import 'package:pasteferry_ui/app_state.dart';+import 'package:pasteferry_ui/daemon_client.dart';+import 'package:pasteferry_ui/gen/pasteferry/v1/daemon.pb.dart';+import 'package:pasteferry_ui/i18n.dart';+import 'package:pasteferry_ui/main.dart';+import 'package:pasteferry_ui/theme.dart';+import 'package:pasteferry_ui/widgets/common.dart';+import 'package:pasteferry_ui/widgets/pairing_dialog.dart';void main() {testWidgets('应用启动后显示三个导航区', (tester) async {- await tester.pumpWidget(const CopySyncApp());+ await tester.pumpWidget(const PasteFerryApp());await tester.pump();- expect(find.text('CopySync'), findsOneWidget);+ expect(find.text('隔空贴'), findsOneWidget);// 「复制记录」同时出现在侧边栏与页面标题中expect(find.text('复制记录'), findsWidgets);expect(find.text('设备'), findsWidgets);@@ -26,7 +26,7 @@ void main() {});testWidgets('daemon 未运行时给出下一步指引而非空白页', (tester) async {- await tester.pumpWidget(const CopySyncApp());+ await tester.pumpWidget(const PasteFerryApp());await tester.pump(const Duration(milliseconds: 300));// 空状态要说明该做什么,不能只写"暂无数据"@@ -35,7 +35,7 @@ void main() {});testWidgets('可以切换到设备页', (tester) async {- await tester.pumpWidget(const CopySyncApp());+ await tester.pumpWidget(const PasteFerryApp());await tester.pump();// 点侧边栏的「设备」(第一个匹配项是导航条目)@@ -47,7 +47,7 @@ void main() {});testWidgets('配对对话框里能取到 AppState', (tester) async {- await tester.pumpWidget(const CopySyncApp());+ await tester.pumpWidget(const PasteFerryApp());await tester.pump();// 测试环境没有 daemon,「添加设备」按钮是禁用的,直接按页面里的方式弹出@@ -129,7 +129,7 @@ void main() {final dir = DaemonEndpoint.defaultDataDir();// 路径不一致会导致 UI 根本找不到 daemon,这里锁住约定// Linux 按 XDG 的习惯用小写目录名,见 config.DefaultPaths- expect(dir, Platform.isLinux ? endsWith('/copysync') : contains('CopySync'));+ expect(dir, Platform.isLinux ? endsWith('/pasteferry') : contains('PasteFerry'));expect(DaemonEndpoint.endpointFile(dir).path, endsWith('daemon.json'));});diff --git a/ui/tool/l10n/strings.py b/ui/tool/l10n/strings.pyindex 1a0f7da..636544d 100644--- a/ui/tool/l10n/strings.py+++ b/ui/tool/l10n/strings.py@@ -15,6 +15,8 @@ from pathlib import PathS = [# ── 侧边栏与连接状态 ──+ # 产品名:中文界面叫隔空贴,其他语言叫 PasteFerry。窗口标题、可执行文件等系统里看得到的名字一律用 PasteFerry+ ("appName", "PasteFerry", "隔空贴", "PasteFerry", "隔空貼", "隔空貼"),("navHistory", "History", "复制记录", "履歴", "複製記錄", "複製記錄"),("navDevices", "Devices", "设备", "デバイス", "裝置", "裝置"),("navSettings", "Settings", "设置", "設定", "設定", "設定"),@@ -34,7 +36,7 @@ S = [("errUnavailable", "Can't reach the background service", "无法连接后台服务", "バックグラウンドサービスに接続できません", "無法連線到背景服務", "無法連線到背景服務"),("errServiceStart", "Couldn't start the background service: {detail}", "启动后台服务失败:{detail}", "バックグラウンドサービスを起動できませんでした:{detail}", "啟動背景服務失敗:{detail}", "無法啟動背景服務:{detail}"),("errServiceRestart", "Couldn't restart the background service: {detail}", "重启后台服务失败:{detail}", "バックグラウンドサービスを再起動できませんでした:{detail}", "重新啟動背景服務失敗:{detail}", "無法重新啟動背景服務:{detail}"),- ("errAutostart", "Couldn't set CopySync to start at login: {detail}", "登记开机自启失败:{detail}", "ログイン時の自動起動を設定できませんでした:{detail}", "設定開機自動啟動失敗:{detail}", "無法設定開機自動啟動:{detail}"),+ ("errAutostart", "Couldn't set PasteFerry to start at login: {detail}", "登记开机自启失败:{detail}", "ログイン時の自動起動を設定できませんでした:{detail}", "設定開機自動啟動失敗:{detail}", "無法設定開機自動啟動:{detail}"),# ── 对设备的叫法:Mac 上说「这台 Mac」,Windows 上说「这台电脑」。# InText 用在句子中间,中日文里「Mac」后面紧跟汉字或假名,所以带一个空格 ──@@ -80,10 +82,10 @@ S = [("clearConfirmBody", "Everything synced from your devices, and the cached files, will be removed from {device}. The original files aren't affected.", "所有设备上同步来的记录和已缓存的文件都会从{device}上删除。原始文件不受影响。", "同期した履歴とキャッシュしたファイルが{device}から削除されます。元のファイルには影響しません。", "從所有裝置同步過來的記錄和已快取的檔案,都會從{device}上刪除。原始檔案不受影響。", "所有裝置同步過來的記錄和已快取的檔案都會從{device}上刪除。原始檔案不受影響。"),("clear", "Clear", "清空", "消去", "清空", "清除"),("historyCleared", "History cleared", "记录已清空", "履歴を消去しました", "記錄已清空", "記錄已清除"),- ("permDeniedTitle", "CopySync can't read the clipboard", "已禁止 CopySync 读取剪贴板", "CopySync はクリップボードを読み取れません", "已禁止 CopySync 讀取剪貼簿", "已禁止 CopySync 讀取剪貼簿"),- ("permAskTitle", "Allow CopySync to read the clipboard", "允许 CopySync 读取剪贴板", "CopySync にクリップボードの読み取りを許可してください", "允許 CopySync 讀取剪貼簿", "允許 CopySync 讀取剪貼簿"),- ("permDeniedBody", "What you copy on this Mac won't be synced. In System Settings, set CopySync Daemon to Allow.", "在这台 Mac 上复制的内容不会同步出去。到系统设置里把 CopySync Daemon 改为「允许」。", "この Mac でコピーした内容は同期されません。システム設定で CopySync Daemon を「許可」にしてください。", "在這台 Mac 上複製的內容不會同步出去。請到系統設定裡把 CopySync Daemon 改為「允許」。", "在這部 Mac 上複製的內容不會同步出去。請到系統設定裏把 CopySync Daemon 改為「允許」。"),- ("permAskBody", "Otherwise macOS asks every time. In System Settings, set CopySync Daemon to Allow.", "否则 macOS 每次都会弹窗询问。到系统设置里把 CopySync Daemon 改为「允许」。", "許可しないと macOS が毎回確認します。システム設定で CopySync Daemon を「許可」にしてください。", "否則 macOS 每次都會跳出視窗詢問。請到系統設定裡把 CopySync Daemon 改為「允許」。", "否則 macOS 每次都會彈出視窗詢問。請到系統設定裏把 CopySync Daemon 改為「允許」。"),+ ("permDeniedTitle", "PasteFerry can't read the clipboard", "已禁止隔空贴读取剪贴板", "PasteFerry はクリップボードを読み取れません", "已禁止隔空貼讀取剪貼簿", "已禁止隔空貼讀取剪貼簿"),+ ("permAskTitle", "Allow PasteFerry to read the clipboard", "允许隔空贴读取剪贴板", "PasteFerry にクリップボードの読み取りを許可してください", "允許隔空貼讀取剪貼簿", "允許隔空貼讀取剪貼簿"),+ ("permDeniedBody", "What you copy on this Mac won't be synced. In System Settings, set PasteFerry Daemon to Allow.", "在这台 Mac 上复制的内容不会同步出去。到系统设置里把 PasteFerry Daemon 改为「允许」。", "この Mac でコピーした内容は同期されません。システム設定で PasteFerry Daemon を「許可」にしてください。", "在這台 Mac 上複製的內容不會同步出去。請到系統設定裡把 PasteFerry Daemon 改為「允許」。", "在這部 Mac 上複製的內容不會同步出去。請到系統設定裏把 PasteFerry Daemon 改為「允許」。"),+ ("permAskBody", "Otherwise macOS asks every time. In System Settings, set PasteFerry Daemon to Allow.", "否则 macOS 每次都会弹窗询问。到系统设置里把 PasteFerry Daemon 改为「允许」。", "許可しないと macOS が毎回確認します。システム設定で PasteFerry Daemon を「許可」にしてください。", "否則 macOS 每次都會跳出視窗詢問。請到系統設定裡把 PasteFerry Daemon 改為「允許」。", "否則 macOS 每次都會彈出視窗詢問。請到系統設定裏把 PasteFerry Daemon 改為「允許」。"),("openSystemSettings", "Open System Settings", "打开系统设置", "システム設定を開く", "打開系統設定", "開啟系統設定"),("fetch", "Pull to this device", "拉取到本机", "このデバイスに取り込む", "拉取到本機", "拉取到本機"),("fetchStarted", "Pulling…", "开始拉取", "取り込みを開始しました", "開始拉取", "開始拉取"),@@ -127,7 +129,7 @@ S = [("addDevice", "Add device", "添加设备", "デバイスを追加", "新增裝置", "新增裝置"),("thisDeviceFootnote", "When pairing, {both} show the same two lines of security fingerprints, one for each device. Confirm only if they match character for character.", "配对时,{both}会显示同样的两行安全指纹:这台的和对方的。逐字核对一致才能确认。", "ペアリング時、{both}に同じ 2 行のセキュリティ指紋(このデバイスと相手のもの)が表示されます。1 文字ずつ一致を確かめてから確定してください。", "配對時,{both}會顯示同樣的兩行安全指紋:這台的和對方的。逐字核對一致才能確認。", "配對時,{both}會顯示同樣的兩行安全指紋:這部的和對方的。逐字核對一致才可確認。"),("noDevicesTitle", "No paired devices yet", "还没有配对的设备", "ペアリングしたデバイスはまだありません", "還沒有配對的裝置", "仍未有已配對的裝置"),- ("noDevicesBody", "Open CopySync on your other computer and link the two with a 6-character pairing code. On the same network, you can also open Search nearby on both and click the other one.", "在另一台电脑上打开 CopySync,用 6 位配对码把两台连起来。两台在同一个网络里时,也可以在两台上都打开「搜索附近设备」,点一下对方。", "もう一台のコンピューターで CopySync を開き、6 桁のペアリングコードでつなげます。同じネットワーク内なら、両方で「近くを検索」を開いて相手をクリックすることもできます。", "在另一台電腦上打開 CopySync,用 6 碼配對碼把兩台連起來。兩台在同一個網路裡時,也可以在兩台上都打開「搜尋附近裝置」,點一下對方。", "在另一部電腦上開啟 CopySync,用 6 位配對碼把兩部連起來。兩部在同一個網絡裏時,也可以在兩部上都開啟「搜尋附近裝置」,按一下對方。"),+ ("noDevicesBody", "Open PasteFerry on your other computer and link the two with a 6-character pairing code. On the same network, you can also open Search nearby on both and click the other one.", "在另一台电脑上打开隔空贴,用 6 位配对码把两台连起来。两台在同一个网络里时,也可以在两台上都打开「搜索附近设备」,点一下对方。", "もう一台のコンピューターで PasteFerry を開き、6 桁のペアリングコードでつなげます。同じネットワーク内なら、両方で「近くを検索」を開いて相手をクリックすることもできます。", "在另一台電腦上打開隔空貼,用 6 碼配對碼把兩台連起來。兩台在同一個網路裡時,也可以在兩台上都打開「搜尋附近裝置」,點一下對方。", "在另一部電腦上開啟隔空貼,用 6 位配對碼把兩部連起來。兩部在同一個網絡裏時,也可以在兩部上都開啟「搜尋附近裝置」,按一下對方。"),("pairedDevices", "Paired devices", "已配对的设备", "ペアリング済みのデバイス", "已配對的裝置", "已配對的裝置"),("pairedFootnote", "Direct: data goes straight between the two devices. Relay: when the network blocks a direct path, data goes through your server and stays end-to-end encrypted.", "直连:数据在两台设备之间直接传输。中转:网络环境打不通直连时,经你的服务器转发,内容依然是端到端加密的。", "直接接続:データは 2 台のデバイス間で直接やり取りされます。中継:直接つながらないネットワークでは、あなたのサーバーを経由します。内容はエンドツーエンドで暗号化されたままです。", "直連:資料在兩台裝置之間直接傳輸。中繼:網路環境打不通直連時,經你的伺服器轉送,內容依然是端對端加密的。", "直連:資料在兩部裝置之間直接傳輸。中轉:網絡環境打不通直連時,經你的伺服器轉發,內容依然是端對端加密的。"),("offline", "Offline", "离线", "オフライン", "離線", "離線"),@@ -147,7 +149,7 @@ S = [("setAddressBody", "Use this when the two devices are on different subnets, or both changed addresses. Enter the address shown on “{name}” under Add device → Show a code.", "两台不在同一网段、或者都换了地址时用。输入「{name}」上「添加设备 → 生成配对码」下面显示的地址。", "2 台が別のサブネットにある場合や、どちらもアドレスが変わった場合に使います。「{name}」の「デバイスを追加 → コードを表示」に表示されるアドレスを入力してください。", "兩台不在同一網段、或都換了位址時使用。輸入「{name}」上「新增裝置 → 產生配對碼」下方顯示的位址。", "兩部不在同一網段,或者都換了地址時使用。輸入「{name}」上「新增裝置 → 產生配對碼」下面顯示的地址。"),("addressSaved", "Looking for it at that address", "已记下,正在那个地址上找它", "そのアドレスで探しています", "已記下,正在那個位址上尋找它", "已記下,正在那個地址上尋找它"),("lanBlockedTitle", "macOS is blocking the local network", "macOS 阻止了局域网访问", "macOS がローカルネットワークへのアクセスをブロックしています", "macOS 阻擋了區域網路存取", "macOS 阻擋了區域網絡存取"),- ("lanBlockedBody", "Turn on CopySync Daemon in System Settings → Privacy & Security → Local Network. Until then, {device} can't connect to devices on this network.", "在「系统设置 → 隐私与安全性 → 本地网络」里打开 CopySync Daemon。打开之前,{device}连不上同一网络里的设备。", "「システム設定 → プライバシーとセキュリティ → ローカルネットワーク」で CopySync Daemon をオンにしてください。オンにするまで、{device}は同じネットワークのデバイスに接続できません。", "在「系統設定 → 隱私權與安全性 → 本機網路」裡開啟 CopySync Daemon。開啟之前,{device}連不上同一個網路裡的裝置。", "在「系統設定 → 私隱與保安 → 本地網絡」裏開啟 CopySync Daemon。開啟之前,{device}連不上同一網絡裏的裝置。"),+ ("lanBlockedBody", "Turn on PasteFerry Daemon in System Settings → Privacy & Security → Local Network. Until then, {device} can't connect to devices on this network.", "在「系统设置 → 隐私与安全性 → 本地网络」里打开 PasteFerry Daemon。打开之前,{device}连不上同一网络里的设备。", "「システム設定 → プライバシーとセキュリティ → ローカルネットワーク」で PasteFerry Daemon をオンにしてください。オンにするまで、{device}は同じネットワークのデバイスに接続できません。", "在「系統設定 → 隱私權與安全性 → 本機網路」裡開啟 PasteFerry Daemon。開啟之前,{device}連不上同一個網路裡的裝置。", "在「系統設定 → 私隱與保安 → 本地網絡」裏開啟 PasteFerry Daemon。開啟之前,{device}連不上同一網絡裏的裝置。"),# ── 搜索附近设备 ──("searchNearby", "Search nearby", "搜索附近设备", "近くを検索", "搜尋附近裝置", "搜尋附近裝置"),@@ -211,7 +213,7 @@ S = [("lanDiscovery", "Find devices on this network", "在局域网中查找设备", "このネットワークでデバイスを探す", "在區域網路中尋找裝置", "在區域網絡中尋找裝置"),("lanDiscoveryDesc", "Pair and sync without a server. Others on the network only see an anonymous entry that changes daily, and the device name only while Search nearby is open.", "不用服务器就能配对和同步。网络里的其他人只能看到一个每天都变的匿名标识;打开「搜索附近设备」期间才看得到设备名", "サーバーなしでペアリングと同期ができます。ネットワーク上の他の人には、毎日変わる匿名の識別子しか見えません。デバイス名が見えるのは「近くを検索」を開いている間だけです", "不用伺服器就能配對和同步。網路裡的其他人只能看到一個每天都會變的匿名識別碼;打開「搜尋附近裝置」期間才看得到裝置名稱", "不用伺服器就能配對和同步。網絡裏的其他人只能看到一個每天都會改變的匿名標識;開啟「搜尋附近裝置」期間才看得到裝置名稱"),("macLocalNetwork", "Local Network access", "本地网络权限", "ローカルネットワークへのアクセス", "本機網路權限", "本地網絡權限"),- ("macLocalNetworkDesc", "macOS asks once whether CopySync may connect to devices on your network. If you declined, turn on CopySync Daemon there.", "macOS 会问一次是否允许 CopySync 连接网络里的设备。拒绝过的话,到那里打开 CopySync Daemon", "CopySync がネットワーク上のデバイスに接続してよいか、macOS が一度だけ確認します。拒否した場合は、そこで CopySync Daemon をオンにしてください", "macOS 會詢問一次是否允許 CopySync 連線到網路裡的裝置。拒絕過的話,到那裡開啟 CopySync Daemon", "macOS 會詢問一次是否允許 CopySync 連接網絡裏的裝置。如果拒絕過,請到那裏開啟 CopySync Daemon"),+ ("macLocalNetworkDesc", "macOS asks once whether PasteFerry may connect to devices on your network. If you declined, turn on PasteFerry Daemon there.", "macOS 会问一次是否允许隔空贴连接网络里的设备。拒绝过的话,到那里打开 PasteFerry Daemon", "PasteFerry がネットワーク上のデバイスに接続してよいか、macOS が一度だけ確認します。拒否した場合は、そこで PasteFerry Daemon をオンにしてください", "macOS 會詢問一次是否允許隔空貼連線到網路裡的裝置。拒絕過的話,到那裡開啟 PasteFerry Daemon", "macOS 會詢問一次是否允許隔空貼連接網絡裏的裝置。如果拒絕過,請到那裏開啟 PasteFerry Daemon"),("allowLan", "Windows Firewall", "Windows 防火墙", "Windows ファイアウォール", "Windows 防火牆", "Windows 防火牆"),("allowLanDesc", "Allow this when other devices can't reach this one, for example when pairing from another subnet. Asks for administrator approval once.", "其他设备连不上这台时放行,比如从别的网段配对。会请求一次管理员权限", "他のデバイスからこのデバイスに接続できないとき(別のサブネットからのペアリングなど)に許可します。管理者の承認を 1 回求めます", "其他裝置連不上這台時允許連入,例如從別的網段配對。會要求一次系統管理員權限", "其他裝置連不上這部電腦時允許連線,例如從別的網段配對。會要求一次管理員權限"),("allow", "Allow", "放行", "許可", "允許", "允許"),@@ -238,7 +240,7 @@ S = [("keepCacheDesc", "Never longer than the history", "不会超过记录的保留时长", "履歴の保存期間を超えません", "不會超過記錄的保留時間", "不會超過記錄的保留時間"),("cacheUsage", "Cache size", "缓存占用", "キャッシュ容量", "快取佔用", "快取佔用空間"),("backgroundSync", "Background sync", "后台同步", "バックグラウンド同期", "背景同步", "背景同步"),- ("backgroundFootnote", "When off, nothing syncs and CopySync doesn't start at login. History and pairings are kept; open the app to turn it back on.", "停用后不再同步,也不会开机启动。历史记录与配对关系会保留,重新打开 App 即可再次启用。", "オフにすると同期せず、ログイン時にも起動しません。履歴とペアリングは残り、アプリを開けば再び有効にできます。", "停用後不再同步,也不會開機自動啟動。歷史記錄與配對關係會保留,重新打開 App 即可再次啟用。", "停用後不再同步,也不會開機啟動。歷史記錄與配對關係會保留,重新開啟 App 即可再次啟用。"),+ ("backgroundFootnote", "When off, nothing syncs and PasteFerry doesn't start at login. History and pairings are kept; open the app to turn it back on.", "停用后不再同步,也不会开机启动。历史记录与配对关系会保留,重新打开 App 即可再次启用。", "オフにすると同期せず、ログイン時にも起動しません。履歴とペアリングは残り、アプリを開けば再び有効にできます。", "停用後不再同步,也不會開機自動啟動。歷史記錄與配對關係會保留,重新打開 App 即可再次啟用。", "停用後不再同步,也不會開機啟動。歷史記錄與配對關係會保留,重新開啟 App 即可再次啟用。"),("backgroundService", "Background service", "后台服务", "バックグラウンドサービス", "背景服務", "背景服務"),("backgroundServiceDesc", "Starts at login and keeps syncing with the window closed", "随系统登录自动启动,关掉窗口也照常同步", "ログイン時に起動し、ウィンドウを閉じても同期を続けます", "隨系統登入自動啟動,關掉視窗也照常同步", "隨系統登入自動啟動,關閉視窗也照常同步"),("restart", "Restart", "重新启动", "再起動", "重新啟動", "重新啟動"),@@ -249,7 +251,7 @@ S = [("homepage", "Website", "项目主页", "ウェブサイト", "專案首頁", "項目主頁"),("feedback", "Report a problem", "反馈问题", "問題を報告", "回報問題", "回報問題"),("disableTitle", "Turn off background sync?", "停用后台同步?", "バックグラウンド同期をオフにしますか?", "要停用背景同步嗎?", "停用背景同步?"),- ("disableBody", "CopySync on {device} will stop syncing and won't start at login. History and pairings are kept.", "{device}将停止同步,也不再开机启动。历史记录和配对关系会保留。", "{device}は同期を停止し、ログイン時にも起動しなくなります。履歴とペアリングは残ります。", "{device}將停止同步,也不會再開機自動啟動。歷史記錄和配對關係會保留。", "{device}將停止同步,也不再開機啟動。歷史記錄和配對關係會保留。"),+ ("disableBody", "PasteFerry on {device} will stop syncing and won't start at login. History and pairings are kept.", "{device}将停止同步,也不再开机启动。历史记录和配对关系会保留。", "{device}は同期を停止し、ログイン時にも起動しなくなります。履歴とペアリングは残ります。", "{device}將停止同步,也不會再開機自動啟動。歷史記錄和配對關係會保留。", "{device}將停止同步,也不再開機啟動。歷史記錄和配對關係會保留。"),("disable", "Turn off", "停用", "オフにする", "停用", "停用"),("disabled", "Background sync is off", "后台同步已停用", "バックグラウンド同期をオフにしました", "背景同步已停用", "背景同步已停用"),("urlMustBeWs", "The address must start with ws:// or wss://", "地址需以 ws:// 或 wss:// 开头", "アドレスは ws:// または wss:// で始めてください", "位址必須以 ws:// 或 wss:// 開頭", "地址必須以 ws:// 或 wss:// 開頭"),@@ -273,21 +275,21 @@ S = [("diagFailed", "Couldn't create the report: {detail}", "生成报告失败:{detail}", "レポートを作成できませんでした:{detail}", "產生報告失敗:{detail}", "產生報告失敗:{detail}"),# ── 启用后台服务的引导页 ──- ("svcExtractTitle", "Install or extract CopySync first", "先解压或安装 CopySync", "先に CopySync をインストールまたは展開してください", "先解壓縮或安裝 CopySync", "先解壓縮或安裝 CopySync"),- ("svcExtractBody", "CopySync is running straight from the zip, and its temporary folder disappears when you close it. Run the installer, or extract the whole folder and open it from there, to turn on background sync.", "CopySync 现在是直接从压缩包里打开的,关掉之后它所在的临时文件夹就会被删除。运行安装程序,或者把整个文件夹解压出来再打开,就可以启用后台同步。", "CopySync は zip から直接開かれていて、閉じると一時フォルダごと消えます。インストーラーを実行するか、フォルダ全体を展開してから開くと、バックグラウンド同期を有効にできます。", "CopySync 現在是直接從壓縮檔裡打開的,關掉之後它所在的暫存資料夾就會被刪除。執行安裝程式,或者把整個資料夾解壓縮出來再打開,就可以啟用背景同步。", "CopySync 現在是直接從壓縮檔裏開啟的,關閉之後它所在的臨時資料夾就會被刪除。執行安裝程式,或者把整個資料夾解壓縮出來再開啟,就可以啟用背景同步。"),- ("svcMoveTitle", "Move CopySync to Applications first", "先把 CopySync 移到「应用程序」", "先に CopySync を「アプリケーション」に移動してください", "先把 CopySync 移到「應用程式」", "先把 CopySync 移到「應用程式」"),- ("svcMoveBody", "CopySync is running straight from the disk image. Drag it into Applications, eject the disk image, and open it from Applications to turn on background sync.", "CopySync 现在是直接从安装盘里打开的。把它拖进「应用程序」文件夹,推出安装盘,再从「应用程序」里打开,就可以启用后台同步。", "CopySync はディスクイメージから直接開かれています。「アプリケーション」にドラッグしてディスクイメージを取り出し、「アプリケーション」から開くと、バックグラウンド同期を有効にできます。", "CopySync 現在是直接從磁碟映像檔裡打開的。把它拖進「應用程式」資料夾,退出磁碟映像檔,再從「應用程式」裡打開,就可以啟用背景同步。", "CopySync 現在是直接從磁碟映像裏開啟的。把它拖進「應用程式」資料夾,推出磁碟映像,再從「應用程式」裏開啟,就可以啟用背景同步。"),- ("svcStartTitle", "Get started with CopySync", "开始使用 CopySync", "CopySync を始める", "開始使用 CopySync", "開始使用 CopySync"),- ("svcStartBody", "CopySync runs a small background process that notices clipboard changes and stays connected to your other devices. Once on, it starts at login and keeps syncing even with this window closed.", "CopySync 会在后台运行一个小进程,用来感知剪贴板的变化,并与你的其他设备保持连接。启用后它随系统登录自动启动,关掉这个窗口也会照常同步。", "CopySync は小さなバックグラウンドプロセスを動かし、クリップボードの変化を検知して他のデバイスとつながり続けます。有効にするとログイン時に起動し、このウィンドウを閉じても同期を続けます。", "CopySync 會在背景執行一個小程式,用來偵測剪貼簿的變化,並與你的其他裝置保持連線。啟用後它會隨系統登入自動啟動,關掉這個視窗也會照常同步。", "CopySync 會在背景執行一個小型程序,用來偵測剪貼簿的變化,並與你的其他裝置保持連線。啟用後它會隨系統登入自動啟動,關閉這個視窗也會照常同步。"),+ ("svcExtractTitle", "Install or extract PasteFerry first", "先解压或安装隔空贴", "先に PasteFerry をインストールまたは展開してください", "先解壓縮或安裝隔空貼", "先解壓縮或安裝隔空貼"),+ ("svcExtractBody", "PasteFerry is running straight from the zip, and its temporary folder disappears when you close it. Run the installer, or extract the whole folder and open it from there, to turn on background sync.", "隔空贴现在是直接从压缩包里打开的,关掉之后它所在的临时文件夹就会被删除。运行安装程序,或者把整个文件夹解压出来再打开,就可以启用后台同步。", "PasteFerry は zip から直接開かれていて、閉じると一時フォルダごと消えます。インストーラーを実行するか、フォルダ全体を展開してから開くと、バックグラウンド同期を有効にできます。", "隔空貼現在是直接從壓縮檔裡打開的,關掉之後它所在的暫存資料夾就會被刪除。執行安裝程式,或者把整個資料夾解壓縮出來再打開,就可以啟用背景同步。", "隔空貼現在是直接從壓縮檔裏開啟的,關閉之後它所在的臨時資料夾就會被刪除。執行安裝程式,或者把整個資料夾解壓縮出來再開啟,就可以啟用背景同步。"),+ ("svcMoveTitle", "Move PasteFerry to Applications first", "先把隔空贴移到「应用程序」", "先に PasteFerry を「アプリケーション」に移動してください", "先把隔空貼移到「應用程式」", "先把隔空貼移到「應用程式」"),+ ("svcMoveBody", "PasteFerry is running straight from the disk image. Drag it into Applications, eject the disk image, and open it from Applications to turn on background sync.", "隔空贴现在是直接从安装盘里打开的。把它拖进「应用程序」文件夹,推出安装盘,再从「应用程序」里打开,就可以启用后台同步。", "PasteFerry はディスクイメージから直接開かれています。「アプリケーション」にドラッグしてディスクイメージを取り出し、「アプリケーション」から開くと、バックグラウンド同期を有効にできます。", "隔空貼現在是直接從磁碟映像檔裡打開的。把它拖進「應用程式」資料夾,退出磁碟映像檔,再從「應用程式」裡打開,就可以啟用背景同步。", "隔空貼現在是直接從磁碟映像裏開啟的。把它拖進「應用程式」資料夾,推出磁碟映像,再從「應用程式」裏開啟,就可以啟用背景同步。"),+ ("svcStartTitle", "Get started with PasteFerry", "开始使用隔空贴", "PasteFerry を始める", "開始使用隔空貼", "開始使用隔空貼"),+ ("svcStartBody", "PasteFerry runs a small background process that notices clipboard changes and stays connected to your other devices. Once on, it starts at login and keeps syncing even with this window closed.", "隔空贴会在后台运行一个小进程,用来感知剪贴板的变化,并与你的其他设备保持连接。启用后它随系统登录自动启动,关掉这个窗口也会照常同步。", "PasteFerry は小さなバックグラウンドプロセスを動かし、クリップボードの変化を検知して他のデバイスとつながり続けます。有効にするとログイン時に起動し、このウィンドウを閉じても同期を続けます。", "隔空貼會在背景執行一個小程式,用來偵測剪貼簿的變化,並與你的其他裝置保持連線。啟用後它會隨系統登入自動啟動,關掉這個視窗也會照常同步。", "隔空貼會在背景執行一個小型程序,用來偵測剪貼簿的變化,並與你的其他裝置保持連線。啟用後它會隨系統登入自動啟動,關閉這個視窗也會照常同步。"),("svcEnable", "Turn on background sync", "启用后台同步", "バックグラウンド同期を有効にする", "啟用背景同步", "啟用背景同步"),("svcStaleTitle", "Turn background sync on again", "重新启用后台同步", "バックグラウンド同期をもう一度有効にする", "重新啟用背景同步", "重新啟用背景同步"),- ("svcStaleBodyWin", "CopySync has moved, but starting at login still points to the old place. Turn it on again so the background process uses this copy. History and pairings are kept.", "CopySync 换了位置,开机自启还指向原来的地方。重新启用一次,让后台进程指向当前这份 CopySync。历史记录与配对关系都会保留。", "CopySync の場所が変わりましたが、自動起動は以前の場所を指しています。もう一度有効にすると、このコピーを使うようになります。履歴とペアリングは残ります。", "CopySync 換了位置,開機自動啟動還指向原來的地方。重新啟用一次,讓背景程序指向目前這份 CopySync。歷史記錄與配對關係都會保留。", "CopySync 換了位置,開機自動啟動仍指向原來的位置。重新啟用一次,讓背景程序指向目前這份 CopySync。歷史記錄與配對關係都會保留。"),- ("svcStaleBodyMac", "CopySync has moved, or was installed with an old script. Turn it on again so the background process uses this app. History and pairings are kept.", "CopySync 换了位置,或者之前用旧版安装脚本装过。重新启用一次,让后台进程指向当前这个 App。历史记录与配对关系都会保留。", "CopySync の場所が変わったか、古いスクリプトでインストールされています。もう一度有効にすると、このアプリを使うようになります。履歴とペアリングは残ります。", "CopySync 換了位置,或者之前用舊版安裝腳本裝過。重新啟用一次,讓背景程序指向目前這個 App。歷史記錄與配對關係都會保留。", "CopySync 換了位置,或者之前用舊版安裝腳本安裝過。重新啟用一次,讓背景程序指向目前這個 App。歷史記錄與配對關係都會保留。"),+ ("svcStaleBodyWin", "PasteFerry has moved, but starting at login still points to the old place. Turn it on again so the background process uses this copy. History and pairings are kept.", "隔空贴换了位置,开机自启还指向原来的地方。重新启用一次,让后台进程指向当前这份隔空贴。历史记录与配对关系都会保留。", "PasteFerry の場所が変わりましたが、自動起動は以前の場所を指しています。もう一度有効にすると、このコピーを使うようになります。履歴とペアリングは残ります。", "隔空貼換了位置,開機自動啟動還指向原來的地方。重新啟用一次,讓背景程序指向目前這份隔空貼。歷史記錄與配對關係都會保留。", "隔空貼換了位置,開機自動啟動仍指向原來的位置。重新啟用一次,讓背景程序指向目前這份隔空貼。歷史記錄與配對關係都會保留。"),+ ("svcStaleBodyMac", "PasteFerry has moved, or was installed with an old script. Turn it on again so the background process uses this app. History and pairings are kept.", "隔空贴换了位置,或者之前用旧版安装脚本装过。重新启用一次,让后台进程指向当前这个 App。历史记录与配对关系都会保留。", "PasteFerry の場所が変わったか、古いスクリプトでインストールされています。もう一度有効にすると、このアプリを使うようになります。履歴とペアリングは残ります。", "隔空貼換了位置,或者之前用舊版安裝腳本裝過。重新啟用一次,讓背景程序指向目前這個 App。歷史記錄與配對關係都會保留。", "隔空貼換了位置,或者之前用舊版安裝腳本安裝過。重新啟用一次,讓背景程序指向目前這個 App。歷史記錄與配對關係都會保留。"),("svcReenable", "Turn on again", "重新启用", "もう一度有効にする", "重新啟用", "重新啟用"),("svcStoppedTitle", "The background service isn't running", "后台服务没有运行", "バックグラウンドサービスが動いていません", "背景服務沒有在執行", "背景服務沒有執行"),("svcStoppedBody", "It may have just quit; the system usually restarts it within seconds. If you stay on this page, restart it with the button below.", "它可能刚刚退出,系统通常会在几秒内把它重新拉起。如果一直停在这一页,点下面的按钮重新启动。", "終了した直後かもしれません。通常は数秒で再起動されます。この画面のままなら、下のボタンで再起動してください。", "它可能剛剛結束,系統通常會在幾秒內把它重新啟動。如果一直停在這一頁,請點下面的按鈕重新啟動。", "它可能剛剛結束,系統通常會在幾秒內重新啟動它。如果一直停留在這一頁,請按下面的按鈕重新啟動。"),- ("svcDevBodyWin", "This is a development build with no copysyncd.exe next to it. Run scripts\\build-windows.ps1 in the source folder to build a complete version.", "这是开发构建,旁边没有 copysyncd.exe。在源码目录运行 scripts\\build-windows.ps1 构建完整的版本。", "開発ビルドのため copysyncd.exe がありません。ソースフォルダで scripts\\build-windows.ps1 を実行して完全版をビルドしてください。", "這是開發版本,旁邊沒有 copysyncd.exe。在原始碼資料夾執行 scripts\\build-windows.ps1 建置完整的版本。", "這是開發版本,旁邊沒有 copysyncd.exe。在原始碼目錄執行 scripts\\build-windows.ps1 建置完整的版本。"),- ("svcDevBodyLinux", "This is a development build with no copysyncd next to it. Run ./scripts/package-linux.sh in the source folder to build a complete version.", "这是开发构建,旁边没有 copysyncd。在源码目录运行 ./scripts/package-linux.sh 构建完整的版本。", "開発ビルドのため copysyncd がありません。ソースフォルダで ./scripts/package-linux.sh を実行して完全版をビルドしてください。", "這是開發版本,旁邊沒有 copysyncd。在原始碼資料夾執行 ./scripts/package-linux.sh 建置完整的版本。", "這是開發版本,旁邊沒有 copysyncd。在原始碼目錄執行 ./scripts/package-linux.sh 建置完整的版本。"),+ ("svcDevBodyWin", "This is a development build with no pasteferryd.exe next to it. Run scripts\\build-windows.ps1 in the source folder to build a complete version.", "这是开发构建,旁边没有 pasteferryd.exe。在源码目录运行 scripts\\build-windows.ps1 构建完整的版本。", "開発ビルドのため pasteferryd.exe がありません。ソースフォルダで scripts\\build-windows.ps1 を実行して完全版をビルドしてください。", "這是開發版本,旁邊沒有 pasteferryd.exe。在原始碼資料夾執行 scripts\\build-windows.ps1 建置完整的版本。", "這是開發版本,旁邊沒有 pasteferryd.exe。在原始碼目錄執行 scripts\\build-windows.ps1 建置完整的版本。"),+ ("svcDevBodyLinux", "This is a development build with no pasteferryd next to it. Run ./scripts/package-linux.sh in the source folder to build a complete version.", "这是开发构建,旁边没有 pasteferryd。在源码目录运行 ./scripts/package-linux.sh 构建完整的版本。", "開発ビルドのため pasteferryd がありません。ソースフォルダで ./scripts/package-linux.sh を実行して完全版をビルドしてください。", "這是開發版本,旁邊沒有 pasteferryd。在原始碼資料夾執行 ./scripts/package-linux.sh 建置完整的版本。", "這是開發版本,旁邊沒有 pasteferryd。在原始碼目錄執行 ./scripts/package-linux.sh 建置完整的版本。"),("svcDevBodyMac", "This is a development build without the background service. Run ./scripts/install-macos.sh in the source folder to install it.", "这是开发构建,App 里没有内置后台服务。在源码目录运行 ./scripts/install-macos.sh 安装它。", "開発ビルドのためバックグラウンドサービスが含まれていません。ソースフォルダで ./scripts/install-macos.sh を実行してインストールしてください。", "這是開發版本,App 裡沒有內建背景服務。在原始碼資料夾執行 ./scripts/install-macos.sh 安裝它。", "這是開發版本,App 裏沒有內建背景服務。在原始碼目錄執行 ./scripts/install-macos.sh 安裝它。"),("svcLogPath", "Log: {path}", "运行日志:{path}", "ログ:{path}", "記錄檔:{path}", "執行日誌:{path}"),("svcCanDisable", "You can turn background sync off anytime in Settings.", "随时可以在「设置」中停用后台同步。", "バックグラウンド同期は「設定」でいつでもオフにできます。", "隨時可以在「設定」中停用背景同步。", "隨時可以在「設定」中停用背景同步。"),diff --git a/ui/tool/screenshots/screenshots_test.dart b/ui/tool/screenshots/screenshots_test.dartindex ea14fbe..aefbbb4 100644--- a/ui/tool/screenshots/screenshots_test.dart+++ b/ui/tool/screenshots/screenshots_test.dart@@ -9,14 +9,14 @@ import 'dart:async';import 'dart:io';import 'dart:ui' show ImageByteFormat;-import 'package:copysync_ui/app_state.dart';-import 'package:copysync_ui/background_service.dart';-import 'package:copysync_ui/gen/copysync/v1/daemon.pb.dart';-import 'package:copysync_ui/i18n.dart';-import 'package:copysync_ui/main.dart';-import 'package:copysync_ui/theme.dart';-import 'package:copysync_ui/widgets/nearby_dialog.dart';-import 'package:copysync_ui/widgets/pairing_dialog.dart';+import 'package:pasteferry_ui/app_state.dart';+import 'package:pasteferry_ui/background_service.dart';+import 'package:pasteferry_ui/gen/pasteferry/v1/daemon.pb.dart';+import 'package:pasteferry_ui/i18n.dart';+import 'package:pasteferry_ui/main.dart';+import 'package:pasteferry_ui/theme.dart';+import 'package:pasteferry_ui/widgets/nearby_dialog.dart';+import 'package:pasteferry_ui/widgets/pairing_dialog.dart';import 'package:fixnum/fixnum.dart';import 'package:flutter/foundation.dart';import 'package:flutter/gestures.dart';@@ -122,7 +122,7 @@ AppState _demo({LinkState link = LinkState.online,serviceState: service,pendingPairing: pending,status: Status(- version: '1.5.0',+ version: '2.0.0',deviceName: 'MacBook Pro',signalingConnected: link == LinkState.online && server.isNotEmpty,serverConfigured: server.isNotEmpty,diff --git a/ui/windows/CMakeLists.txt b/ui/windows/CMakeLists.txtindex 4d453eb..5164201 100644--- a/ui/windows/CMakeLists.txt+++ b/ui/windows/CMakeLists.txt@@ -1,10 +1,10 @@# Project-level configuration.cmake_minimum_required(VERSION 3.14)-project(copysync_ui LANGUAGES CXX)+project(pasteferry_ui LANGUAGES CXX)# The name of the executable created for the application. Change this to change# the on-disk name of your application.-set(BINARY_NAME "CopySync")+set(BINARY_NAME "PasteFerry")# Explicitly opt in to modern CMake behaviors to avoid warnings with recent# versions of CMake.diff --git a/ui/windows/runner/Runner.rc b/ui/windows/runner/Runner.rcindex a3008ff..acb278b 100644--- a/ui/windows/runner/Runner.rc+++ b/ui/windows/runner/Runner.rc@@ -89,13 +89,13 @@ BEGINBEGINBLOCK "040904e4"BEGIN- VALUE "CompanyName", "CopySync" "\0"- VALUE "FileDescription", "CopySync" "\0"+ VALUE "CompanyName", "PasteFerry" "\0"+ VALUE "FileDescription", "PasteFerry" "\0"VALUE "FileVersion", VERSION_AS_STRING "\0"- VALUE "InternalName", "CopySync" "\0"+ VALUE "InternalName", "PasteFerry" "\0"VALUE "LegalCopyright", "Copyright (C) 2026 baiyuze. GNU AGPL-3.0." "\0"- VALUE "OriginalFilename", "CopySync.exe" "\0"- VALUE "ProductName", "CopySync" "\0"+ VALUE "OriginalFilename", "PasteFerry.exe" "\0"+ VALUE "ProductName", "PasteFerry" "\0"VALUE "ProductVersion", VERSION_AS_STRING "\0"ENDENDdiff --git a/ui/windows/runner/flutter_window.cpp b/ui/windows/runner/flutter_window.cppindex 0f0ecf1..07ff9fe 100644--- a/ui/windows/runner/flutter_window.cpp+++ b/ui/windows/runner/flutter_window.cpp@@ -9,7 +9,7 @@namespace {// 窗口的位置与大小存在这里,下次打开时恢复,相当于 Mac 上的 setFrameAutosaveName-constexpr wchar_t kSettingsKey[] = L"Software\\CopySync";+constexpr wchar_t kSettingsKey[] = L"Software\\PasteFerry";constexpr wchar_t kPlacementValue[] = L"WindowPlacement";// 窗口最小尺寸(逻辑像素),与 Mac 版一致diff --git a/ui/windows/runner/main.cpp b/ui/windows/runner/main.cppindex 6abfb76..e577a45 100644--- a/ui/windows/runner/main.cpp+++ b/ui/windows/runner/main.cpp@@ -11,9 +11,9 @@int APIENTRY wWinMain(_In_ HINSTANCE instance, _In_opt_ HINSTANCE prev,_In_ wchar_t *command_line, _In_ int show_command) {// 只开一个窗口:再次打开时把已有的窗口提到前面,与 Mac 上点 Dock 图标一致- HANDLE single_instance = ::CreateMutexW(nullptr, TRUE, L"Local\\CopySync.UI");+ HANDLE single_instance = ::CreateMutexW(nullptr, TRUE, L"Local\\PasteFerry.UI");if (::GetLastError() == ERROR_ALREADY_EXISTS) {- HWND existing = ::FindWindowW(L"FLUTTER_RUNNER_WIN32_WINDOW", L"CopySync");+ HWND existing = ::FindWindowW(L"FLUTTER_RUNNER_WIN32_WINDOW", L"PasteFerry");if (existing) {if (::IsIconic(existing)) {::ShowWindow(existing, SW_RESTORE);@@ -54,7 +54,7 @@ int APIENTRY wWinMain(_In_ HINSTANCE instance, _In_opt_ HINSTANCE prev,Win32Window::Point origin(static_cast<unsigned int>(std::max(0.0, left)),static_cast<unsigned int>(std::max(0.0, top)));Win32Window::Size size(kWidth, kHeight);- if (!window.Create(L"CopySync", origin, size)) {+ if (!window.Create(L"PasteFerry", origin, size)) {return EXIT_FAILURE;}window.SetQuitOnClose(true);