Skip to content

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.

docs(site): link the Gitee mirror for downloads in mainland China

baiyuze662433505923
diff --git a/README.md b/README.md
index 983ad62..4a0c9d3 100644
--- a/README.md
+++ b/README.md
@@ -15,6 +15,8 @@
<a href="https://pasteferry.cc/en/">Website</a>
·
<a href="README.zh-CN.md">简体中文</a>
+ ·
+ <a href="https://gitee.com/baiyuze/pasteferry/releases">Gitee mirror</a>
</p>
<p align="center">
diff --git a/README.zh-CN.md b/README.zh-CN.md
index 88f61f0..ce00700 100644
--- a/README.zh-CN.md
+++ b/README.zh-CN.md
@@ -14,6 +14,8 @@
·
<a href="https://pasteferry.cc/">项目主页</a>
·
+ <a href="https://gitee.com/baiyuze/pasteferry/releases">国内镜像(Gitee)</a>
+ ·
<a href="README.md">English</a>
</p>
diff --git a/docs/cloud/index.html b/docs/cloud/index.html
index cd1896e..3cc77b6 100644
--- a/docs/cloud/index.html
+++ b/docs/cloud/index.html
@@ -179,7 +179,8 @@
tar xzf pasteferry-server-linux-amd64.tar.gz
cd pasteferry-server-linux-amd64
sudo ./install.sh 203.0.113.10</code></pre>
- </div></li>
+ </div>
+ <p class="small">国内服务器从 GitHub 下载慢的话,可以改从 Gitee 镜像下载:<a href="https://gitee.com/baiyuze/pasteferry/releases/download/v2.2.0/pasteferry-server-linux-amd64.tar.gz">https://gitee.com/baiyuze/pasteferry/releases/download/v2.2.0/pasteferry-server-linux-amd64.tar.gz</a></p></li>
<li>最后显示的 <code>ws://203.0.113.10:8787/signal</code> 就是客户端要填的地址。</li>
</ol>
<ul class="points">
diff --git a/docs/download/index.html b/docs/download/index.html
index b9988c9..9e8f2ba 100644
--- a/docs/download/index.html
+++ b/docs/download/index.html
@@ -86,6 +86,7 @@
<div class="dl-row">
<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">在中国大陆下载慢?用 Gitee 国内镜像:<a href="https://gitee.com/baiyuze/pasteferry/releases/download/v2.2.0/PasteFerry-Setup.exe">安装程序</a> · <a href="https://gitee.com/baiyuze/pasteferry/releases/download/v2.2.0/PasteFerry-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>运行 PasteFerry-Setup.exe,装在当前用户目录下,不需要管理员权限。<span class="aside">提示「Windows 已保护你的电脑」时,点「更多信息」,再点「仍要运行」。</span></li>
@@ -108,6 +109,7 @@
<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">在中国大陆下载慢?用 Gitee 国内镜像:<a href="https://gitee.com/baiyuze/pasteferry/releases/download/v2.2.0/PasteFerry-mac-apple-silicon.dmg">Apple 芯片</a> · <a href="https://gitee.com/baiyuze/pasteferry/releases/download/v2.2.0/PasteFerry-mac-intel.dmg">Intel 芯片</a> · <a href="https://gitee.com/baiyuze/pasteferry/releases/download/v2.2.0/PasteFerry.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>
@@ -150,6 +152,7 @@
<pre><code>tar xzf PasteFerry-linux-amd64.tar.gz
./PasteFerry/install.sh</code></pre>
</div>
+ <p class="small">在中国大陆下载慢?用 Gitee 国内镜像:<a href="https://gitee.com/baiyuze/pasteferry/releases/download/v2.2.0/PasteFerry-linux-amd64.deb">.deb x64</a> · <a href="https://gitee.com/baiyuze/pasteferry/releases/download/v2.2.0/PasteFerry-linux-arm64.deb">.deb ARM64</a> · <a href="https://gitee.com/baiyuze/pasteferry/releases/download/v2.2.0/PasteFerry-linux-amd64.tar.gz">tar.gz x64</a> · <a href="https://gitee.com/baiyuze/pasteferry/releases/download/v2.2.0/PasteFerry-linux-arm64.tar.gz">tar.gz ARM64</a></p>
</div>
<ul class="points">
<li>需要图形桌面:X11,或者带 XWayland 的 Wayland 桌面,GNOME、KDE 等主流桌面默认都带。</li>
@@ -171,6 +174,7 @@
<div><dt>服务器</dt><dd>两台电脑在同一个网络里不需要服务器。跨网络时的几种方式见<a href="../start/#server">快速开始</a>,服务器的安装包在各自的教程里。</dd></div>
<div><dt>校验文件</dt><dd>所有文件的 SHA-256 在 <a href="https://github.com/baiyuze/pasteferry/releases/latest/download/SHA256SUMS">SHA256SUMS</a> 里。</dd></div>
<div><dt>更新内容与旧版本</dt><dd>这一版改了什么见<a href="https://github.com/baiyuze/pasteferry/releases/latest">发布说明</a>,旧版本在 <a href="https://github.com/baiyuze/pasteferry/releases">GitHub Releases</a>。</dd></div>
+ <div><dt>国内镜像</dt><dd>代码和最近两版的安装包同步在 <a href="https://gitee.com/baiyuze/pasteferry/releases">Gitee</a>,与 GitHub 上的文件相同,可以用 SHA256SUMS 核对。</dd></div>
</dl>
</div>
</section>
diff --git a/docs/llms.txt b/docs/llms.txt
index ae8ee99..22710d6 100644
--- a/docs/llms.txt
+++ b/docs/llms.txt
@@ -9,6 +9,7 @@ Name: PasteFerry in English, 隔空贴 in Chinese. Versions before 2.0.0 (Octobe
Key facts:
- Current version: 2.2.0, released 2026-10-19. The official service page shows today's relay allowance as soon as official access is enabled, before any relay is used, and lists whether each device connects directly or through relay. 2.1.0 added optional official public access, direct-first connection with authorized relay fallback, and a daily relay usage page. Official access is off for new installations. Custom servers and LAN work without the private gateway. Both peers need 2.1.0 for official relay; existing direct and self-hosted protocols remain compatible. See https://pasteferry.cc/privacy/ and the public gateway protocol in design/official-gateway.md.
+- Downloads: https://pasteferry.cc/download/ and GitHub Releases. For mainland China, the code and the installers of the latest two releases are mirrored at https://gitee.com/baiyuze/pasteferry/releases (same files; verify with SHA256SUMS).
- 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.
diff --git a/docs/server/index.html b/docs/server/index.html
index b2fa2b8..032040f 100644
--- a/docs/server/index.html
+++ b/docs/server/index.html
@@ -154,6 +154,7 @@
<li>安装在新打开的窗口里进行。最后显示的 <code>ws://…/signal</code> 就是客户端要填的地址。</li>
</ol>
<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>
+ <p class="small">国内服务器从 GitHub 下载慢的话,可以改从 Gitee 镜像下载:<a href="https://gitee.com/baiyuze/pasteferry/releases/download/v2.2.0/pasteferry-server-windows-amd64.zip">https://gitee.com/baiyuze/pasteferry/releases/download/v2.2.0/pasteferry-server-windows-amd64.zip</a></p>
<ul class="points">
<li><strong>作为 Windows 服务运行:</strong>开机就启动,不用登录,也没有窗口。在「服务」里叫 PasteFerry Server。</li>
<li><strong>防火墙已经放行:</strong>脚本添加了一条只针对 pasteferry-server.exe 的入站规则,不用自己开端口。</li>
@@ -219,7 +220,8 @@
tar xzf pasteferry-server-macos.tar.gz
cd pasteferry-server-macos
./install.sh</code></pre>
- </div></li>
+ </div>
+ <p class="small">国内服务器从 GitHub 下载慢的话,可以改从 Gitee 镜像下载:<a href="https://gitee.com/baiyuze/pasteferry/releases/download/v2.2.0/pasteferry-server-macos.tar.gz">https://gitee.com/baiyuze/pasteferry/releases/download/v2.2.0/pasteferry-server-macos.tar.gz</a></p></li>
<li>最后显示的 <code>ws://…/signal</code> 就是客户端要填的地址。</li>
</ol>
<ul class="points">
@@ -275,7 +277,8 @@ cd pasteferry-server-macos
tar xzf pasteferry-server-linux-amd64.tar.gz
cd pasteferry-server-linux-amd64
sudo ./install.sh</code></pre>
- </div></li>
+ </div>
+ <p class="small">国内服务器从 GitHub 下载慢的话,可以改从 Gitee 镜像下载:<a href="https://gitee.com/baiyuze/pasteferry/releases/download/v2.2.0/pasteferry-server-linux-amd64.tar.gz">https://gitee.com/baiyuze/pasteferry/releases/download/v2.2.0/pasteferry-server-linux-amd64.tar.gz</a></p></li>
<li>最后显示的 <code>ws://…/signal</code> 就是客户端要填的地址。</li>
</ol>
<ul class="points">
diff --git a/docs/zh-hk/cloud/index.html b/docs/zh-hk/cloud/index.html
index 8d2ba8b..662c70c 100644
--- a/docs/zh-hk/cloud/index.html
+++ b/docs/zh-hk/cloud/index.html
@@ -179,7 +179,8 @@
tar xzf pasteferry-server-linux-amd64.tar.gz
cd pasteferry-server-linux-amd64
sudo ./install.sh 203.0.113.10</code></pre>
- </div></li>
+ </div>
+ <p class="small">內地伺服器從 GitHub 下載很慢的話,可以改從 Gitee 鏡像下載:<a href="https://gitee.com/baiyuze/pasteferry/releases/download/v2.2.0/pasteferry-server-linux-amd64.tar.gz">https://gitee.com/baiyuze/pasteferry/releases/download/v2.2.0/pasteferry-server-linux-amd64.tar.gz</a></p></li>
<li>最後顯示的 <code>ws://203.0.113.10:8787/signal</code> 就是用戶端要填的地址。</li>
</ol>
<ul class="points">
diff --git a/docs/zh-hk/download/index.html b/docs/zh-hk/download/index.html
index 03dde2a..bff5ec4 100644
--- a/docs/zh-hk/download/index.html
+++ b/docs/zh-hk/download/index.html
@@ -86,6 +86,7 @@
<div class="dl-row">
<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">在內地下載很慢的話,可以改用 Gitee 鏡像:<a href="https://gitee.com/baiyuze/pasteferry/releases/download/v2.2.0/PasteFerry-Setup.exe">安裝程式</a> · <a href="https://gitee.com/baiyuze/pasteferry/releases/download/v2.2.0/PasteFerry-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>執行 PasteFerry-Setup.exe,它會安裝在目前用戶的目錄下,不需要管理員權限。<span class="aside">提示「Windows 已保護您的電腦」時,按「其他資訊」,再按「仍要執行」。</span></li>
@@ -108,6 +109,7 @@
<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">在內地下載很慢的話,可以改用 Gitee 鏡像:<a href="https://gitee.com/baiyuze/pasteferry/releases/download/v2.2.0/PasteFerry-mac-apple-silicon.dmg">Apple 晶片</a> · <a href="https://gitee.com/baiyuze/pasteferry/releases/download/v2.2.0/PasteFerry-mac-intel.dmg">Intel 晶片</a> · <a href="https://gitee.com/baiyuze/pasteferry/releases/download/v2.2.0/PasteFerry.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>
@@ -150,6 +152,7 @@
<pre><code>tar xzf PasteFerry-linux-amd64.tar.gz
./PasteFerry/install.sh</code></pre>
</div>
+ <p class="small">在內地下載很慢的話,可以改用 Gitee 鏡像:<a href="https://gitee.com/baiyuze/pasteferry/releases/download/v2.2.0/PasteFerry-linux-amd64.deb">.deb x64</a> · <a href="https://gitee.com/baiyuze/pasteferry/releases/download/v2.2.0/PasteFerry-linux-arm64.deb">.deb ARM64</a> · <a href="https://gitee.com/baiyuze/pasteferry/releases/download/v2.2.0/PasteFerry-linux-amd64.tar.gz">tar.gz x64</a> · <a href="https://gitee.com/baiyuze/pasteferry/releases/download/v2.2.0/PasteFerry-linux-arm64.tar.gz">tar.gz ARM64</a></p>
</div>
<ul class="points">
<li>需要圖形桌面:X11,或者帶 XWayland 的 Wayland 桌面,GNOME、KDE 等主流桌面預設都已包含。</li>
@@ -171,6 +174,7 @@
<div><dt>伺服器</dt><dd>兩部電腦在同一個網絡裏不需要伺服器。跨網絡時的幾種方式見<a href="../../zh-hk/start/#server">快速開始</a>,伺服器的安裝檔在各自的教學裏。</dd></div>
<div><dt>校驗檔案</dt><dd>所有檔案的 SHA-256 都在 <a href="https://github.com/baiyuze/pasteferry/releases/latest/download/SHA256SUMS">SHA256SUMS</a> 裏。</dd></div>
<div><dt>更新內容與舊版本</dt><dd>這個版本改了甚麼,見<a href="https://github.com/baiyuze/pasteferry/releases/latest">發佈說明</a>;舊版本在 <a href="https://github.com/baiyuze/pasteferry/releases">GitHub Releases</a>。</dd></div>
+ <div><dt>內地鏡像</dt><dd>程式碼和最近兩個版本的安裝檔同步在 <a href="https://gitee.com/baiyuze/pasteferry/releases">Gitee</a>,與 GitHub 上的檔案相同,可以用 SHA256SUMS 校驗。</dd></div>
</dl>
</div>
</section>
diff --git a/docs/zh-hk/server/index.html b/docs/zh-hk/server/index.html
index 771d1f9..fc17f3e 100644
--- a/docs/zh-hk/server/index.html
+++ b/docs/zh-hk/server/index.html
@@ -154,6 +154,7 @@
<li>安裝會在新開啟的視窗裏進行。最後顯示的 <code>ws://…/signal</code> 就是用戶端要填的地址。</li>
</ol>
<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>
+ <p class="small">內地伺服器從 GitHub 下載很慢的話,可以改從 Gitee 鏡像下載:<a href="https://gitee.com/baiyuze/pasteferry/releases/download/v2.2.0/pasteferry-server-windows-amd64.zip">https://gitee.com/baiyuze/pasteferry/releases/download/v2.2.0/pasteferry-server-windows-amd64.zip</a></p>
<ul class="points">
<li><strong>以 Windows 服務形式執行:</strong>開機就啟動,不用登入,也沒有視窗。在「服務」裏叫 PasteFerry Server。</li>
<li><strong>防火牆已經開放:</strong>腳本加入了一條只針對 pasteferry-server.exe 的輸入規則,不用自己開放端口。</li>
@@ -219,7 +220,8 @@
tar xzf pasteferry-server-macos.tar.gz
cd pasteferry-server-macos
./install.sh</code></pre>
- </div></li>
+ </div>
+ <p class="small">內地伺服器從 GitHub 下載很慢的話,可以改從 Gitee 鏡像下載:<a href="https://gitee.com/baiyuze/pasteferry/releases/download/v2.2.0/pasteferry-server-macos.tar.gz">https://gitee.com/baiyuze/pasteferry/releases/download/v2.2.0/pasteferry-server-macos.tar.gz</a></p></li>
<li>最後顯示的 <code>ws://…/signal</code> 就是用戶端要填的地址。</li>
</ol>
<ul class="points">
@@ -275,7 +277,8 @@ cd pasteferry-server-macos
tar xzf pasteferry-server-linux-amd64.tar.gz
cd pasteferry-server-linux-amd64
sudo ./install.sh</code></pre>
- </div></li>
+ </div>
+ <p class="small">內地伺服器從 GitHub 下載很慢的話,可以改從 Gitee 鏡像下載:<a href="https://gitee.com/baiyuze/pasteferry/releases/download/v2.2.0/pasteferry-server-linux-amd64.tar.gz">https://gitee.com/baiyuze/pasteferry/releases/download/v2.2.0/pasteferry-server-linux-amd64.tar.gz</a></p></li>
<li>最後顯示的 <code>ws://…/signal</code> 就是用戶端要填的地址。</li>
</ol>
<ul class="points">
diff --git a/docs/zh-tw/cloud/index.html b/docs/zh-tw/cloud/index.html
index af247da..0e17850 100644
--- a/docs/zh-tw/cloud/index.html
+++ b/docs/zh-tw/cloud/index.html
@@ -179,7 +179,8 @@
tar xzf pasteferry-server-linux-amd64.tar.gz
cd pasteferry-server-linux-amd64
sudo ./install.sh 203.0.113.10</code></pre>
- </div></li>
+ </div>
+ <p class="small">在中國大陸的伺服器從 GitHub 下載很慢的話,可以改從 Gitee 鏡像下載:<a href="https://gitee.com/baiyuze/pasteferry/releases/download/v2.2.0/pasteferry-server-linux-amd64.tar.gz">https://gitee.com/baiyuze/pasteferry/releases/download/v2.2.0/pasteferry-server-linux-amd64.tar.gz</a></p></li>
<li>最後顯示的 <code>ws://203.0.113.10:8787/signal</code> 就是用戶端要填的位址。</li>
</ol>
<ul class="points">
diff --git a/docs/zh-tw/download/index.html b/docs/zh-tw/download/index.html
index 2319968..9fd6795 100644
--- a/docs/zh-tw/download/index.html
+++ b/docs/zh-tw/download/index.html
@@ -86,6 +86,7 @@
<div class="dl-row">
<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">在中國大陸下載很慢的話,可以改用 Gitee 鏡像:<a href="https://gitee.com/baiyuze/pasteferry/releases/download/v2.2.0/PasteFerry-Setup.exe">安裝程式</a> · <a href="https://gitee.com/baiyuze/pasteferry/releases/download/v2.2.0/PasteFerry-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>執行 PasteFerry-Setup.exe,它會安裝在目前使用者的目錄下,不需要系統管理員權限。<span class="aside">出現「Windows 已保護您的電腦」時,點「其他資訊」,再點「仍要執行」。</span></li>
@@ -108,6 +109,7 @@
<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">在中國大陸下載很慢的話,可以改用 Gitee 鏡像:<a href="https://gitee.com/baiyuze/pasteferry/releases/download/v2.2.0/PasteFerry-mac-apple-silicon.dmg">Apple 晶片</a> · <a href="https://gitee.com/baiyuze/pasteferry/releases/download/v2.2.0/PasteFerry-mac-intel.dmg">Intel 晶片</a> · <a href="https://gitee.com/baiyuze/pasteferry/releases/download/v2.2.0/PasteFerry.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>
@@ -150,6 +152,7 @@
<pre><code>tar xzf PasteFerry-linux-amd64.tar.gz
./PasteFerry/install.sh</code></pre>
</div>
+ <p class="small">在中國大陸下載很慢的話,可以改用 Gitee 鏡像:<a href="https://gitee.com/baiyuze/pasteferry/releases/download/v2.2.0/PasteFerry-linux-amd64.deb">.deb x64</a> · <a href="https://gitee.com/baiyuze/pasteferry/releases/download/v2.2.0/PasteFerry-linux-arm64.deb">.deb ARM64</a> · <a href="https://gitee.com/baiyuze/pasteferry/releases/download/v2.2.0/PasteFerry-linux-amd64.tar.gz">tar.gz x64</a> · <a href="https://gitee.com/baiyuze/pasteferry/releases/download/v2.2.0/PasteFerry-linux-arm64.tar.gz">tar.gz ARM64</a></p>
</div>
<ul class="points">
<li>需要圖形桌面:X11,或附有 XWayland 的 Wayland 桌面,GNOME、KDE 等主流桌面預設都有。</li>
@@ -171,6 +174,7 @@
<div><dt>伺服器</dt><dd>兩台電腦在同一個網路裡不需要伺服器。跨網路時的幾種方式見<a href="../../zh-tw/start/#server">快速入門</a>,伺服器的安裝檔在各自的教學裡。</dd></div>
<div><dt>驗證檔案</dt><dd>所有檔案的 SHA-256 都在 <a href="https://github.com/baiyuze/pasteferry/releases/latest/download/SHA256SUMS">SHA256SUMS</a> 裡。</dd></div>
<div><dt>更新內容與舊版本</dt><dd>這一版改了什麼請見<a href="https://github.com/baiyuze/pasteferry/releases/latest">版本說明</a>,舊版本在 <a href="https://github.com/baiyuze/pasteferry/releases">GitHub Releases</a>。</dd></div>
+ <div><dt>中國大陸鏡像</dt><dd>程式碼和最近兩版的安裝檔同步在 <a href="https://gitee.com/baiyuze/pasteferry/releases">Gitee</a>,與 GitHub 上的檔案相同,可以用 SHA256SUMS 驗證。</dd></div>
</dl>
</div>
</section>
diff --git a/docs/zh-tw/server/index.html b/docs/zh-tw/server/index.html
index 68f866f..cb3bb22 100644
--- a/docs/zh-tw/server/index.html
+++ b/docs/zh-tw/server/index.html
@@ -154,6 +154,7 @@
<li>安裝會在新開的視窗裡進行。最後顯示的 <code>ws://…/signal</code> 就是用戶端要填的位址。</li>
</ol>
<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>
+ <p class="small">在中國大陸的伺服器從 GitHub 下載很慢的話,可以改從 Gitee 鏡像下載:<a href="https://gitee.com/baiyuze/pasteferry/releases/download/v2.2.0/pasteferry-server-windows-amd64.zip">https://gitee.com/baiyuze/pasteferry/releases/download/v2.2.0/pasteferry-server-windows-amd64.zip</a></p>
<ul class="points">
<li><strong>以 Windows 服務執行:</strong>開機就啟動,不用登入,也沒有視窗。在「服務」裡的名稱是 PasteFerry Server。</li>
<li><strong>防火牆已經開放:</strong>腳本新增了一條只針對 pasteferry-server.exe 的輸入規則,不用自己開連接埠。</li>
@@ -219,7 +220,8 @@
tar xzf pasteferry-server-macos.tar.gz
cd pasteferry-server-macos
./install.sh</code></pre>
- </div></li>
+ </div>
+ <p class="small">在中國大陸的伺服器從 GitHub 下載很慢的話,可以改從 Gitee 鏡像下載:<a href="https://gitee.com/baiyuze/pasteferry/releases/download/v2.2.0/pasteferry-server-macos.tar.gz">https://gitee.com/baiyuze/pasteferry/releases/download/v2.2.0/pasteferry-server-macos.tar.gz</a></p></li>
<li>最後顯示的 <code>ws://…/signal</code> 就是用戶端要填的位址。</li>
</ol>
<ul class="points">
@@ -275,7 +277,8 @@ cd pasteferry-server-macos
tar xzf pasteferry-server-linux-amd64.tar.gz
cd pasteferry-server-linux-amd64
sudo ./install.sh</code></pre>
- </div></li>
+ </div>
+ <p class="small">在中國大陸的伺服器從 GitHub 下載很慢的話,可以改從 Gitee 鏡像下載:<a href="https://gitee.com/baiyuze/pasteferry/releases/download/v2.2.0/pasteferry-server-linux-amd64.tar.gz">https://gitee.com/baiyuze/pasteferry/releases/download/v2.2.0/pasteferry-server-linux-amd64.tar.gz</a></p></li>
<li>最後顯示的 <code>ws://…/signal</code> 就是用戶端要填的位址。</li>
</ol>
<ul class="points">
diff --git a/tools/site/build.py b/tools/site/build.py
index 0dc4983..9287f09 100644
--- a/tools/site/build.py
+++ b/tools/site/build.py
@@ -28,6 +28,10 @@ BASE = "/"
DL = REPO + "/releases/latest/download/"
VERSION = "2.2.0"
DATE = "2026-10-19"
+# Gitee 国内镜像,由 scripts/gitee-mirror.sh 每次发版同步代码与安装包。Gitee 没有 latest 跳转,
+# 直链带版本号,所以发版后要重新生成网站
+GITEE = "https://gitee.com/baiyuze/pasteferry"
+GITEE_DL = f"{GITEE}/releases/download/v{VERSION}/"
# 语言代码 → (页面目录, html 的 lang, og:locale, 语言名)。顶栏的语言菜单按这个顺序列出。
# 繁体的两份文案由 zh.py 转换后逐条校订,改了 zh.py 要一起改
@@ -836,6 +840,13 @@ def code_block(c: dict, code: str) -> str:
</div>"""
+def gitee_hint(c: dict, name: str) -> str:
+ """中文教程在下载命令下面给出同一个文件在 Gitee 镜像上的地址;其他语言没有这一行。"""
+ if "gitee_hint" not in c:
+ return ""
+ return f'\n <p class="small">{c["gitee_hint"]}<a href="{GITEE_DL}{name}">{GITEE_DL}{name}</a></p>'
+
+
def items(lst: list[str], indent: str = " ") -> str:
return "\n".join(f"{indent}<li>{x}</li>" for x in lst)
@@ -1040,7 +1051,7 @@ cd pasteferry-server-macos
<ol class="steps">
{items(w["steps"])}
</ol>
- <a class="button" href="{DL}pasteferry-server-windows-amd64.zip">{DOWN}{w["download"]}</a>
+ <a class="button" href="{DL}pasteferry-server-windows-amd64.zip">{DOWN}{w["download"]}</a>{gitee_hint(c, "pasteferry-server-windows-amd64.zip")}
<ul class="points">
{items(w["notes"])}
</ul>
@@ -1064,7 +1075,7 @@ cd pasteferry-server-macos
<div class="os-steps">
<ol class="steps">
<li>{m["steps"][0]}
- {code_block(c, mac_dl)}</li>
+ {code_block(c, mac_dl)}{gitee_hint(c, "pasteferry-server-macos.tar.gz")}</li>
{items(m["steps"][1:])}
</ol>
<ul class="points">
@@ -1084,7 +1095,7 @@ cd pasteferry-server-macos
<div class="os-steps">
<ol class="steps">
<li>{l["steps"][0]}
- {code_block(c, linux_dl)}</li>
+ {code_block(c, linux_dl)}{gitee_hint(c, "pasteferry-server-linux-amd64.tar.gz")}</li>
{items(l["steps"][1:])}
</ol>
<ul class="points">
@@ -1274,7 +1285,7 @@ sudo ./install.sh {CLOUD_IP}"""
<ol class="steps">
<li>{cl["install_steps"][0]}</li>
<li>{cl["install_steps"][1]}
- {code_block(c, install)}</li>
+ {code_block(c, install)}{gitee_hint(c, "pasteferry-server-linux-amd64.tar.gz")}</li>
{items(cl["install_steps"][2:], " ")}
</ol>
<ul class="points">
@@ -1601,8 +1612,16 @@ def download_page(code: str) -> str:
base = up + path
links = {"start": base + START, "server": base + START + "#server", "releases": REPO + "/releases",
"sums": DL + "SHA256SUMS", "universal": DL + "PasteFerry.dmg", "portable": DL + "PasteFerry-windows-x64.zip",
- "notes": REPO + "/releases/latest", "lan": base + LAN}
+ "notes": REPO + "/releases/latest", "lan": base + LAN, "gitee": GITEE + "/releases"}
w, m, lx = d["win"], d["mac"], d["linux"]
+ mirror = d.get("mirror")
+
+ def mirror_line(files: list[tuple[str, str]]) -> str:
+ """中文页面在按钮下面列出 Gitee 国内镜像上的同一批文件;其他语言没有这一行。"""
+ if not mirror:
+ return ""
+ anchors = " · ".join(f'<a href="{GITEE_DL}{name}">{label}</a>' for label, name in files)
+ return f'\n <p class="small">{mirror["lead"]}{anchors}</p>'
def button(name: str, label: str, quiet: bool = False) -> str:
return f'<a class="button{" quiet" if quiet else ""}" href="{DL}{name}">{DOWN}{label}</a>'
@@ -1634,7 +1653,7 @@ def download_page(code: str) -> str:
<div class="os-steps">
<div class="dl-row">
{button("PasteFerry-Setup.exe", w["setup"])}
- </div>
+ </div>{mirror_line([(mirror["setup"], "PasteFerry-Setup.exe"), (mirror["portable"], "PasteFerry-windows-x64.zip")]) if mirror else ""}
<p class="small">{fill(w["portable"], links)}</p>
<ol class="steps">
{items(w["steps"])}
@@ -1653,7 +1672,8 @@ def download_page(code: str) -> str:
<div class="dl-row" data-mac-chip>
{button("PasteFerry-mac-apple-silicon.dmg", m["apple"])}
{button("PasteFerry-mac-intel.dmg", m["intel"], True)}
- </div>
+ </div>{mirror_line([(mirror["apple"], "PasteFerry-mac-apple-silicon.dmg"), (mirror["intel"], "PasteFerry-mac-intel.dmg"),
+ (mirror["universal"], "PasteFerry.dmg")]) if mirror else ""}
<p class="small">{fill(m["universal"], links)}</p>
<ol class="steps">
{items(m["steps"])}
@@ -1683,7 +1703,10 @@ def download_page(code: str) -> str:
{button("PasteFerry-linux-amd64.tar.gz", lx["x64"], True)}
{button("PasteFerry-linux-arm64.tar.gz", lx["arm64"], True)}
</div>
- {code_block(c, "tar xzf PasteFerry-linux-amd64.tar.gz" + chr(10) + "./PasteFerry/install.sh")}
+ {code_block(c, "tar xzf PasteFerry-linux-amd64.tar.gz" + chr(10) + "./PasteFerry/install.sh")}{
+ mirror_line([(f".deb {lx['x64']}", "PasteFerry-linux-amd64.deb"), (f".deb {lx['arm64']}", "PasteFerry-linux-arm64.deb"),
+ (f"tar.gz {lx['x64']}", "PasteFerry-linux-amd64.tar.gz"),
+ (f"tar.gz {lx['arm64']}", "PasteFerry-linux-arm64.tar.gz")]) if mirror else ""}
</div>
<ul class="points">
{items(lx["notes"])}
diff --git a/tools/site/content/zh-hk.py b/tools/site/content/zh-hk.py
index d8e9525..367de62 100644
--- a/tools/site/content/zh-hk.py
+++ b/tools/site/content/zh-hk.py
@@ -874,14 +874,18 @@ C = {
],
},
"more_h2": "其他",
+ "mirror": {"lead": "在內地下載很慢的話,可以改用 Gitee 鏡像:", "setup": "安裝程式", "portable": "便攜版",
+ "apple": "Apple 晶片", "intel": "Intel 晶片", "universal": "通用版"},
"more": [
("伺服器", "兩部電腦在同一個網絡裏不需要伺服器。跨網絡時的幾種方式見<a href=\"{server}\">快速開始</a>,"
"伺服器的安裝檔在各自的教學裏。"),
("校驗檔案", "所有檔案的 SHA-256 都在 <a href=\"{sums}\">SHA256SUMS</a> 裏。"),
("更新內容與舊版本", "這個版本改了甚麼,見<a href=\"{notes}\">發佈說明</a>;舊版本在 <a href=\"{releases}\">GitHub Releases</a>。"),
+ ("內地鏡像", "程式碼和最近兩個版本的安裝檔同步在 <a href=\"{gitee}\">Gitee</a>,與 GitHub 上的檔案相同,可以用 SHA256SUMS 校驗。"),
],
},
+ "gitee_hint": "內地伺服器從 GitHub 下載很慢的話,可以改從 Gitee 鏡像下載:",
"ld_description": "在 Mac、Windows 與 Linux 電腦之間同步剪貼簿與檔案的開源工具。複製文字、圖片、檔案或資料夾後,另一部電腦可直接貼上。"
"同一網絡內不需要伺服器;裝置之間 WebRTC 直連、DTLS 端對端加密,跨網絡打不通時經用戶自建伺服器的 TURN 中轉。",
"ld_os": "macOS 13 或以上(Intel 與 Apple 晶片);Windows 10、Windows 11(x64);Linux(x64、ARM64)",
diff --git a/tools/site/content/zh-tw.py b/tools/site/content/zh-tw.py
index 609a7fb..b0e6cdd 100644
--- a/tools/site/content/zh-tw.py
+++ b/tools/site/content/zh-tw.py
@@ -873,14 +873,18 @@ C = {
],
},
"more_h2": "其他",
+ "mirror": {"lead": "在中國大陸下載很慢的話,可以改用 Gitee 鏡像:", "setup": "安裝程式", "portable": "可攜版",
+ "apple": "Apple 晶片", "intel": "Intel 晶片", "universal": "通用版"},
"more": [
("伺服器", "兩台電腦在同一個網路裡不需要伺服器。跨網路時的幾種方式見<a href=\"{server}\">快速入門</a>,"
"伺服器的安裝檔在各自的教學裡。"),
("驗證檔案", "所有檔案的 SHA-256 都在 <a href=\"{sums}\">SHA256SUMS</a> 裡。"),
("更新內容與舊版本", "這一版改了什麼請見<a href=\"{notes}\">版本說明</a>,舊版本在 <a href=\"{releases}\">GitHub Releases</a>。"),
+ ("中國大陸鏡像", "程式碼和最近兩版的安裝檔同步在 <a href=\"{gitee}\">Gitee</a>,與 GitHub 上的檔案相同,可以用 SHA256SUMS 驗證。"),
],
},
+ "gitee_hint": "在中國大陸的伺服器從 GitHub 下載很慢的話,可以改從 Gitee 鏡像下載:",
"ld_description": "在 Mac、Windows 與 Linux 電腦之間同步剪貼簿與檔案的開源工具。複製文字、圖片、檔案或資料夾後,另一台電腦可直接貼上。"
"同一個網路裡不需要伺服器;裝置之間 WebRTC 直連、DTLS 端對端加密,跨網路打不通時,經使用者自行架設的伺服器以 TURN 中繼。",
"ld_os": "macOS 13 以上(Intel 與 Apple 晶片);Windows 10、Windows 11(x64);Linux(x64、ARM64)",
diff --git a/tools/site/content/zh.py b/tools/site/content/zh.py
index 16c004d..17e3171 100644
--- a/tools/site/content/zh.py
+++ b/tools/site/content/zh.py
@@ -870,15 +870,19 @@ C = {
"需要 GTK 3。在 Ubuntu 24.04 的 GNOME(Wayland)上实测过。",
],
},
+ "mirror": {"lead": "在中国大陆下载慢?用 Gitee 国内镜像:", "setup": "安装程序", "portable": "便携版",
+ "apple": "Apple 芯片", "intel": "Intel 芯片", "universal": "通用版"},
"more_h2": "其他",
"more": [
("服务器", "两台电脑在同一个网络里不需要服务器。跨网络时的几种方式见<a href=\"{server}\">快速开始</a>,"
"服务器的安装包在各自的教程里。"),
("校验文件", "所有文件的 SHA-256 在 <a href=\"{sums}\">SHA256SUMS</a> 里。"),
("更新内容与旧版本", "这一版改了什么见<a href=\"{notes}\">发布说明</a>,旧版本在 <a href=\"{releases}\">GitHub Releases</a>。"),
+ ("国内镜像", "代码和最近两版的安装包同步在 <a href=\"{gitee}\">Gitee</a>,与 GitHub 上的文件相同,可以用 SHA256SUMS 核对。"),
],
},
+ "gitee_hint": "国内服务器从 GitHub 下载慢的话,可以改从 Gitee 镜像下载:",
"ld_description": "在 Mac、Windows 与 Linux 电脑之间同步剪贴板与文件的开源工具。复制文本、图片、文件或文件夹后,另一台电脑可直接粘贴。"
"同一网络里不需要服务器;设备间 WebRTC 直连、DTLS 端到端加密,跨网络打不通时经用户自建服务器的 TURN 中转。",
"ld_os": "macOS 13 及以上(Intel 与 Apple 芯片);Windows 10、Windows 11(x64);Linux(x64、ARM64)",