Turn any website into a lightweight desktop app with one command, on macOS, Windows and Linux.
Rust chatgptclaudeclidesktopdesktop-appelectron-alternativegeminilinuxmacosnativefierno-electronrusttauriweb-to-desktopwebsite-to-appwebviewwindowsyoutube
docs: tighten readme and help docs wording
Tw931a190f840d9d
diff --git a/README.md b/README.mdindex e0b21bbc..eefc242e 100644--- a/README.md+++ b/README.md@@ -12,7 +12,7 @@## Features-- 🎐 **Lightweight**: Installer is nearly 20 times smaller than Electron packages, typically under 10M on disk+- 🎐 **Lightweight**: Installer is nearly 20 times smaller than Electron packages, typically under 10 MB on disk- 🚀 **Fast**: Built with Rust Tauri, much faster than traditional JS frameworks with lower memory usage- ⚡ **Easy to use**: One-command packaging via CLI or online building, no complex configuration needed- 📦 **Feature-rich**: Supports shortcuts, immersive windows, drag & drop, style customization, ad removal@@ -152,19 +152,19 @@| <kbd>⌘</kbd> + <kbd>]</kbd> | <kbd>Ctrl</kbd> + <kbd>→</kbd> | Go to the next page || <kbd>⌘</kbd> + <kbd>↑</kbd> | <kbd>Ctrl</kbd> + <kbd>↑</kbd> | Auto scroll to top of page || <kbd>⌘</kbd> + <kbd>↓</kbd> | <kbd>Ctrl</kbd> + <kbd>↓</kbd> | Auto scroll to bottom of page |-| <kbd>⌘</kbd> + <kbd>r</kbd> | <kbd>Ctrl</kbd> + <kbd>r</kbd> | Refresh Page |-| <kbd>⌘</kbd> + <kbd>w</kbd> | <kbd>Ctrl</kbd> + <kbd>w</kbd> | Hide window, not quit |-| <kbd>⌘</kbd> + <kbd>-</kbd> | <kbd>Ctrl</kbd> + <kbd>-</kbd> | Zoom out the page |-| <kbd>⌘</kbd> + <kbd>=</kbd> | <kbd>Ctrl</kbd> + <kbd>=</kbd> | Zoom in the Page |-| <kbd>⌘</kbd> + <kbd>0</kbd> | <kbd>Ctrl</kbd> + <kbd>0</kbd> | Reset the page zoom |-| <kbd>⌘</kbd> + <kbd>L</kbd> | <kbd>Ctrl</kbd> + <kbd>L</kbd> | Copy Current Page URL |-| <kbd>⌘</kbd> + <kbd>⇧</kbd> + <kbd>⌥</kbd> + <kbd>V</kbd> | <kbd>Ctrl</kbd> + <kbd>Shift</kbd> + <kbd>V</kbd> | Paste and Match Style |-| <kbd>⌘</kbd> + <kbd>⇧</kbd> + <kbd>H</kbd> | <kbd>Ctrl</kbd> + <kbd>Shift</kbd> + <kbd>H</kbd> | Go to Home Page |-| <kbd>⌘</kbd> + <kbd>⌥</kbd> + <kbd>I</kbd> | <kbd>Ctrl</kbd> + <kbd>Shift</kbd> + <kbd>I</kbd> | Toggle Developer Tools (Debug Only) |-| <kbd>⌘</kbd> + <kbd>⇧</kbd> + <kbd>⌫</kbd> | <kbd>Ctrl</kbd> + <kbd>Shift</kbd> + <kbd>Del</kbd> | Clear Cache & Restart |+| <kbd>⌘</kbd> + <kbd>R</kbd> | <kbd>Ctrl</kbd> + <kbd>R</kbd> | Refresh page |+| <kbd>⌘</kbd> + <kbd>W</kbd> | <kbd>Ctrl</kbd> + <kbd>W</kbd> | Hide window, not quit |+| <kbd>⌘</kbd> + <kbd>-</kbd> | <kbd>Ctrl</kbd> + <kbd>-</kbd> | Zoom out |+| <kbd>⌘</kbd> + <kbd>=</kbd> | <kbd>Ctrl</kbd> + <kbd>=</kbd> | Zoom in |+| <kbd>⌘</kbd> + <kbd>0</kbd> | <kbd>Ctrl</kbd> + <kbd>0</kbd> | Reset zoom |+| <kbd>⌘</kbd> + <kbd>L</kbd> | <kbd>Ctrl</kbd> + <kbd>L</kbd> | Copy current page URL |+| <kbd>⌘</kbd> + <kbd>⇧</kbd> + <kbd>⌥</kbd> + <kbd>V</kbd> | <kbd>Ctrl</kbd> + <kbd>Shift</kbd> + <kbd>V</kbd> | Paste and match style |+| <kbd>⌘</kbd> + <kbd>⇧</kbd> + <kbd>H</kbd> | <kbd>Ctrl</kbd> + <kbd>Shift</kbd> + <kbd>H</kbd> | Go to home page |+| <kbd>⌘</kbd> + <kbd>⌥</kbd> + <kbd>I</kbd> | <kbd>Ctrl</kbd> + <kbd>Shift</kbd> + <kbd>I</kbd> | Toggle developer tools (debug only) |+| <kbd>⌘</kbd> + <kbd>⇧</kbd> + <kbd>⌫</kbd> | <kbd>Ctrl</kbd> + <kbd>Shift</kbd> + <kbd>Del</kbd> | Clear cache and restart || <kbd>⌃</kbd> + <kbd>⌘</kbd> + <kbd>F</kbd> | <kbd>F11</kbd> | Toggle native window fullscreen |-In addition, double-click the title bar to switch to full-screen mode. On Windows and Linux, use `--hide-window-decorations` for a frameless window with a top drag region. For Mac users, you can also use the gesture to go to the previous or next page and drag the title bar to move the window. The new menu also offers options for navigation, zoom, and window controls.+Double-click the title bar to toggle fullscreen. On Windows and Linux, `--hide-window-decorations` gives a frameless window with a top drag region. On Mac, swipe to go back or forward and drag the title bar to move the window, and the menu bar has navigation, zoom and window controls.</details>@@ -176,16 +176,26 @@ In addition, double-click the title bar to switch to full-screen mode. On Window# Install Pake CLIpnpm install -g pake-cli-# Basic usage - automatically fetches website icon+# Basic usage, fetches the website icon automaticallypake https://github.com --name GitHub-# Advanced usage with custom options+# Advanced usage, custom optionspake https://weekly.tw93.fun --name Weekly --icon https://cdn.tw93.fun/pake/weekly.icns --width 1200 --height 800 --hide-title-bar```-First-time packaging requires environment setup and may be slower, subsequent builds are fast. For complete parameter documentation, see [CLI Usage Guide](docs/cli-usage.md). Don't want to use CLI? Try [GitHub Actions Online Building](docs/github-actions-usage.md).+The first build sets up the environment and takes a while, later builds are fast. See the [CLI Usage Guide](docs/cli-usage.md) for every option, or try [GitHub Actions Online Building](docs/github-actions-usage.md) if you'd rather skip the command line.-Using Pake from a script or AI agent? Pass `--json` for machine-readable results, describe apps declaratively with `--config app.json` ([schema](schema/pake.schema.json)), and package local build output directly with `pake ./dist --name MyTool`. See [llms.txt](llms.txt) for the full agent contract. To install the official skill, run `/plugin marketplace add tw93/Pake` and `/plugin install pake@pake` in Claude Code, or `codex plugin marketplace add tw93/Pake` and `codex plugin add pake@pake` in Codex.+Using Pake from a script or AI agent? Pass `--json` for machine-readable results, describe apps declaratively with `--config app.json` ([schema](schema/pake.schema.json)), and package local build output directly with `pake ./dist --name MyTool`. See [llms.txt](llms.txt) for the full agent contract. The official skill installs like this:++```text+# Claude Code+/plugin marketplace add tw93/Pake+/plugin install pake@pake++# Codex+codex plugin marketplace add tw93/Pake+codex plugin add pake@pake+```Copy this to your AI agent to get started:@@ -195,7 +205,7 @@ Use Pake (npm i -g pake-cli) to package webpages as desktop apps. Read https://u## Development-Requires Rust `>=1.85` and Node `>=22` (recommended LTS; `>=20.9` also works). For detailed installation guide, see [Tauri documentation](https://v2.tauri.app/start/prerequisites/). If unfamiliar with development environment, use the CLI tool instead.+Requires Rust `>=1.85` and Node `>=22` (recommended LTS; `>=20.9` also works), see the [Tauri documentation](https://v2.tauri.app/start/prerequisites/) for setup. If you are new to this toolchain, the CLI is the easier path.```bash# Install dependencies@@ -220,9 +230,9 @@ Pake wouldn't be possible without these incredible contributors. ❤️## Support-- The most direct way to support me is getting [Mole for Mac](https://mole.fit), my paid Mac cleanup app.-- If Pake helped you, give it a star, [share it](https://twitter.com/intent/tweet?url=https://github.com/tw93/Pake&text=Pake%20-%20Turn%20any%20webpage%20into%20a%20desktop%20app%20with%20one%20command.%20Nearly%2020x%20smaller%20than%20Electron%20packages,%20supports%20macOS%20Windows%20Linux), or open an issue or PR.-- I have two cats, TangYuan and Coke. If you think Pake delights your life, you can feed them <a href="https://cats.tw93.fun?name=Pake" target="_blank">canned food 🥩</a>.+- The most direct way to support me is getting [Mole for Mac](https://mole.fit), my paid Mac cleanup app+- If Pake helped you, give it a star, [share it](https://twitter.com/intent/tweet?url=https://github.com/tw93/Pake&text=Pake%20-%20Turn%20any%20webpage%20into%20a%20desktop%20app%20with%20one%20command.%20Nearly%2020x%20smaller%20than%20Electron%20packages,%20supports%20macOS%20Windows%20Linux), or open an issue or PR, including sites that would make good desktop apps+- I have two cats, TangYuan and Coke, and if Pake delights your life, you can feed them <a href="https://cats.tw93.fun?name=Pake" target="_blank">canned food 🥩</a><details><summary>These lovely people already did 🐱</summary>diff --git a/README_CN.md b/README_CN.mdindex 5f65f122..b0b1bd5a 100644--- a/README_CN.md+++ b/README_CN.md@@ -153,8 +153,8 @@| <kbd>⌘</kbd> + <kbd>]</kbd> | <kbd>Ctrl</kbd> + <kbd>→</kbd> | 前进到下一个页面 || <kbd>⌘</kbd> + <kbd>↑</kbd> | <kbd>Ctrl</kbd> + <kbd>↑</kbd> | 自动滚动到页面顶部 || <kbd>⌘</kbd> + <kbd>↓</kbd> | <kbd>Ctrl</kbd> + <kbd>↓</kbd> | 自动滚动到页面底部 |-| <kbd>⌘</kbd> + <kbd>r</kbd> | <kbd>Ctrl</kbd> + <kbd>r</kbd> | 刷新页面 |-| <kbd>⌘</kbd> + <kbd>w</kbd> | <kbd>Ctrl</kbd> + <kbd>w</kbd> | 隐藏窗口(非退出) |+| <kbd>⌘</kbd> + <kbd>R</kbd> | <kbd>Ctrl</kbd> + <kbd>R</kbd> | 刷新页面 |+| <kbd>⌘</kbd> + <kbd>W</kbd> | <kbd>Ctrl</kbd> + <kbd>W</kbd> | 隐藏窗口(非退出) || <kbd>⌘</kbd> + <kbd>-</kbd> | <kbd>Ctrl</kbd> + <kbd>-</kbd> | 缩小页面 || <kbd>⌘</kbd> + <kbd>=</kbd> | <kbd>Ctrl</kbd> + <kbd>=</kbd> | 放大页面 || <kbd>⌘</kbd> + <kbd>0</kbd> | <kbd>Ctrl</kbd> + <kbd>0</kbd> | 重置页面缩放 |@@ -165,7 +165,7 @@| <kbd>⌘</kbd> + <kbd>⇧</kbd> + <kbd>⌫</kbd> | <kbd>Ctrl</kbd> + <kbd>Shift</kbd> + <kbd>Del</kbd> | 清除缓存并重启 || <kbd>⌃</kbd> + <kbd>⌘</kbd> + <kbd>F</kbd> | <kbd>F11</kbd> | 切换原生全屏 |-此外还支持双击标题栏切换全屏。Windows 和 Linux 可使用 `--hide-window-decorations` 创建带顶部拖拽区域的无边框窗口。Mac 支持手势滑动返回与前进,菜单栏也提供了导航、缩放和窗口控制等选项。+双击标题栏可以切换全屏,Windows 和 Linux 加上 `--hide-window-decorations` 会得到带顶部拖拽区域的无边框窗口,Mac 支持手势滑动返回与前进,也可以拖动标题栏移动窗口,菜单栏里也有导航、缩放和窗口控制等选项。</details>@@ -177,16 +177,26 @@# 安装 Pake CLIpnpm install -g pake-cli-# 基础用法 - 自动获取网站图标+# 基础用法,自动获取网站图标pake https://github.com --name GitHub-# 高级用法:自定义选项+# 高级用法,自定义选项pake https://weekly.tw93.fun --name Weekly --icon https://cdn.tw93.fun/pake/weekly.icns --width 1200 --height 800 --hide-title-bar```首次打包需要准备构建环境,耗时会稍长一些,后续打包会很快。完整参数说明查看 [CLI 使用指南](docs/cli-usage_CN.md),不想用命令行可以试试 [GitHub Actions 在线构建](docs/github-actions-usage_CN.md)。-在脚本或 AI agent 里使用 Pake?加 `--json` 获得机器可读结果,用 `--config app.json` 声明式描述应用([schema](schema/pake.schema.json)),本地构建产物可直接 `pake ./dist --name MyTool` 打包。完整 agent 契约见 [llms.txt](llms.txt)。安装官方 skill 在 Claude Code 里运行 `/plugin marketplace add tw93/Pake` 和 `/plugin install pake@pake`,在 Codex 里运行 `codex plugin marketplace add tw93/Pake` 和 `codex plugin add pake@pake`。+在脚本或 AI agent 里使用 Pake 时,加 `--json` 获得机器可读结果,用 `--config app.json` 声明式描述应用([schema](schema/pake.schema.json)),本地构建产物可直接 `pake ./dist --name MyTool` 打包,完整 agent 契约见 [llms.txt](llms.txt),官方 skill 这样安装:++```text+# Claude Code+/plugin marketplace add tw93/Pake+/plugin install pake@pake++# Codex+codex plugin marketplace add tw93/Pake+codex plugin add pake@pake+```把下面这段复制给你的 AI agent 即可开始:@@ -196,7 +206,7 @@ pake https://weekly.tw93.fun --name Weekly --icon https://cdn.tw93.fun/pake/week## 定制开发-需要 Rust `>=1.85` 和 Node `>=22`(推荐 LTS,较旧的 `>=20.9` 也可使用),详细安装指南参考 [Tauri 文档](https://tauri.app/start/prerequisites/)。不熟悉开发环境建议直接使用命令行工具。+需要 Rust `>=1.85` 和 Node `>=22`(推荐 LTS,较旧的 `>=20.9` 也可使用),详细安装指南参考 [Tauri 文档](https://v2.tauri.app/start/prerequisites/),不熟悉开发环境的话可以直接使用命令行工具。```bash# 安装依赖@@ -216,21 +226,19 @@ pnpm run buildPake 的发展离不开这些优秀的贡献者 ❤️<a href="https://github.com/tw93/Pake/graphs/contributors">- <img src="https://raw.githubusercontent.com/tw93/Pake/main/CONTRIBUTORS.svg?sanitize=true" alt="Contributors" width="1000" />+ <img src="./CONTRIBUTORS.svg?v=2" alt="Contributors" width="1000" /></a>## 支持-1. 购买我做的 Mac 清理应用 [Mole for Mac](https://mole.fit),是对我最直接的支持。-2. 如果你喜欢 Pake,可以在 Github Star,更欢迎 [推荐](https://twitter.com/intent/tweet?url=https://github.com/tw93/Pake&text=Pake%20-%20一键打包网页生成轻量桌面应用,比%20Electron%20小%2020%20倍,支持%20macOS%20Windows%20Linux) 给志同道合的朋友使用。-3. 可以关注我的 [Twitter](https://twitter.com/HiTw93) 获取最新的 Pake 更新消息,也欢迎加入 [Telegram](https://t.me/+9f9gf4ZrFSQ2OWVl) 聊天群。-4. 希望大伙玩的过程中有一种学习新技术的喜悦感,发现适合做成桌面 App 的网页也欢迎告诉我。-5. 我有两只猫,一只叫汤圆,一只可乐,假如 Pake 让你生活更美好,可以给她们 <a href="https://cats.tw93.fun?name=Pake" target="_blank">喂罐头 🥩</a>。+- 购买我做的 Mac 清理应用 [Mole for Mac](https://mole.fit),是对我最直接的支持+- 如果你喜欢 Pake,可以在 GitHub 点个 Star,[推荐](https://twitter.com/intent/tweet?url=https://github.com/tw93/Pake&text=Pake%20-%20一键打包网页生成轻量桌面应用,比%20Electron%20小%2020%20倍,支持%20macOS%20Windows%20Linux) 给志同道合的朋友,遇到问题或发现适合做成桌面 App 的网页,也欢迎提 issue 和 PR+- 我有两只猫,一只叫汤圆,一只叫可乐,假如 Pake 让你的生活更美好,可以给她们<a href="https://cats.tw93.fun?name=Pake" target="_blank">喂罐头 🥩</a><details><summary>这些可爱的朋友已经喂过了 🐱</summary><br/>-<a href="https://cats.tw93.fun?name=Pake"><img src="https://cdn.jsdelivr.net/gh/tw93/sponsors@main/assets/sponsors.svg" width="1000px" /></a>+<a href="https://cats.tw93.fun?name=Pake"><img src="https://cdn.jsdelivr.net/gh/tw93/sponsors@main/assets/sponsors.svg" width="1000" loading="lazy" /></a></details>## 开源协议diff --git a/README_DE.md b/README_DE.mdindex 12b79968..cfde1e03 100644--- a/README_DE.md+++ b/README_DE.md@@ -153,8 +153,8 @@| <kbd>⌘</kbd> + <kbd>]</kbd> | <kbd>Ctrl</kbd> + <kbd>→</kbd> | Vorwärts zur nächsten Seite || <kbd>⌘</kbd> + <kbd>↑</kbd> | <kbd>Ctrl</kbd> + <kbd>↑</kbd> | Ganz nach oben scrollen || <kbd>⌘</kbd> + <kbd>↓</kbd> | <kbd>Ctrl</kbd> + <kbd>↓</kbd> | Ganz nach unten scrollen |-| <kbd>⌘</kbd> + <kbd>r</kbd> | <kbd>Ctrl</kbd> + <kbd>r</kbd> | Seite neu laden |-| <kbd>⌘</kbd> + <kbd>w</kbd> | <kbd>Ctrl</kbd> + <kbd>w</kbd> | Fenster ausblenden (nicht beenden) |+| <kbd>⌘</kbd> + <kbd>R</kbd> | <kbd>Ctrl</kbd> + <kbd>R</kbd> | Seite neu laden |+| <kbd>⌘</kbd> + <kbd>W</kbd> | <kbd>Ctrl</kbd> + <kbd>W</kbd> | Fenster ausblenden (nicht beenden) || <kbd>⌘</kbd> + <kbd>-</kbd> | <kbd>Ctrl</kbd> + <kbd>-</kbd> | Seite verkleinern || <kbd>⌘</kbd> + <kbd>=</kbd> | <kbd>Ctrl</kbd> + <kbd>=</kbd> | Seite vergrößern || <kbd>⌘</kbd> + <kbd>0</kbd> | <kbd>Ctrl</kbd> + <kbd>0</kbd> | Zoom zurücksetzen |@@ -165,7 +165,7 @@| <kbd>⌘</kbd> + <kbd>⇧</kbd> + <kbd>⌫</kbd> | <kbd>Ctrl</kbd> + <kbd>Shift</kbd> + <kbd>Del</kbd> | Cache leeren und neu starten || <kbd>⌃</kbd> + <kbd>⌘</kbd> + <kbd>F</kbd> | <kbd>F11</kbd> | Vollbild umschalten |-Durch Doppelklick auf die Titelleiste lässt sich das Vollbild ebenfalls umschalten. Unter Windows und Linux ermöglicht `--hide-window-decorations` rahmenlose Fenster mit oberem Ziehbereich. Auf dem Mac werden Wischgesten für Vor und Zurück sowie Menübefehle zur Fenstersteuerung unterstützt.+Durch Doppelklick auf die Titelleiste lässt sich das Vollbild ebenfalls umschalten. Unter Windows und Linux ermöglicht `--hide-window-decorations` rahmenlose Fenster mit oberem Ziehbereich. Auf dem Mac funktionieren Wischgesten für Vor und Zurück, die Titelleiste lässt sich zum Verschieben des Fensters ziehen, und die Menüleiste bietet Navigation, Zoom und Fenstersteuerung.</details>@@ -177,16 +177,26 @@ Durch Doppelklick auf die Titelleiste lässt sich das Vollbild ebenfalls umschal# Pake CLI installierenpnpm install -g pake-cli-# Standardnutzung - Website-Icon automatisch abrufen+# Standardnutzung, Website-Icon automatisch abrufenpake https://github.com --name GitHub-# Erweiterte Nutzung mit benutzerdefinierten Optionen+# Erweiterte Nutzung, benutzerdefinierte Optionenpake https://weekly.tw93.fun --name Weekly --icon https://cdn.tw93.fun/pake/weekly.icns --width 1200 --height 800 --hide-title-bar```Die Erstpaketierung dauert durch die Einrichtung der Build-Umgebung etwas länger, Folge-Builds sind sehr schnell. Vollständige Parameter finden Sie in der [CLI-Anleitung](docs/cli-usage.md). Alternativ steht der [GitHub Actions Online-Build](docs/github-actions-usage.md) bereit.-Pake in Skripten oder mit AI-Agenten nutzen? Übergeben Sie `--json` für maschinenlesbare Ausgaben, beschreiben Sie Apps deklarativ mit `--config app.json` ([Schema](schema/pake.schema.json)), oder paketieren Sie lokale Build-Ausgaben direkt per `pake ./dist --name MyTool`. Vollständiger Agent-Vertrag unter [llms.txt](llms.txt). Offiziellen Skill installieren: in Claude Code `/plugin marketplace add tw93/Pake` und `/plugin install pake@pake` ausführen; in Codex `codex plugin marketplace add tw93/Pake` und `codex plugin add pake@pake`.+Pake in Skripten oder mit AI-Agenten nutzen? Übergeben Sie `--json` für maschinenlesbare Ausgaben, beschreiben Sie Apps deklarativ mit `--config app.json` ([Schema](schema/pake.schema.json)), oder paketieren Sie lokale Build-Ausgaben direkt per `pake ./dist --name MyTool`. Vollständiger Agent-Vertrag unter [llms.txt](llms.txt). Den offiziellen Skill installieren Sie so:++```text+# Claude Code+/plugin marketplace add tw93/Pake+/plugin install pake@pake++# Codex+codex plugin marketplace add tw93/Pake+codex plugin add pake@pake+```Übergeben Sie folgenden Prompt an Ihren AI-Agenten:@@ -196,7 +206,7 @@ Verwende Pake (npm i -g pake-cli), um Webseiten als Desktop-Apps zu paketieren.## Entwicklung-Erfordert Rust `>=1.85` und Node `>=22` (empfohlenes LTS; `>=20.9` ebenfalls lauffähig). Installationsanleitung unter [Tauri-Dokumentation](https://tauri.app/start/prerequisites/). Wenn Sie mit der Entwicklungsumgebung nicht vertraut sind, empfiehlt sich das CLI-Tool.+Erfordert Rust `>=1.85` und Node `>=22` (empfohlenes LTS; `>=20.9` ebenfalls lauffähig). Installationsanleitung unter [Tauri-Dokumentation](https://v2.tauri.app/start/prerequisites/). Wenn Sie mit der Entwicklungsumgebung nicht vertraut sind, empfiehlt sich das CLI-Tool.```bash# Abhängigkeiten installieren@@ -216,21 +226,19 @@ Stilanpassungen, Funktionserweiterungen und Container-Kommunikation finden Sie iPake wäre ohne diese großartigen Mitwirkenden nicht möglich ❤️<a href="https://github.com/tw93/Pake/graphs/contributors">- <img src="https://raw.githubusercontent.com/tw93/Pake/main/CONTRIBUTORS.svg?sanitize=true" alt="Contributors" width="1000" />+ <img src="./CONTRIBUTORS.svg?v=2" alt="Contributors" width="1000" /></a>## Unterstützung-1. Die direkteste Unterstützung ist der Kauf meiner Mac-Bereinigungs-App [Mole for Mac](https://mole.fit).-2. Wenn Pake Ihnen geholfen hat, geben Sie dem Projekt einen Stern auf GitHub oder [empfehlen Sie es weiter](https://twitter.com/intent/tweet?url=https://github.com/tw93/Pake&text=Pake%20-%20Verwandeln%20Sie%20jede%20Webseite%20mit%20einem%20einzigen%20Befehl%20in%20eine%20Desktop-App.%20Unterst%C3%BCtzt%20macOS,%20Windows%20und%20Linux).-3. Neueste Updates teile ich auf [Twitter](https://twitter.com/HiTw93); treten Sie auch gerne unserer [Telegram](https://t.me/+9f9gf4ZrFSQ2OWVl)-Gruppe bei.-4. Ich wünsche viel Freude beim Ausprobieren neuer Technologien. Wenn Sie Websites entdecken, die sich ideal als Desktop-App eignen, freue ich mich über Feedback.-5. Ich habe zwei Katzen, TangYuan und Coke. Wenn Pake Ihren Alltag bereichert hat, spendieren Sie ihnen gerne ein <a href="https://cats.tw93.fun?name=Pake" target="_blank">Dosenfutter 🥩</a>.+- Die direkteste Unterstützung ist der Kauf meiner Mac-Bereinigungs-App [Mole for Mac](https://mole.fit)+- Wenn Pake Ihnen geholfen hat, geben Sie dem Projekt einen Stern auf GitHub, [empfehlen Sie es weiter](https://twitter.com/intent/tweet?url=https://github.com/tw93/Pake&text=Pake%20-%20Verwandeln%20Sie%20jede%20Webseite%20mit%20einem%20einzigen%20Befehl%20in%20eine%20Desktop-App.%20Unterst%C3%BCtzt%20macOS,%20Windows%20und%20Linux) oder öffnen Sie ein Issue oder einen PR, auch für Websites, die sich gut als Desktop-App eignen+- Ich habe zwei Katzen, TangYuan und Coke, und wenn Pake Ihren Alltag bereichert hat, spendieren Sie ihnen gerne ein <a href="https://cats.tw93.fun?name=Pake" target="_blank">Dosenfutter 🥩</a><details><summary>Diese freundlichen Menschen haben bereits gespendet 🐱</summary><br/>-<a href="https://cats.tw93.fun?name=Pake"><img src="https://cdn.jsdelivr.net/gh/tw93/sponsors@main/assets/sponsors.svg" width="1000px" /></a>+<a href="https://cats.tw93.fun?name=Pake"><img src="https://cdn.jsdelivr.net/gh/tw93/sponsors@main/assets/sponsors.svg" width="1000" loading="lazy" /></a></details>## Open-Source-Lizenzdiff --git a/README_FR.md b/README_FR.mdindex 1792d78b..05c142c0 100644--- a/README_FR.md+++ b/README_FR.md@@ -153,8 +153,8 @@| <kbd>⌘</kbd> + <kbd>]</kbd> | <kbd>Ctrl</kbd> + <kbd>→</kbd> | Page suivante || <kbd>⌘</kbd> + <kbd>↑</kbd> | <kbd>Ctrl</kbd> + <kbd>↑</kbd> | Défilement tout en haut || <kbd>⌘</kbd> + <kbd>↓</kbd> | <kbd>Ctrl</kbd> + <kbd>↓</kbd> | Défilement tout en bas |-| <kbd>⌘</kbd> + <kbd>r</kbd> | <kbd>Ctrl</kbd> + <kbd>r</kbd> | Actualiser la page |-| <kbd>⌘</kbd> + <kbd>w</kbd> | <kbd>Ctrl</kbd> + <kbd>w</kbd> | Masquer la fenêtre (sans quitter) |+| <kbd>⌘</kbd> + <kbd>R</kbd> | <kbd>Ctrl</kbd> + <kbd>R</kbd> | Actualiser la page |+| <kbd>⌘</kbd> + <kbd>W</kbd> | <kbd>Ctrl</kbd> + <kbd>W</kbd> | Masquer la fenêtre (sans quitter) || <kbd>⌘</kbd> + <kbd>-</kbd> | <kbd>Ctrl</kbd> + <kbd>-</kbd> | Réduire le zoom || <kbd>⌘</kbd> + <kbd>=</kbd> | <kbd>Ctrl</kbd> + <kbd>=</kbd> | Agrandir le zoom || <kbd>⌘</kbd> + <kbd>0</kbd> | <kbd>Ctrl</kbd> + <kbd>0</kbd> | Réinitialiser le zoom |@@ -165,7 +165,7 @@| <kbd>⌘</kbd> + <kbd>⇧</kbd> + <kbd>⌫</kbd> | <kbd>Ctrl</kbd> + <kbd>Shift</kbd> + <kbd>Del</kbd> | Vider le cache et redémarrer || <kbd>⌃</kbd> + <kbd>⌘</kbd> + <kbd>F</kbd> | <kbd>F11</kbd> | Plein écran natif |-Un double-clic sur la barre de titre permet également de basculer en plein écran. Sous Windows et Linux, `--hide-window-decorations` permet de créer une fenêtre sans bordure avec zone supérieure déplaçable. Sur Mac, les gestes de balayage pour naviguer ainsi que les contrôles de fenêtre via le menu sont pris en charge.+Un double-clic sur la barre de titre permet également de basculer en plein écran. Sous Windows et Linux, `--hide-window-decorations` permet de créer une fenêtre sans bordure avec zone supérieure déplaçable. Sur Mac, un balayage permet d'avancer ou de reculer, la barre de titre se fait glisser pour déplacer la fenêtre, et la barre de menus propose navigation, zoom et contrôle des fenêtres.</details>@@ -177,16 +177,26 @@ Un double-clic sur la barre de titre permet également de basculer en plein écr# Installer Pake CLIpnpm install -g pake-cli-# Utilisation basique - récupération automatique de l'icône+# Utilisation basique, récupération automatique de l'icônepake https://github.com --name GitHub-# Utilisation avancée - options personnalisées+# Utilisation avancée, options personnaliséespake https://weekly.tw93.fun --name Weekly --icon https://cdn.tw93.fun/pake/weekly.icns --width 1200 --height 800 --hide-title-bar```La première compilation nécessite la mise en place de l'environnement et prend un peu plus de temps, les suivantes sont très rapides. Documentation complète des options dans le [Guide CLI](docs/cli-usage.md). Alternative sans terminal : [Compilation en ligne GitHub Actions](docs/github-actions-usage.md).-Utilisation dans un script ou avec un agent IA : ajoutez `--json` pour obtenir un résultat lisible par machine, décrivez les applications de façon déclarative avec `--config app.json` ([schéma](schema/pake.schema.json)), ou empaquetez directement un dossier local via `pake ./dist --name MyTool`. Contrat complet dans [llms.txt](llms.txt). Installation du skill officiel : dans Claude Code, exécutez `/plugin marketplace add tw93/Pake` et `/plugin install pake@pake` ; dans Codex, exécutez `codex plugin marketplace add tw93/Pake` et `codex plugin add pake@pake`.+Utilisation dans un script ou avec un agent IA : ajoutez `--json` pour obtenir un résultat lisible par machine, décrivez les applications de façon déclarative avec `--config app.json` ([schéma](schema/pake.schema.json)), ou empaquetez directement un dossier local via `pake ./dist --name MyTool`. Contrat complet dans [llms.txt](llms.txt). Le skill officiel s'installe ainsi :++```text+# Claude Code+/plugin marketplace add tw93/Pake+/plugin install pake@pake++# Codex+codex plugin marketplace add tw93/Pake+codex plugin add pake@pake+```Transmettez ce prompt à votre agent IA :@@ -196,7 +206,7 @@ Utilise Pake (npm i -g pake-cli) pour empaqueter des pages web en applications d## Développement-Nécessite Rust `>=1.85` et Node `>=22` (LTS recommandée ; `>=20.9` fonctionne également). Consultez la [Documentation Tauri](https://tauri.app/start/prerequisites/). Si vous n'êtes pas familier avec l'environnement de développement, préférez l'outil CLI.+Nécessite Rust `>=1.85` et Node `>=22` (LTS recommandée ; `>=20.9` fonctionne également). Consultez la [Documentation Tauri](https://v2.tauri.app/start/prerequisites/). Si vous n'êtes pas familier avec l'environnement de développement, préférez l'outil CLI.```bash# Installer les dépendances@@ -216,21 +226,19 @@ Pour la personnalisation de styles, l'ajout de fonctionnalités et la communicatPake ne serait pas possible sans ces précieux contributeurs ❤️<a href="https://github.com/tw93/Pake/graphs/contributors">- <img src="https://raw.githubusercontent.com/tw93/Pake/main/CONTRIBUTORS.svg?sanitize=true" alt="Contributors" width="1000" />+ <img src="./CONTRIBUTORS.svg?v=2" alt="Contributors" width="1000" /></a>## Soutien-1. La façon la plus directe de me soutenir est d'acheter [Mole for Mac](https://mole.fit), mon application de nettoyage pour Mac.-2. Si Pake vous est utile, n'hésitez pas à lui attribuer une étoile sur GitHub ou à le [recommander](https://twitter.com/intent/tweet?url=https://github.com/tw93/Pake&text=Pake%20-%20Transformez%20n'importe%20quelle%20page%20web%20en%20application%20de%20bureau%20en%20une%20seule%20commande.%20Compatible%20macOS,%20Windows%20et%20Linux) autour de vous.-3. Suivez les nouveautés sur [Twitter](https://twitter.com/HiTw93) ou rejoignez la communauté sur [Telegram](https://t.me/+9f9gf4ZrFSQ2OWVl).-4. J'espère que vous prendrez plaisir à explorer ces technologies ; n'hésitez pas à suggérer des sites qui feraient d'excellentes applications de bureau.-5. J'ai deux chats, TangYuan et Coke. Si Pake vous rend service, vous pouvez leur offrir <a href="https://cats.tw93.fun?name=Pake" target="_blank">une friandise 🥩</a>.+- La façon la plus directe de me soutenir est d'acheter [Mole for Mac](https://mole.fit), mon application de nettoyage pour Mac+- Si Pake vous est utile, n'hésitez pas à lui attribuer une étoile sur GitHub, à le [recommander](https://twitter.com/intent/tweet?url=https://github.com/tw93/Pake&text=Pake%20-%20Transformez%20n'importe%20quelle%20page%20web%20en%20application%20de%20bureau%20en%20une%20seule%20commande.%20Compatible%20macOS,%20Windows%20et%20Linux) autour de vous ou à ouvrir une issue ou une PR, y compris pour suggérer des sites qui feraient de bonnes applications de bureau+- J'ai deux chattes, TangYuan et Coke, et si Pake vous rend service, vous pouvez leur offrir <a href="https://cats.tw93.fun?name=Pake" target="_blank">une friandise 🥩</a><details><summary>Ceux qui ont déjà contribué 🐱</summary><br/>-<a href="https://cats.tw93.fun?name=Pake"><img src="https://cdn.jsdelivr.net/gh/tw93/sponsors@main/assets/sponsors.svg" width="1000px" /></a>+<a href="https://cats.tw93.fun?name=Pake"><img src="https://cdn.jsdelivr.net/gh/tw93/sponsors@main/assets/sponsors.svg" width="1000" loading="lazy" /></a></details>## Licence open sourcediff --git a/README_JA.md b/README_JA.mdindex 00614f23..209c9412 100644--- a/README_JA.md+++ b/README_JA.md@@ -22,7 +22,7 @@- **初心者**:ビルド済みの [人気パッケージ](#人気パッケージのダウンロード) をダウンロード、または環境構築不要の [GitHub Actions オンラインビルド](docs/github-actions-usage.md) を利用- **開発者**:[CLI ツール](docs/cli-usage.md) をインストールし、コマンド 1 つで任意のサイトをアイコンやウィンドウ設定付きでパッケージ化- **上級者**:リポジトリをクローンして [カスタム開発](#開発) を行うか、[高度な使い方](docs/advanced-usage.md) でスタイル調整や機能拡張を参照-- **トラブルシューティング**:[よくある質問(FAQ)](docs/faq.md) でトラブルシューティングと解決策を確認+- **トラブルシューティング**:[FAQ](docs/faq.md) でよくある問題と解決策を確認## 人気パッケージのダウンロード@@ -153,8 +153,8 @@| <kbd>⌘</kbd> + <kbd>]</kbd> | <kbd>Ctrl</kbd> + <kbd>→</kbd> | 次のページに進む || <kbd>⌘</kbd> + <kbd>↑</kbd> | <kbd>Ctrl</kbd> + <kbd>↑</kbd> | ページ最上部へスクロール || <kbd>⌘</kbd> + <kbd>↓</kbd> | <kbd>Ctrl</kbd> + <kbd>↓</kbd> | ページ最下部へスクロール |-| <kbd>⌘</kbd> + <kbd>r</kbd> | <kbd>Ctrl</kbd> + <kbd>r</kbd> | ページを再読み込み |-| <kbd>⌘</kbd> + <kbd>w</kbd> | <kbd>Ctrl</kbd> + <kbd>w</kbd> | ウィンドウを隠す(終了ではない) |+| <kbd>⌘</kbd> + <kbd>R</kbd> | <kbd>Ctrl</kbd> + <kbd>R</kbd> | ページを再読み込み |+| <kbd>⌘</kbd> + <kbd>W</kbd> | <kbd>Ctrl</kbd> + <kbd>W</kbd> | ウィンドウを隠す(終了ではない) || <kbd>⌘</kbd> + <kbd>-</kbd> | <kbd>Ctrl</kbd> + <kbd>-</kbd> | ページを縮小 || <kbd>⌘</kbd> + <kbd>=</kbd> | <kbd>Ctrl</kbd> + <kbd>=</kbd> | ページを拡大 || <kbd>⌘</kbd> + <kbd>0</kbd> | <kbd>Ctrl</kbd> + <kbd>0</kbd> | ズームをリセット |@@ -165,7 +165,7 @@| <kbd>⌘</kbd> + <kbd>⇧</kbd> + <kbd>⌫</kbd> | <kbd>Ctrl</kbd> + <kbd>Shift</kbd> + <kbd>Del</kbd> | キャッシュをクリアして再起動 || <kbd>⌃</kbd> + <kbd>⌘</kbd> + <kbd>F</kbd> | <kbd>F11</kbd> | フルスクリーン切り替え |-タイトルバーをダブルクリックしてフルスクリーンを切り替えることもできます。Windows と Linux では `--hide-window-decorations` を指定することで、上部ドラッグ領域を備えたフレームレスウィンドウを作成可能。Mac ではスワイプジェスチャーによる進む・戻るや、メニューバーからのウィンドウ制御にも対応しています。+タイトルバーをダブルクリックしてフルスクリーンを切り替えることもできます。Windows と Linux では `--hide-window-decorations` を指定することで、上部ドラッグ領域を備えたフレームレスウィンドウを作成可能。Mac ではスワイプで進む・戻るができ、タイトルバーをドラッグしてウィンドウを移動でき、メニューバーからナビゲーション、ズーム、ウィンドウ操作も行えます。</details>@@ -177,16 +177,26 @@# Pake CLI のインストールpnpm install -g pake-cli-# 基本的な使い方 - ファビコンを自動取得+# 基本的な使い方、ファビコンを自動取得pake https://github.com --name GitHub-# 高度な使い方 - オプションのカスタマイズ+# 高度な使い方、オプションのカスタマイズpake https://weekly.tw93.fun --name Weekly --icon https://cdn.tw93.fun/pake/weekly.icns --width 1200 --height 800 --hide-title-bar```初回のパッケージ化はビルド環境の準備が必要なため少し時間がかかりますが、次回以降は高速に完了します。全オプションの詳細は [CLI 使用ガイド](docs/cli-usage.md) を参照してください。コマンドラインを使わない場合は [GitHub Actions オンラインビルド](docs/github-actions-usage.md) も利用できます。-スクリプトや AI agent から Pake を利用する場合:`--json` を指定して結果をパースし、`--config app.json`([schema](schema/pake.schema.json))で宣言的に設定できます。ローカルのビルド成果物は `pake ./dist --name MyTool` で直接パッケージ化可能。完全な agent 仕様は [llms.txt](llms.txt) を参照してください。公式 skill をインストールする場合、Claude Code では `/plugin marketplace add tw93/Pake` と `/plugin install pake@pake`、Codex では `codex plugin marketplace add tw93/Pake` と `codex plugin add pake@pake` を実行します。+スクリプトや AI agent から使う場合は、`--json` で機械可読な結果を受け取り、`--config app.json`([schema](schema/pake.schema.json))で宣言的に設定でき、ローカルのビルド成果物も `pake ./dist --name MyTool` で直接パッケージ化できます。agent 向けの完全な仕様は [llms.txt](llms.txt) を参照してください。公式 skill は次のコマンドでインストールします。++```text+# Claude Code+/plugin marketplace add tw93/Pake+/plugin install pake@pake++# Codex+codex plugin marketplace add tw93/Pake+codex plugin add pake@pake+```AI agent に以下のテキストを渡して指示できます:@@ -196,7 +206,7 @@ Pake(npm i -g pake-cli)を使ってウェブページをデスクトップ## 開発-Rust `>=1.85` と Node `>=22`(推奨 LTS、`>=20.9` も利用可能)が必要です。環境構築の詳細は [Tauri 公式ドキュメント](https://tauri.app/start/prerequisites/) を参照してください。環境構築に不慣れな場合は CLI ツールの利用をおすすめします。+Rust `>=1.85` と Node `>=22`(推奨 LTS、`>=20.9` も利用可能)が必要です。環境構築の詳細は [Tauri 公式ドキュメント](https://v2.tauri.app/start/prerequisites/) を参照してください。環境構築に不慣れな場合は CLI ツールの利用をおすすめします。```bash# 依存関係のインストール@@ -216,21 +226,19 @@ pnpm run buildPake の成長は多くのコントリビューターに支えられています ❤️<a href="https://github.com/tw93/Pake/graphs/contributors">- <img src="https://raw.githubusercontent.com/tw93/Pake/main/CONTRIBUTORS.svg?sanitize=true" alt="Contributors" width="1000" />+ <img src="./CONTRIBUTORS.svg?v=2" alt="Contributors" width="1000" /></a>## サポート-1. 最も直接的な支援は、個人開発の Mac クリーナーアプリ [Mole for Mac](https://mole.fit) を購入していただくことです。-2. Pake が気に入ったら、GitHub で Star を付けたり、[周りの開発者仲間におすすめ](https://twitter.com/intent/tweet?url=https://github.com/tw93/Pake&text=Pake%20-%20あらゆるウェブページをコマンド一つでデスクトップアプリに変換。macOS、Windows、Linux%20に対応) していただけると嬉しいです。-3. 最新のアップデート情報は [Twitter](https://twitter.com/HiTw93) で発信しています。[Telegram](https://t.me/+9f9gf4ZrFSQ2OWVl) グループにもお気軽にご参加ください。-4. 新しい技術を試す楽しさを感じていただければ幸いです。デスクトップアプリ化にぴったりのウェブサイトを見つけたら、ぜひ教えてください。-5. TangYuan と Coke という 2 匹の猫を飼っています。Pake で日々の作業が快適になったら、<a href="https://cats.tw93.fun?name=Pake" target="_blank">おやつ 🥩</a> をごちそうしていただけると励みになります。+- 最も直接的な支援は、個人開発の Mac クリーナーアプリ [Mole for Mac](https://mole.fit) を購入していただくことです+- Pake が気に入ったら、GitHub で Star を付けたり、[周りの開発者仲間におすすめ](https://twitter.com/intent/tweet?url=https://github.com/tw93/Pake&text=Pake%20-%20あらゆるウェブページをコマンド一つでデスクトップアプリに変換。macOS、Windows、Linux%20に対応) したりしていただけると嬉しいです、問題やデスクトップアプリ化にぴったりのサイトがあれば、issue や PR で教えてください+- TangYuan と Coke という 2 匹の猫を飼っています。Pake で日々の作業が快適になったら、彼女たちに <a href="https://cats.tw93.fun?name=Pake" target="_blank">おやつ 🥩</a> をごちそうしていただけると嬉しいです<details><summary>支援してくださった方々 🐱</summary><br/>-<a href="https://cats.tw93.fun?name=Pake"><img src="https://cdn.jsdelivr.net/gh/tw93/sponsors@main/assets/sponsors.svg" width="1000px" /></a>+<a href="https://cats.tw93.fun?name=Pake"><img src="https://cdn.jsdelivr.net/gh/tw93/sponsors@main/assets/sponsors.svg" width="1000" loading="lazy" /></a></details>## オープンソースライセンスdiff --git a/README_KR.md b/README_KR.mdindex 8cbe44f8..8e5e1939 100644--- a/README_KR.md+++ b/README_KR.md@@ -19,7 +19,7 @@## 시작하기-- **일반 사용자**: 빌드된 [추천 앱 다운로드](#추천-패키지-다운로드)를 사용하거나, 환경 설정이 필요 없는 [GitHub Actions 온라인 빌드](docs/github-actions-usage.md) 활용+- **일반 사용자**: 빌드된 [추천 패키지](#추천-패키지-다운로드)를 사용하거나, 환경 설정이 필요 없는 [GitHub Actions 온라인 빌드](docs/github-actions-usage.md) 활용- **개발자**: [CLI 도구](docs/cli-usage.md) 설치 후 명령어 한 줄로 아이콘과 창 설정이 포함된 앱 패키징- **고급 사용자**: 로컬에서 저장소를 클론하여 [커스텀 개발](#개발)을 진행하거나, [고급 사용 가이드](docs/advanced-usage.md)에서 스타일 커스텀 및 기능 확장 확인- **문제 해결**: [FAQ](docs/faq.md)에서 자주 묻는 질문 및 문제 해결 방법 확인@@ -153,8 +153,8 @@| <kbd>⌘</kbd> + <kbd>]</kbd> | <kbd>Ctrl</kbd> + <kbd>→</kbd> | 다음 페이지로 이동 || <kbd>⌘</kbd> + <kbd>↑</kbd> | <kbd>Ctrl</kbd> + <kbd>↑</kbd> | 페이지 맨 위로 스크롤 || <kbd>⌘</kbd> + <kbd>↓</kbd> | <kbd>Ctrl</kbd> + <kbd>↓</kbd> | 페이지 맨 아래로 스크롤 |-| <kbd>⌘</kbd> + <kbd>r</kbd> | <kbd>Ctrl</kbd> + <kbd>r</kbd> | 페이지 새로고침 |-| <kbd>⌘</kbd> + <kbd>w</kbd> | <kbd>Ctrl</kbd> + <kbd>w</kbd> | 창 숨기기(종료 아님) |+| <kbd>⌘</kbd> + <kbd>R</kbd> | <kbd>Ctrl</kbd> + <kbd>R</kbd> | 페이지 새로고침 |+| <kbd>⌘</kbd> + <kbd>W</kbd> | <kbd>Ctrl</kbd> + <kbd>W</kbd> | 창 숨기기(종료 아님) || <kbd>⌘</kbd> + <kbd>-</kbd> | <kbd>Ctrl</kbd> + <kbd>-</kbd> | 페이지 축소 || <kbd>⌘</kbd> + <kbd>=</kbd> | <kbd>Ctrl</kbd> + <kbd>=</kbd> | 페이지 확대 || <kbd>⌘</kbd> + <kbd>0</kbd> | <kbd>Ctrl</kbd> + <kbd>0</kbd> | 확대/축소 초기화 |@@ -165,7 +165,7 @@| <kbd>⌘</kbd> + <kbd>⇧</kbd> + <kbd>⌫</kbd> | <kbd>Ctrl</kbd> + <kbd>Shift</kbd> + <kbd>Del</kbd> | 캐시 삭제 및 재시작 || <kbd>⌃</kbd> + <kbd>⌘</kbd> + <kbd>F</kbd> | <kbd>F11</kbd> | 전체화면 전환 |-타이틀 바를 더블 클릭하여 전체화면을 전환할 수도 있습니다. Windows 및 Linux에서는 `--hide-window-decorations`로 상단 드래그 영역이 있는 프레임리스 창을 만들 수 있습니다. Mac에서는 제스처로 뒤로 가기/앞으로 가기를 지원하며 메뉴 표시줄에서 탐색, 확대/축소 및 창 제어 옵션도 제공합니다.+타이틀 바를 더블 클릭하여 전체화면을 전환할 수도 있습니다. Windows 및 Linux에서는 `--hide-window-decorations`로 상단 드래그 영역이 있는 프레임리스 창을 만들 수 있습니다. Mac에서는 제스처로 뒤로 가기/앞으로 가기와 타이틀 바 드래그로 창 이동을 지원하며 메뉴 표시줄에서 탐색, 확대/축소 및 창 제어 옵션도 제공합니다.</details>@@ -177,16 +177,26 @@# Pake CLI 설치pnpm install -g pake-cli-# 기본 사용법 - 파비콘 자동 다운로드+# 기본 사용법, 파비콘 자동 다운로드pake https://github.com --name GitHub-# 고급 사용법: 사용자 지정 옵션+# 고급 사용법, 사용자 지정 옵션pake https://weekly.tw93.fun --name Weekly --icon https://cdn.tw93.fun/pake/weekly.icns --width 1200 --height 800 --hide-title-bar```첫 패키징은 빌드 환경 준비로 인해 시간이 조금 더 걸릴 수 있으나 이후에는 빠르게 완료됩니다. 전체 옵션 설명은 [CLI 사용 가이드](docs/cli-usage.md)를 참조하세요. 명령줄 도구를 사용하지 않으려면 [GitHub Actions 온라인 빌드](docs/github-actions-usage.md)를 활용할 수 있습니다.-스크립트나 AI agent에서 Pake를 사용할 경우: `--json`으로 결과를 파싱하고 `--config app.json`([schema](schema/pake.schema.json))으로 앱을 선언적으로 정의할 수 있습니다. 로컬 빌드 결과물은 `pake ./dist --name MyTool`로 바로 패키징 가능합니다. 전체 agent 사양은 [llms.txt](llms.txt)를 참조하세요. 공식 skill을 설치하려면 Claude Code에서 `/plugin marketplace add tw93/Pake` 및 `/plugin install pake@pake`, Codex에서 `codex plugin marketplace add tw93/Pake` 및 `codex plugin add pake@pake`를 실행하세요.+스크립트나 AI agent에서 Pake를 사용할 때는 `--json`으로 기계가 읽을 수 있는 결과를 받고, `--config app.json`([schema](schema/pake.schema.json))으로 앱을 선언적으로 정의하며, 로컬 빌드 결과물은 `pake ./dist --name MyTool`로 바로 패키징할 수 있습니다. 전체 agent 사양은 [llms.txt](llms.txt)를 참조하세요. 공식 skill은 다음과 같이 설치합니다.++```text+# Claude Code+/plugin marketplace add tw93/Pake+/plugin install pake@pake++# Codex+codex plugin marketplace add tw93/Pake+codex plugin add pake@pake+```AI agent에게 다음 내용을 전달하여 실행할 수 있습니다:@@ -196,7 +206,7 @@ Pake(npm i -g pake-cli)를 사용하여 웹페이지를 데스크톱 앱으로## 개발-Rust `>=1.85` 및 Node `>=22`(LTS 권장, `>=20.9`도 지원)가 필요합니다. 자세한 설치 안내는 [Tauri 공식 문서](https://tauri.app/start/prerequisites/)를 참조하세요. 개발 환경 설정이 번거롭다면 CLI 도구 사용을 권장합니다.+Rust `>=1.85` 및 Node `>=22`(LTS 권장, `>=20.9`도 지원)가 필요합니다. 자세한 설치 안내는 [Tauri 공식 문서](https://v2.tauri.app/start/prerequisites/)를 참조하세요. 개발 환경 설정이 번거롭다면 CLI 도구 사용을 권장합니다.```bash# 의존성 설치@@ -216,21 +226,19 @@ pnpm run buildPake의 성장은 훌륭한 오픈소스 기여자분들과 함께 만들어갑니다 ❤️<a href="https://github.com/tw93/Pake/graphs/contributors">- <img src="https://raw.githubusercontent.com/tw93/Pake/main/CONTRIBUTORS.svg?sanitize=true" alt="Contributors" width="1000" />+ <img src="./CONTRIBUTORS.svg?v=2" alt="Contributors" width="1000" /></a>## 후원-1. 가장 직접적인 후원 방법은 제가 개발한 Mac 정리 앱 [Mole for Mac](https://mole.fit)을 이용해 주시는 것입니다.-2. Pake가 유용했다면 GitHub Star를 눌러주시고, [주변 개발자 동료들에게 추천](https://twitter.com/intent/tweet?url=https://github.com/tw93/Pake&text=Pake%20-%20명령어%20하나로%20모든%20웹페이지를%20데스크톱%20앱으로%20변환.%20macOS,%20Windows,%20Linux%20지원)해 주시면 큰 힘이 됩니다.-3. 최신 업데이트 소식은 [Twitter](https://twitter.com/HiTw93)에서 확인하실 수 있으며, [Telegram](https://t.me/+9f9gf4ZrFSQ2OWVl) 그룹에서도 자유롭게 이야기 나눌 수 있습니다.-4. 새로운 기술을 탐구하는 즐거움을 느끼시길 바라며, 데스크톱 앱으로 만들면 좋은 웹사이트가 있다면 언제든 공유해 주세요.-5. TangYuan과 Coke라는 두 마리의 고양이를 키우고 있습니다. Pake가 유용하셨다면 고양이들에게 <a href="https://cats.tw93.fun?name=Pake" target="_blank">캔 간식 🥩</a>을 선물해 주셔도 좋습니다.+- 가장 직접적인 후원 방법은 제가 개발한 Mac 정리 앱 [Mole for Mac](https://mole.fit)을 이용해 주시는 것입니다+- Pake가 유용했다면 GitHub Star를 눌러주시고, [주변 개발자 동료들에게 추천](https://twitter.com/intent/tweet?url=https://github.com/tw93/Pake&text=Pake%20-%20명령어%20하나로%20모든%20웹페이지를%20데스크톱%20앱으로%20변환.%20macOS,%20Windows,%20Linux%20지원)해 주시면 큰 힘이 되며, 문제나 데스크톱 앱으로 만들면 좋은 웹사이트가 있다면 issue나 PR로 알려 주세요+- TangYuan과 Coke라는 두 마리의 고양이를 키우고 있는데, Pake가 유용하셨다면 그 아이들에게 <a href="https://cats.tw93.fun?name=Pake" target="_blank">캔 간식 🥩</a>을 선물해 주셔도 좋습니다<details><summary>따뜻한 응원을 보내주신 분들 🐱</summary><br/>-<a href="https://cats.tw93.fun?name=Pake"><img src="https://cdn.jsdelivr.net/gh/tw93/sponsors@main/assets/sponsors.svg" width="1000px" /></a>+<a href="https://cats.tw93.fun?name=Pake"><img src="https://cdn.jsdelivr.net/gh/tw93/sponsors@main/assets/sponsors.svg" width="1000" loading="lazy" /></a></details>## 오픈소스 라이선스diff --git a/README_TW.md b/README_TW.mdindex 56cbc5f8..d9f81e4e 100644--- a/README_TW.md+++ b/README_TW.md@@ -153,8 +153,8 @@| <kbd>⌘</kbd> + <kbd>]</kbd> | <kbd>Ctrl</kbd> + <kbd>→</kbd> | 前進到下一頁 || <kbd>⌘</kbd> + <kbd>↑</kbd> | <kbd>Ctrl</kbd> + <kbd>↑</kbd> | 自動捲動到頁面頂端 || <kbd>⌘</kbd> + <kbd>↓</kbd> | <kbd>Ctrl</kbd> + <kbd>↓</kbd> | 自動捲動到頁面底部 |-| <kbd>⌘</kbd> + <kbd>r</kbd> | <kbd>Ctrl</kbd> + <kbd>r</kbd> | 重新整理頁面 |-| <kbd>⌘</kbd> + <kbd>w</kbd> | <kbd>Ctrl</kbd> + <kbd>w</kbd> | 隱藏視窗(非退出) |+| <kbd>⌘</kbd> + <kbd>R</kbd> | <kbd>Ctrl</kbd> + <kbd>R</kbd> | 重新整理頁面 |+| <kbd>⌘</kbd> + <kbd>W</kbd> | <kbd>Ctrl</kbd> + <kbd>W</kbd> | 隱藏視窗(非退出) || <kbd>⌘</kbd> + <kbd>-</kbd> | <kbd>Ctrl</kbd> + <kbd>-</kbd> | 縮小頁面 || <kbd>⌘</kbd> + <kbd>=</kbd> | <kbd>Ctrl</kbd> + <kbd>=</kbd> | 放大頁面 || <kbd>⌘</kbd> + <kbd>0</kbd> | <kbd>Ctrl</kbd> + <kbd>0</kbd> | 重設頁面縮放 |@@ -165,7 +165,7 @@| <kbd>⌘</kbd> + <kbd>⇧</kbd> + <kbd>⌫</kbd> | <kbd>Ctrl</kbd> + <kbd>Shift</kbd> + <kbd>Del</kbd> | 清除快取並重啟 || <kbd>⌃</kbd> + <kbd>⌘</kbd> + <kbd>F</kbd> | <kbd>F11</kbd> | 切換原生全螢幕 |-此外還支援雙擊標題列切換全螢幕。Windows 與 Linux 可使用 `--hide-window-decorations` 建立頂部具拖曳區域的無邊框視窗。Mac 支援手勢滑動返回與前進,選單列也提供導覽、縮放與視窗控制等選項。+雙擊標題列可以切換全螢幕,Windows 與 Linux 加上 `--hide-window-decorations` 會得到頂部具拖曳區域的無邊框視窗,Mac 支援手勢滑動返回與前進,也可以拖曳標題列移動視窗,選單列裡也有導覽、縮放與視窗控制等選項。</details>@@ -177,16 +177,26 @@# 安裝 Pake CLIpnpm install -g pake-cli-# 基本用法 - 自動取得網站圖示+# 基本用法,自動取得網站圖示pake https://github.com --name GitHub-# 進階用法:自訂選項+# 進階用法,自訂選項pake https://weekly.tw93.fun --name Weekly --icon https://cdn.tw93.fun/pake/weekly.icns --width 1200 --height 800 --hide-title-bar```首次打包需要準備建置環境,耗時會稍長一些,後續打包會很快。完整參數說明查看 [CLI 使用指南](docs/cli-usage_CN.md),不想用命令列可以試試 [GitHub Actions 線上建置](docs/github-actions-usage_CN.md)。-在腳本或 AI agent 裡使用 Pake?加上 `--json` 取得機器可讀結果,使用 `--config app.json` 宣告式描述應用([schema](schema/pake.schema.json)),本機建置產物可直接 `pake ./dist --name MyTool` 打包。完整 agent 契約見 [llms.txt](llms.txt)。安裝官方 skill 在 Claude Code 裡執行 `/plugin marketplace add tw93/Pake` 和 `/plugin install pake@pake`,在 Codex 裡執行 `codex plugin marketplace add tw93/Pake` 和 `codex plugin add pake@pake`。+在腳本或 AI agent 裡使用 Pake 時,加上 `--json` 取得機器可讀結果,使用 `--config app.json` 宣告式描述應用([schema](schema/pake.schema.json)),本機建置產物可直接 `pake ./dist --name MyTool` 打包,完整 agent 契約見 [llms.txt](llms.txt),官方 skill 這樣安裝:++```text+# Claude Code+/plugin marketplace add tw93/Pake+/plugin install pake@pake++# Codex+codex plugin marketplace add tw93/Pake+codex plugin add pake@pake+```把下面這段複製給你的 AI agent 即可開始:@@ -196,7 +206,7 @@ pake https://weekly.tw93.fun --name Weekly --icon https://cdn.tw93.fun/pake/week## 自訂開發-需要 Rust `>=1.85` 與 Node `>=22`(推薦 LTS,較舊的 `>=20.9` 亦可使用),詳細安裝指南參考 [Tauri 文件](https://tauri.app/start/prerequisites/)。不熟悉開發環境建議直接使用命令列工具。+需要 Rust `>=1.85` 與 Node `>=22`(推薦 LTS,較舊的 `>=20.9` 亦可使用),詳細安裝指南參考 [Tauri 文件](https://v2.tauri.app/start/prerequisites/),不熟悉開發環境的話可以直接使用命令列工具。```bash# 安裝相依套件@@ -216,23 +226,21 @@ pnpm run buildPake 的發展離不開這些優秀的貢獻者 ❤️<a href="https://github.com/tw93/Pake/graphs/contributors">- <img src="https://raw.githubusercontent.com/tw93/Pake/main/CONTRIBUTORS.svg?sanitize=true" alt="Contributors" width="1000" />+ <img src="./CONTRIBUTORS.svg?v=2" alt="Contributors" width="1000" /></a>## 支持-1. 購買我做的 Mac 清理應用 [Mole for Mac](https://mole.fit),是對我最直接的支持。-2. 如果你喜歡 Pake,可以在 GitHub 給一顆 Star,也歡迎 [推薦](https://twitter.com/intent/tweet?url=https://github.com/tw93/Pake&text=Pake%20-%20一個指令把任意網頁打包成桌面應用,支援%20macOS、Windows%20與%20Linux) 給志同道合的朋友。-3. 可以追蹤我的 [Twitter](https://twitter.com/HiTw93) 獲取最新的 Pake 更新消息,也歡迎加入 [Telegram](https://t.me/+9f9gf4ZrFSQ2OWVl) 聊天群組。-4. 希望大家在使用過程中能體會到學習新技術的樂趣,若發現適合做成桌面 App 的網頁也歡迎告訴我。-5. 我養了兩隻貓:湯圓與可樂,如果 Pake 讓你的生活更美好,可以給她們 <a href="https://cats.tw93.fun?name=Pake" target="_blank">餵罐頭 🥩</a>。+- 購買我做的 Mac 清理應用 [Mole for Mac](https://mole.fit),是對我最直接的支持+- 如果你喜歡 Pake,可以在 GitHub 給一顆 Star,[推薦](https://twitter.com/intent/tweet?url=https://github.com/tw93/Pake&text=Pake%20-%20一個指令把任意網頁打包成桌面應用,支援%20macOS、Windows%20與%20Linux) 給志同道合的朋友,遇到問題或發現適合做成桌面 App 的網頁,也歡迎提 issue 和 PR+- 我養了兩隻貓,一隻叫湯圓,一隻叫可樂,如果 Pake 讓你的生活更美好,可以給她們<a href="https://cats.tw93.fun?name=Pake" target="_blank">餵罐頭 🥩</a><details><summary>這些可愛的朋友已經贊助過 🐱</summary><br/>-<a href="https://cats.tw93.fun?name=Pake"><img src="https://cdn.jsdelivr.net/gh/tw93/sponsors@main/assets/sponsors.svg" width="1000px" /></a>+<a href="https://cats.tw93.fun?name=Pake"><img src="https://cdn.jsdelivr.net/gh/tw93/sponsors@main/assets/sponsors.svg" width="1000" loading="lazy" /></a></details>## 開源授權-Pake 使用 GPL-3.0 條款開源,詳見 [LICENSE](./LICENSE) 與 [Pake Output Exception](./LICENSE-EXCEPTION);用 Pake 打包生成的應用所有權完全歸你,可以自由使用和發布。如果你想基於 fork 重新做一個 Pake 產品,為了避免誤解,請更換名稱並註明出處。+Pake 使用 GPL-3.0 條款開源,詳見 [LICENSE](./LICENSE) 與 [Pake Output Exception](./LICENSE-EXCEPTION);用 Pake 打包生成的應用所有權完全歸你,可以自由使用和發布。如果你想基於 fork 重新做一個 Pake 產品,為了避免誤解,辛苦換一個名稱並註明出處。diff --git a/docs/advanced-usage.md b/docs/advanced-usage.mdindex 97abba52..95cb1cfc 100644--- a/docs/advanced-usage.md+++ b/docs/advanced-usage.md@@ -46,25 +46,7 @@ document.addEventListener("keydown", (e) => {### Download Error Notifications-Pake automatically provides user-friendly download error notifications:--**Features:**--- **Bilingual Support**: Automatically detects browser language (Chinese/English)-- **System Notifications**: Uses native OS notifications when permission is granted-- **Graceful Fallback**: Falls back to console logging if notifications are unavailable-- **Comprehensive Coverage**: Handles all download types (HTTP, Data URI, Blob)--**User Experience:**--When a download fails, users will see a notification:--- English: "Download Error - Download failed: filename.pdf"-- Chinese: "下载错误 - 下载失败: filename.pdf"--**Requesting Notification Permission:**--To enable notifications, add this to your injected JavaScript:+When a download fails, Pake shows a notification in Chinese or English based on the browser language. It covers regular HTTP(S), Data URI (base64 encoded files), Blob URL (dynamically generated files) and context menu downloads, uses native OS notifications once permission is granted, and falls back to console logging otherwise. To enable notifications, request permission in your injected JavaScript:```javascript// Request notification permission on app start@@ -73,13 +55,6 @@ if (window.Notification && Notification.permission === "default") {}```-The download system automatically handles:--- Regular HTTP(S) downloads-- Data URI downloads (base64 encoded files)-- Blob URL downloads (dynamically generated files)-- Context menu initiated downloads-## Container CommunicationSend messages between web content and Pake container.@@ -122,7 +97,7 @@ Configure window properties in `pake.json`:}```-`hide_title_bar` is the `pake.json` key (the CLI exposes it as `--hide-title-bar`). It is only supported on macOS and is ignored on Windows and Linux. Use `hide_window_decorations` (`--hide-window-decorations`) for frameless windows on Windows and Linux.+`hide_title_bar` is the `pake.json` key (the CLI exposes it as `--hide-title-bar`). It is macOS only and ignored on Windows and Linux, which use `hide_window_decorations` (`--hide-window-decorations`) for frameless windows instead.## Static File Packaging@@ -151,7 +126,7 @@ pake https://meet.google.com --name GoogleMeet --camera --microphone- `--microphone`: grants microphone access (`com.apple.security.device.audio-input`)- `--camera`: grants camera access (`com.apple.security.device.camera`)-macOS will prompt the user for permission on first use. Only add these flags for sites that actually need them.+macOS prompts the user for permission on first use, so add these flags only for sites that need them.## Multiple Apps For The Same Site@@ -162,9 +137,7 @@ pake https://mail.google.com --name "Gmail Work"pake https://mail.google.com --name "Gmail Personal"```-Pake now generates a different app identifier for each `URL + name` pair, so these apps can be installed as separate desktop apps instead of resolving to the same app.--For advanced cases, Pake also supports a hidden `--identifier` option if you need to pin the bundle identifier explicitly:+Pake generates a different app identifier for each `URL + name` pair, so these apps install as separate desktop apps instead of resolving to the same app. To pin the bundle identifier explicitly, use the hidden `--identifier` option:```bashpake https://mail.google.com --name "Gmail Work" --identifier com.example.gmail.work@@ -197,7 +170,7 @@ pake https://mail.google.com --name "Gmail Work" --identifier com.example.gmail.### Prerequisites-- Node.js ≥22.0.0 (recommended LTS, older versions ≥20.9.0 may work)+- Node.js ≥22 (recommended LTS, minimum ≥20.9.0)- Rust ≥1.85.0 (recommended stable)#### Platform-Specific Requirements@@ -217,7 +190,7 @@ pake https://mail.google.com --name "Gmail Work" --identifier com.example.gmail.4. Microsoft Visual C++ 2013 Redistributable (x86) (optional)5. Microsoft Visual C++ 2008 Redistributable (x86) (optional)-- **Windows ARM (ARM64) support**: Install C++ ARM64 build tools in Visual Studio Installer under "Individual Components" → "MSVC v143 - VS 2022 C++ ARM64 build tools"+- **Windows ARM (ARM64) support**: In Visual Studio Installer, under Individual Components, select MSVC v143 - VS 2022 C++ ARM64 build tools**Linux (Ubuntu):**@@ -277,12 +250,10 @@ For CLI development with hot reloading, run:pnpm run cli:dev```-This script reads the configuration and packages the specified app in watch mode, with hot updates for `pake-cli` code changes.+This script builds the CLI in watch mode, runs it with the arguments you pass, then starts `tauri dev` for that app, with hot updates for `pake-cli` code changes.### Testing Guide-Comprehensive CLI build and release validation guidance for multi-platform packaging.-#### Running Tests```bash@@ -302,19 +273,9 @@ pnpm run cli:buildnode ./tests/release.js```-#### 🚀 Complete Test Suite Includes--- ✅ **Vitest suite**: unit, integration, builder, and CLI option coverage-- ✅ **Real build smoke test**: platform-aware packaging validation-- ✅ **Release workflow smoke test**: verifies the release build path used for popular apps-#### Test Details-- `pnpm test` runs the main CLI test runner in [`tests/index.js`](../tests/index.js), which:-- builds the CLI,-- runs the Vitest suite,-- runs the real build smoke test unless `--no-build` is passed,-- and then runs the release workflow smoke test when the real build phase succeeds.+`pnpm test` runs the main test runner in [`tests/index.js`](../tests/index.js). It builds the CLI, runs the Vitest suite (unit, integration, builder and CLI option coverage), runs the platform-aware real build smoke test unless `--no-build` is passed, and then, if the real build succeeds, runs the release workflow smoke test that covers the popular apps build path.Useful optional flags:@@ -325,8 +286,6 @@ Useful optional flags:- `--e2e`: add end-to-end configuration tests- `--pake-cli`: add GitHub Actions related checks-If you only want the release workflow smoke test, run `node ./tests/release.js` directly.-#### Troubleshooting- **CLI file not found**: Run `pnpm run cli:build`diff --git a/docs/advanced-usage_CN.md b/docs/advanced-usage_CN.mdindex ac15d354..bdd58c1b 100644--- a/docs/advanced-usage_CN.md+++ b/docs/advanced-usage_CN.md@@ -46,25 +46,7 @@ document.addEventListener("keydown", (e) => {### 下载失败通知-Pake 内置了下载失败通知支持:--**特性:**--- **双语支持**:自动匹配系统与浏览器语言(中文/英文)-- **系统通知**:在授予通知权限后使用原生系统通知-- **平稳降级**:通知权限未开启时降级到控制台日志-- **全面覆盖**:支持常规 HTTP(S)、Data URI 与 Blob 等所有下载类型--**用户体验:**--当下载失败时,用户将看到通知:--- 英文:"Download Error - Download failed: filename.pdf"-- 中文:"下载错误 - 下载失败: filename.pdf"--**请求通知权限:**--要启用通知,请在注入的 JavaScript 中添加:+下载失败时 Pake 会弹出通知,语言自动匹配系统与浏览器(中文或英文),覆盖常规 HTTP(S)、Data URI(base64 编码文件)、Blob URL(动态生成的文件)和右键菜单发起的下载,授予通知权限后使用原生系统通知,没有权限时降级到控制台日志。要启用通知,在注入的 JavaScript 中请求权限:```javascript// 在应用启动时请求通知权限@@ -73,13 +55,6 @@ if (window.Notification && Notification.permission === "default") {}```-下载系统自动处理:--- 常规 HTTP(S) 下载-- Data URI 下载(base64 编码文件)-- Blob URL 下载(动态生成的文件)-- 右键菜单发起的下载-## 容器通信在网页内容和 Pake 容器之间发送消息。@@ -122,7 +97,7 @@ fn handle_scroll(scroll_y: f64, scroll_x: f64) {}```-`hide_title_bar` 是 `pake.json` 中的字段名(CLI 对应参数为 `--hide-title-bar`)。仅支持 macOS,在 Windows 和 Linux 上会被忽略。Windows 和 Linux 请使用 `hide_window_decorations`(`--hide-window-decorations`)。+`hide_title_bar` 是 `pake.json` 中的字段名(CLI 对应参数为 `--hide-title-bar`),仅支持 macOS,在 Windows 和 Linux 上会被忽略,这两个平台改用 `hide_window_decorations`(`--hide-window-decorations`)。## 静态文件打包@@ -151,7 +126,7 @@ pake https://meet.google.com --name GoogleMeet --camera --microphone- `--microphone`: 申请麦克风权限(`com.apple.security.device.audio-input`)- `--camera`: 申请摄像头权限(`com.apple.security.device.camera`)-macOS 会在首次使用时向用户弹出权限确认对话框。请仅在确实需要的站点上添加这些标志。+macOS 会在首次使用时向用户弹出权限确认对话框,所以只给确实需要的站点加这些标志。## 同一站点生成多个独立应用@@ -162,9 +137,7 @@ pake https://mail.google.com --name "Gmail Work"pake https://mail.google.com --name "Gmail Personal"```-Pake 现在会基于 `URL + name` 生成不同的应用标识,因此这两个应用会被当作两个独立桌面应用安装,而不是落到同一个应用上。--对于需要固定 bundle identifier 的高级场景,Pake 也支持一个隐藏参数 `--identifier`:+Pake 会基于 `URL + name` 生成不同的应用标识,因此这两个应用会被当作两个独立桌面应用安装,而不是落到同一个应用上,需要固定 bundle identifier 的高级场景,还可以用隐藏参数 `--identifier`:```bashpake https://mail.google.com --name "Gmail Work" --identifier com.example.gmail.work@@ -197,8 +170,8 @@ pake https://mail.google.com --name "Gmail Work" --identifier com.example.gmail.### 前置条件-- Node.js ≥22.0.0 (推荐 LTS,较旧版本 ≥20.9.0 可能可用)-- Rust ≥1.85.0 (推荐稳定版)+- Node.js ≥22(推荐 LTS,最低 ≥20.9.0)+- Rust ≥1.85.0(推荐稳定版)#### 平台特定要求@@ -208,7 +181,7 @@ pake https://mail.google.com --name "Gmail Work" --identifier com.example.gmail.**Windows:**-- **重要**:请先参阅 [Tauri 依赖项指南](https://v2.tauri.app/start/prerequisites/)+- **重要**:先看 [Tauri 依赖项指南](https://v2.tauri.app/start/prerequisites/)- Windows 10 SDK (10.0.19041.0) 和 Visual Studio Build Tools 2022 (≥17.2)- 必需的运行库:1. Microsoft Visual C++ 2015-2022 Redistributable (x64)@@ -217,7 +190,7 @@ pake https://mail.google.com --name "Gmail Work" --identifier com.example.gmail.4. Microsoft Visual C++ 2013 Redistributable (x86)(可选)5. Microsoft Visual C++ 2008 Redistributable (x86)(可选)-- **Windows ARM (ARM64) 支持**:在 Visual Studio Installer 中的"单个组件"下安装"MSVC v143 - VS 2022 C++ ARM64 构建工具"+- **Windows ARM (ARM64) 支持**:在 Visual Studio Installer 的单个组件里安装 MSVC v143 - VS 2022 C++ ARM64 构建工具**Linux (Ubuntu):**@@ -277,12 +250,10 @@ pnpm run devpnpm run cli:dev```-此脚本会读取上述配置并使用 watch 模式打包指定的应用,对 `pake-cli` 代码修改可实时热更新。+此脚本以 watch 模式构建 CLI,用传入的参数运行后再以 `tauri dev` 启动应用,对 `pake-cli` 代码修改可实时热更新。### 测试指南-统一的 CLI 构建与发布验证指南,用于验证多平台打包功能。-#### 运行测试```bash@@ -302,19 +273,9 @@ pnpm run cli:buildnode ./tests/release.js```-#### 🚀 完整测试套件包含--- ✅ **Vitest 套件**:单元、集成、构建器和 CLI 选项覆盖-- ✅ **真实构建 smoke test**:按平台验证实际打包流程-- ✅ **发布流程 smoke test**:验证 popular apps 的发布构建路径-#### 测试内容详情-- `pnpm test` 会运行 [`tests/index.js`](../tests/index.js) 这个主测试入口,它会:-- 先构建 CLI,-- 再运行 Vitest 套件,-- 如果没有传 `--no-build`,继续执行真实构建 smoke test,-- 然后在真实构建成功后继续执行发布流程 smoke test+`pnpm test` 运行主测试入口 [`tests/index.js`](../tests/index.js),先构建 CLI,再跑覆盖单元、集成、构建器和 CLI 选项的 Vitest 套件,没有传 `--no-build` 时继续按平台执行真实构建 smoke test,真实构建成功后再跑验证 popular apps 发布构建路径的发布流程 smoke test。常用可选参数:@@ -325,8 +286,6 @@ node ./tests/release.js- `--e2e`:增加端到端配置测试- `--pake-cli`:增加 GitHub Actions 相关检查-如果只想单独验证发布流程,可以直接运行 `node ./tests/release.js`。-#### 故障排除- **CLI 文件不存在**:运行 `pnpm run cli:build`diff --git a/docs/cli-usage.md b/docs/cli-usage.mdindex 748600ea..e3504be3 100644--- a/docs/cli-usage.md+++ b/docs/cli-usage.md@@ -10,8 +10,6 @@ Complete command-line reference and basic usage for Pake CLI.## Installation-Ensure that your Node.js version is 20.9.0 or higher.-**Recommended (pnpm):**```bash@@ -39,21 +37,20 @@ source ~/.bashrc**Prerequisites:**- Node.js ≥20.9.0-- Rust ≥1.85.0 (installed automatically if missing)+- Rust ≥1.85.0 (prompts to install if missing; non-interactive and `--json` runs fail with `ENV_MISSING` instead)- **macOS/Linux**: `curl`, `wget`, `file` and `tar` used for dependency management## Quick Start```bash-# Basic usage - automatically fetches website icon+# Basic usage, fetches the website icon automaticallypake https://github.com --name "GitHub"-# Advanced usage with custom options+# Advanced usage, custom optionspake https://weekly.tw93.fun --name "Weekly" --icon https://cdn.tw93.fun/pake/weekly.icns --width 1200 --height 800 --hide-title-bar-# Complete example with multiple options+# Complete example, multiple options combinedpake https://github.com --name "GitHub Desktop" --width 1400 --height 900 --show-system-tray --debug-```## CLI Usage@@ -62,11 +59,11 @@ pake https://github.com --name "GitHub Desktop" --width 1400 --height 900 --showpake [url] [options]```-The packaged application will be located in the current working directory by default. The first packaging might take some time due to environment configuration. Please be patient.+The packaged application will be located in the current working directory by default. The first build sets up the environment and takes longer, later builds are fast.> **macOS Output**: On macOS, Pake creates DMG installers by default. To create `.app` bundles for testing (to avoid user interaction), set the environment variable `PAKE_CREATE_APP=1`. If you want Pake to install the app directly into `/Applications`, use `--install`, which builds an `.app`, copies it into `/Applications`, and removes the local bundle after a successful install.>-> **Note**: Packaging requires the Rust environment. If Rust is not installed, you will be prompted for installation confirmation. In case of installation failure or timeout, you can [install it manually](https://www.rust-lang.org/tools/install).+> **Rust**: Packaging requires Rust. If it is missing, you will be asked whether to install it, and if installation fails or times out, you can [install it manually](https://www.rust-lang.org/tools/install).### [url]@@ -84,7 +81,7 @@ For local packaging, hash-based routing works out of the box; history-mode SPA r### [options]-Various options are available for customization. `pake --help` shows every supported CLI option. This page is the complete reference.+The table lists the common options, `pake --help` shows every option, and each one is documented in full below.| Option | Description | Example || --------------------------- | --------------------------------------------------- | ---------------------------------------------- |@@ -100,13 +97,9 @@ Various options are available for customization. `pake --help` shows every suppo| `--help` | Show all CLI options | `--help` || `--version` | Show CLI version | `--version` |-For complete options, see detailed sections below.-#### [name]-Specify the application name. If not provided, you will be prompted to enter it. It is recommended to use English.--**Note**: Also supports multiple words with automatic platform-specific handling:+Specify the application name. If not provided, you will be prompted to enter it. English names work best, and names with spaces are handled per platform:- **Windows/macOS**: Preserves spaces and case (e.g., `"Google Translate"`)- **Linux**: Converts to lowercase with hyphens (e.g., `"google-translate"`)@@ -141,20 +134,20 @@ pake https://github.com --name GitHub--icon https://cdn.tw93.fun/pake/weekly.icns # Remote icon (.icns for macOS)```-#### [height]+#### [width]-Set the height of the application window. Default is `780px`.+Set the width of the application window. Default is `1200px`.```shell---height <number>+--width <number>```-#### [width]+#### [height]-Set the width of the application window. Default is `1200px`.+Set the height of the application window. Default is `780px`.```shell---width <number>+--height <number>```#### [min-width]@@ -201,8 +194,7 @@ Hide the native window decorations on Windows and Linux. Default is `false`. Thi#### [fullscreen]-Determine whether the application launches in full screen. Default is `false`. Use the following command to enable full-screen.+Determine whether the application launches in full screen. Default is `false`. Use the following command to enable full screen.```shell--fullscreen@@ -210,8 +202,7 @@ screen.#### [maximize]-Determine whether the application launches with a maximized window. Default is `false`. Use the following command to enable-maximize.+Determine whether the application launches with a maximized window. Default is `false`. Use the following command to enable maximize.```shell--maximize@@ -308,7 +299,7 @@ Package the application to support both Intel and M1 chips, exclusively for macO##### Prerequisites-- Note: After enabling this option, Rust must be installed using rustup from the official Rust website. Installation via brew is not supported.+- After enabling this option, Rust must be installed using rustup from the official Rust website. Installation via brew is not supported.- For Intel chip users, install the arm64 cross-platform package to support M1 chips using the following command:```shell@@ -439,7 +430,7 @@ Start the application minimized to system tray instead of showing the window. Mupake https://github.com --name GitHub --show-system-tray --start-to-tray```-**Note**: Double-click the tray icon to show/hide the window. If used without `--show-system-tray`, this option is ignored.+Double-click the tray icon to show or hide the window. Without `--show-system-tray`, this option is ignored.#### [title]@@ -508,7 +499,7 @@ pake https://github.com --name GitHub --keep-binary#### [iterative-build]-Turn on rapid build mode (app only, no dmg/deb/msi), good for debugging. Default is `false`.+macOS only: build the `.app` and skip DMG packaging, good for debugging. Default is `false`.```shell--iterative-builddiff --git a/docs/cli-usage_CN.md b/docs/cli-usage_CN.mdindex 91774ea7..ad484747 100644--- a/docs/cli-usage_CN.md+++ b/docs/cli-usage_CN.md@@ -10,8 +10,6 @@## 安装-确保 Node.js 版本 ≥20.9.0。-**推荐方式 (pnpm):**```bash@@ -39,19 +37,19 @@ source ~/.bashrc**前置条件:**- Node.js ≥20.9.0-- Rust ≥1.85.0(如缺失将自动安装)+- Rust ≥1.85.0(缺失时会提示安装,非交互或 `--json` 模式下直接报 `ENV_MISSING` 错误)- **macOS/Linux**:`curl`、`wget`、`file` 和 `tar`(用于依赖管理)## 快速开始```bash-# 基础用法 - 自动获取网站图标+# 基础用法,自动获取网站图标pake https://github.com --name "GitHub"-# 高级用法:自定义选项+# 高级用法,自定义选项pake https://weekly.tw93.fun --name "Weekly" --icon https://cdn.tw93.fun/pake/weekly.icns --width 1200 --height 800 --hide-title-bar-# 完整示例:多个选项组合使用+# 完整示例,多个选项组合使用pake https://github.com --name "GitHub Desktop" --width 1400 --height 900 --show-system-tray --debug```@@ -63,9 +61,9 @@ pake [url] [options]打包结果默认保存在当前工作目录。首次打包要准备构建环境,会慢一些,后续打包就快了。-> **macOS 输出**:在 macOS 上,Pake 默认创建 DMG 安装程序。如需创建 `.app` 包进行测试(避免交互),可设置环境变量 `PAKE_CREATE_APP=1`。如果希望 Pake 直接将应用安装到 `/Applications`,可以使用 `--install`;该选项会构建 `.app`、复制到 `/Applications`,并在安装成功后删除当前目录中的本地 `.app`。+> **macOS 输出**:在 macOS 上 Pake 默认创建 DMG 安装程序,测试时想要 `.app` 包(避免交互)可设置环境变量 `PAKE_CREATE_APP=1`,想直接装进 `/Applications` 可以用 `--install`,它会构建 `.app`、复制到 `/Applications`,并在安装成功后删除当前目录中的本地 `.app`。>-> **注意**:打包过程需要使用 `Rust` 环境。如果未安装 `Rust`,系统会提示是否安装。如遇安装失败或超时,可参考指南 [手动安装](https://www.rust-lang.org/tools/install)。+> **Rust 环境**:打包需要 Rust,未安装时会提示是否安装,安装失败或超时可以参考 [手动安装](https://www.rust-lang.org/tools/install)。### [url]@@ -83,7 +81,7 @@ pake ./dist --name MyTool### [options]-可以通过传递以下选项来定制打包过程。`pake --help` 展示全部支持的 CLI 选项。本文档是完整参考。+常用选项先看下表,`pake --help` 能列出全部选项,后面逐个给出完整说明。| 选项 | 描述 | 示例 || --------------------------- | ------------------------------------ | ---------------------------------------------- |@@ -99,13 +97,9 @@ pake ./dist --name MyTool| `--help` | 显示全部 CLI 选项 | `--help` || `--version` | 显示 CLI 版本 | `--version` |-完整选项请参见下面的详细说明:-#### [name]-指定应用程序的名称,未指定时系统会提示输入,建议使用英文。--**注意**:支持带空格的名称,会自动处理不同平台的命名规范:+指定应用程序的名称,未指定时会提示输入,最好使用英文,名称可以带空格,不同平台的命名规范会自动处理:- **Windows/macOS**:保持空格和大小写(如 `"Google Translate"`)- **Linux**:自动转换为小写并用连字符连接(如 `"google-translate"`)@@ -120,7 +114,7 @@ pake ./dist --name MyTool#### [icon]-**可选参数**:未指定时自动抓取网站 Favicon 并转换为目标平台格式。如需自定义图标,可访问 [icon-icons](https://icon-icons.com) 或 [macOSicons](https://macosicons.com/#/) 下载。+**可选参数**:未指定时自动抓取网站 Favicon 并转换为目标平台格式,如需自定义图标,可访问 [icon-icons](https://icon-icons.com) 或 [macOSicons](https://macosicons.com/#/) 下载。支持本地或远程文件,自动转换为平台所需格式:@@ -140,20 +134,20 @@ pake https://github.com --name GitHub--icon https://cdn.tw93.fun/pake/weekly.icns # 远程图标(.icns 适用于 macOS)```-#### [height]+#### [width]-设置应用窗口高度,默认为 `780px`。+设置应用窗口宽度,默认为 `1200px`。```shell---height <number>+--width <number>```-#### [width]+#### [height]-设置应用窗口宽度,默认为 `1200px`。+设置应用窗口高度,默认为 `780px`。```shell---width <number>+--height <number>```#### [min-width]@@ -174,7 +168,7 @@ pake https://github.com --name GitHub#### [zoom]-设置初始页面缩放比例,取值为 50 到 200 之间的整数,默认为 `100`。用户仍可通过快捷键(`Cmd/Ctrl +/-/0`)微调。+设置初始页面缩放比例,取值为 50 到 200 之间的整数,默认为 `100`,用户仍可通过快捷键(`Cmd/Ctrl +/-/0`)微调。```shell--zoom <number>@@ -184,7 +178,7 @@ pake https://github.com --name GitHub#### [hide-title-bar]-隐藏标题栏,默认为 `false`。仅对 macOS 有效。+隐藏标题栏,仅对 macOS 有效,默认为 `false`。```shell--hide-title-bar@@ -192,7 +186,7 @@ pake https://github.com --name GitHub#### [hide-window-decorations]-在 Windows 和 Linux 上隐藏原生窗口装饰,默认为 `false`。该选项会移除标题栏和窗口控制按钮,并在顶部提供拖拽区域以移动窗口。可使用 `F11` 切换原生全屏。在 macOS 上会被忽略。+在 Windows 和 Linux 上隐藏原生窗口装饰,移除标题栏和窗口控制按钮,并在顶部提供拖拽区域以移动窗口,可使用 `F11` 切换原生全屏,在 macOS 上会被忽略,默认为 `false`。```shell--hide-window-decorations@@ -216,7 +210,7 @@ pake https://github.com --name GitHub#### [activation-shortcut]-设置应用程序的全局激活快捷键。默认为空,可自定义快捷键,如 `CmdOrControl+Shift+P`,格式参考 [available-modifiers](https://www.electronjs.org/docs/latest/api/accelerator#available-modifiers)。+设置应用程序的全局激活快捷键,默认为空,可自定义快捷键,如 `CmdOrControl+Shift+P`,格式参考 [available-modifiers](https://www.electronjs.org/docs/latest/api/accelerator#available-modifiers)。```shell--activation-shortcut <string>@@ -258,7 +252,7 @@ pake https://github.com --name GitHub#### [enable-find]-启用 Pake 内置的页面查找浮层,默认为 `false`。开启后支持使用 `Cmd/Ctrl+F` 打开查找,`Cmd/Ctrl+G` 跳转到下一个匹配项,`Cmd/Ctrl+Shift+G` 跳转到上一个匹配项。+启用 Pake 内置的页面查找浮层,默认为 `false`,开启后支持使用 `Cmd/Ctrl+F` 打开查找,`Cmd/Ctrl+G` 跳转到下一个匹配项,`Cmd/Ctrl+Shift+G` 跳转到上一个匹配项。```shell--enable-find@@ -274,7 +268,7 @@ pake https://github.com --name GitHub#### [internal-url-regex]-使用正则表达式指定内部链接匹配规则(在应用内打开)。设置后优先于默认域名匹配逻辑,适用于仅允许特定路径在应用内打开的场景。+使用正则表达式指定内部链接匹配规则(在应用内打开),设置后优先于默认域名匹配逻辑,适用于仅允许特定路径在应用内打开的场景。```shell--internal-url-regex <pattern>@@ -305,7 +299,7 @@ pake https://github.com --name GitHub##### 准备工作-- 注意:启用此选项后,需要使用 Rust 官方 rustup 安装工具链,不支持 Homebrew 安装的 Rust+- 启用此选项后,需要使用 Rust 官方 rustup 安装工具链,不支持 Homebrew 安装的 Rust- Intel 设备需安装 arm64 跨平台 target:```shell@@ -362,7 +356,7 @@ pake https://github.com --name GitHub#### [windows-toolchain]-选择 Windows 构建使用的 Rust 工具链。仅适用于 Windows,其他平台忽略此选项。+选择 Windows 构建使用的 Rust 工具链,仅适用于 Windows,其他平台忽略此选项。- `msvc`(默认):Tauri 推荐工具链,需安装 [Visual Studio Build Tools](https://tauri.app/start/prerequisites/#windows)(勾选“使用 C++ 的桌面开发”工作负载)。- `gnu`:改用 MinGW/MSYS2 工具链构建,适合已安装 Rust 和 GNU 工具链(例如通过 [MSYS2](https://www.msys2.org/))但没有安装 Visual Studio Build Tools 的机器。仅支持 `x64`(MSYS2 未提供该目标的 ARM64 GCC 工具链)。需要 `PATH` 中包含 `gcc`、`ld` 和 `dlltool`。@@ -374,19 +368,19 @@ pake https://github.com --name GitHub--windows-toolchain gnu```-若未检测到 MSVC 但存在可用 GNU 工具链,Pake 会提示使用 `--windows-toolchain gnu`,避免在链接阶段报出晦涩错误。使用 `gnu` 不影响系统全局 Rust 环境设置,仅作用于当次构建进程。+若未检测到 MSVC 但存在可用 GNU 工具链,Pake 会提示使用 `--windows-toolchain gnu`,避免在链接阶段报出晦涩错误,使用 `gnu` 不影响系统全局 Rust 环境设置,仅作用于当次构建进程。-使用 `gnu` 时,可执行文件会在运行时加载 `WebView2Loader.dll`,而不是像 MSVC 那样静态链接。MSI 安装包已包含该文件;`--keep-binary` 会把它复制到 `AppName.exe` 旁边,请将两者放在一起,否则原始可执行文件无法启动。+使用 `gnu` 时,可执行文件会在运行时加载 `WebView2Loader.dll`,而不是像 MSVC 那样静态链接。MSI 安装包已包含该文件;`--keep-binary` 会把它复制到 `AppName.exe` 旁边,两者要放在一起,否则原始可执行文件无法启动。#### [no-bundle]-跳过打包,只输出编译好的可执行文件。仅 Linux 可用。适用于 Fedora、RHEL、Oracle Linux 等 RPM 系发行版,这些系统上原生打包器可能在打包阶段中止,用此选项仍能拿到可运行的二进制。+跳过打包,只输出编译好的可执行文件,仅 Linux 可用,适用于 Fedora、RHEL、Oracle Linux 等 RPM 系发行版,这些系统上原生打包器可能在打包阶段中止,用此选项仍能拿到可运行的二进制。```shellpake https://github.com --name GitHub --no-bundle```-裸可执行文件会复制到当前目录,命名为 `<name>-binary`。在非 Linux 平台此选项会被忽略。+裸可执行文件会复制到当前目录,命名为 `<name>-binary`,在非 Linux 平台此选项会被忽略。#### [user-agent]@@ -406,7 +400,7 @@ pake https://github.com --name GitHub --no-bundle#### [system-tray-icon]-设置托盘图标,仅在启用系统托盘时有效。图标必须为 `.ico` 或 `.png` 格式,尺寸应在 32x32 到 256x256 像素之间。+设置托盘图标,仅在启用系统托盘时有效,图标必须为 `.ico` 或 `.png` 格式,尺寸应在 32x32 到 256x256 像素之间。```shell--system-tray-icon <path>@@ -414,7 +408,7 @@ pake https://github.com --name GitHub --no-bundle#### [hide-on-close]-点击窗口关闭按钮时隐藏窗口而非退出应用。各平台默认值:macOS 为 `true`,Windows/Linux 为 `false`。+点击窗口关闭按钮时隐藏窗口而非退出应用,macOS 默认为 `true`,Windows/Linux 默认为 `false`。```shell# 关闭时隐藏(macOS 默认行为)@@ -427,7 +421,7 @@ pake https://github.com --name GitHub --no-bundle#### [start-to-tray]-启动时最小化到系统托盘而不展示主窗口。必须与 `--show-system-tray` 搭配使用,默认为 `false`。+启动时最小化到系统托盘而不展示主窗口,必须与 `--show-system-tray` 搭配使用,默认为 `false`。```shell--start-to-tray@@ -436,7 +430,7 @@ pake https://github.com --name GitHub --no-bundlepake https://github.com --name GitHub --show-system-tray --start-to-tray```-**注意**:双击托盘图标可显示/隐藏窗口。未配置 `--show-system-tray` 时此选项被忽略。+双击托盘图标可显示或隐藏窗口,未配置 `--show-system-tray` 时此选项被忽略。#### [title]@@ -452,7 +446,7 @@ pake https://github.com --name GitHub --show-system-tray --start-to-tray#### [incognito]-以无痕模式启动应用,默认为 `false`。启用后不保留 Cookie、Local Storage 和历史记录,适用于注重隐私或临时登录场景。+以无痕模式启动应用,默认为 `false`,启用后不保留 Cookie、Local Storage 和历史记录,适用于注重隐私或临时登录场景。```shell--incognito@@ -479,7 +473,7 @@ pake https://flutter.dev --name FlutterApp --wasm#### [enable-drag-drop]-启用原生拖拽支持,默认为 `false`。支持网页内元素拖拽排序及文件拖入上传等交互。+启用原生拖拽支持,默认为 `false`,支持网页内元素拖拽排序及文件拖入上传等交互。```shell--enable-drag-drop@@ -490,7 +484,7 @@ pake https://planka.example.com --name PlankApp --enable-drag-drop#### [keep-binary]-构建后保留免安装的独立运行文件,默认为 `false`。除各平台标准安装包外,还会在当前目录额外输出二进制(Unix 为 `AppName-binary`,Windows 为 `AppName.exe`)。使用 `--windows-toolchain gnu` 时同步输出 `WebView2Loader.dll`。+构建后保留免安装的独立运行文件,默认为 `false`,除各平台标准安装包外,还会在当前目录额外输出二进制(Unix 为 `AppName-binary`,Windows 为 `AppName.exe`),使用 `--windows-toolchain gnu` 时同步输出 `WebView2Loader.dll`。```shell--keep-binary@@ -501,7 +495,7 @@ pake https://github.com --name GitHub --keep-binary#### [iterative-build]-开启快速构建模式(仅生成 app,跳过 dmg/deb/msi 打包),适用于调试,默认为 `false`。+开启快速构建模式,仅 macOS 有效,只生成 `.app`,跳过 DMG 打包,适合调试,默认为 `false`。```shell--iterative-build@@ -509,9 +503,7 @@ pake https://github.com --name GitHub --keep-binary#### [install]-将构建出的 macOS 应用直接安装到 `/Applications`,默认为 `false`。--该选项仅适用于 macOS,适合本地开发和快速验证。启用后,Pake 会构建 `.app` 包,将其复制到 `/Applications`,如果已存在同名应用则先替换,并在安装成功后删除当前工作目录中的本地 `.app`。如果安装失败,当前目录中的 `.app` 会被保留。+将构建出的 macOS 应用直接安装到 `/Applications`,默认为 `false`,仅适用于 macOS,适合本地开发和快速验证。启用后 Pake 会构建 `.app` 包,将其复制到 `/Applications`,如果已存在同名应用则先替换,并在安装成功后删除当前工作目录中的本地 `.app`。如果安装失败,当前目录中的 `.app` 会被保留。```shell--install@@ -522,7 +514,7 @@ pake https://github.com --name GitHub --install#### [camera]-在 macOS 上申请摄像头使用权限(添加 `com.apple.security.device.camera` entitlement),默认为 `false`。Windows 和 Linux 忽略此选项。适用于视频通话、扫码等网页场景。+在 macOS 上申请摄像头使用权限(添加 `com.apple.security.device.camera` entitlement),默认为 `false`,Windows 和 Linux 忽略此选项,适用于视频通话、扫码等网页场景。```shell--camera@@ -533,7 +525,7 @@ pake https://meet.google.com --name Meet --camera#### [microphone]-在 macOS 上申请麦克风使用权限(添加 `com.apple.security.device.audio-input` entitlement),默认为 `false`。Windows 和 Linux 忽略此选项。+在 macOS 上申请麦克风使用权限(添加 `com.apple.security.device.audio-input` entitlement),默认为 `false`,Windows 和 Linux 忽略此选项。```shell--microphone@@ -625,7 +617,7 @@ pake https://example.com --name MyApp --download-dir '~/Documents/MyApp'#### [proxy-url]-为所有网络请求配置代理服务器,支持 HTTP、HTTPS 和 SOCKS5。在 Windows 与 Linux 上直接可用,macOS 需 macOS 14+。+为所有网络请求配置代理服务器,支持 HTTP、HTTPS 和 SOCKS5,在 Windows 与 Linux 上直接可用,macOS 需 macOS 14+。```shell--proxy-url http://127.0.0.1:7890@@ -634,7 +626,7 @@ pake https://example.com --name MyApp --download-dir '~/Documents/MyApp'#### [basic-auth]-当目标站点请求 HTTP Basic 认证时弹出原生凭据输入框。仅用于 macOS(WKWebView 默认不显示 401 登录框)。凭据在运行时输入,仅保留在当前会话中。+当目标站点请求 HTTP Basic 认证时弹出原生凭据输入框,仅用于 macOS(WKWebView 默认不显示 401 登录框),凭据在运行时输入,仅保留在当前会话中。```shell--basic-auth@@ -650,7 +642,7 @@ pake https://example.com --name MyApp --download-dir '~/Documents/MyApp'#### [config]-使用声明式 JSON 配置文件代替命令行参数拼接。字段名为 camelCase 格式的 CLI 选项名,外加 `url`;详见 [schema/pake.schema.json](../schema/pake.schema.json)。显式传入的命令行参数优先级始终高于配置文件。未知字段、类型错误或超范围数值会立即报错。相对路径形式的 `url` 相对当前工作目录解析,而非配置文件所在目录。调用参数(`--json`、`--config`、`--version`)不允许写进配置文件。+使用声明式 JSON 配置文件代替命令行参数拼接,字段名为 camelCase 格式的 CLI 选项名,外加 `url`,详见 [schema/pake.schema.json](../schema/pake.schema.json),调用参数(`--json`、`--config`、`--version`)不允许写进配置文件。显式传入的命令行参数优先级始终高于配置文件,未知字段、类型错误或超范围数值会立即报错,相对路径形式的 `url` 相对当前工作目录解析,而非配置文件所在目录。```shell--config <path>@@ -668,7 +660,7 @@ pake --config app.json#### [json]-面向脚本与 AI agent 的机器可读模式。所有日志改走 stderr,stdout 只输出一个 JSON 结果对象;交互式提示全部禁用(stdin 非 TTY 时同样禁用)。+面向脚本与 AI agent 的机器可读模式,所有日志改走 stderr,stdout 只输出一个 JSON 结果对象;交互式提示全部禁用(stdin 非 TTY 时同样禁用)。```shell--json@@ -684,7 +676,7 @@ pake --config app.json退出码:`0` 成功、`2` 输入非法、`3` 构建失败、`4` 环境缺失或依赖安装失败(如未安装 Rust、依赖安装出错)、`1` 未预期错误。错误码:`INVALID_INPUT`、`ENV_MISSING`、`BUILD_FAILED`、`UNEXPECTED`,另有 `NETWORK`(预留,当前版本的网络失败会按所处阶段归入 `ENV_MISSING` 或 `BUILD_FAILED`)。-Linux 多 target 构建(如 `--targets deb,appimage`)时,若单个 target 失败而其他成功,会记入 `warnings`,此时 `ok` 仍为 true。请通过 `outputs[].format` 确认产物完整性。+Linux 多 target 构建(如 `--targets deb,appimage`)时,若单个 target 失败而其他成功,会记入 `warnings`,此时 `ok` 仍为 true,可以通过 `outputs[].format` 确认产物是否完整。#### [ignore-certificate-errors]@@ -696,9 +688,7 @@ Linux 多 target 构建(如 `--targets deb,appimage`)时,若单个 target#### [new-window]-允许网页唤起新窗口(如 OAuth 登录弹窗、新标签页或会话窗口)。--此选项有助于需要弹出授权窗口的站点,但能否在应用内完成登录仍取决于目标服务方的安全策略(部分服务商如 Google 可能会主动限制在嵌入式 WebView 中授权)。+允许网页唤起新窗口(如 OAuth 登录弹窗、新标签页或会话窗口),有助于需要弹出授权窗口的站点,但能否在应用内完成登录仍取决于目标服务方的安全策略(部分服务商如 Google 可能会主动限制在嵌入式 WebView 中授权)。```shell--new-windowdiff --git a/docs/faq.md b/docs/faq.mdindex 493739f3..c28f185d 100644--- a/docs/faq.md+++ b/docs/faq.md@@ -30,13 +30,10 @@ Common issues and solutions when using Pake.- [Permission Denied When Installing Globally](#permission-denied-when-installing-globally)- [Getting Help](#getting-help)-----## Build Issues### Rust Version Error: "feature 'edition2024' is required"-**Problem:**When building Pake or using the CLI, you encounter an error like:```txt@@ -49,15 +46,9 @@ Caused by:**Why This Happens:**-Pake's dependencies require Rust edition2024 support, which is only available in Rust 1.85.0 or later. Specifically:--- The dependency chain includes: `tauri` → `image` → `moxcms` → `pxfm v0.1.25` (requires edition2024)-- Rust edition2024 became stable in Rust 1.85.0 (released February 2025)-- If your Rust version is older (e.g., 1.82.0 from August 2024), you'll see this error--**Solution:**+Pake's dependency chain from `tauri` through `image` and `moxcms` to `pxfm v0.1.25` requires Rust edition2024, which became stable in Rust 1.85.0 (released February 2025). If your Rust version is older (e.g., 1.82.0 from August 2024), you'll see this error.-Update your Rust toolchain to version 1.85.0 or later:+Update your Rust toolchain to version 1.85.0 or later, then retry your build command:```bash# Update to the latest stable Rust version@@ -71,22 +62,15 @@ rustc --version# Should show: rustc 1.85.0 or higher```-After updating, retry your build command.--**For Development Setup:**--If you're setting up a development environment, ensure:+A development environment needs:- Rust ≥1.85.0 (check with `rustc --version`)- Node.js ≥20.9.0 (check with `node --version`)See [CONTRIBUTING.md](../CONTRIBUTING.md) for complete prerequisites.-----### Linux: Build Error "Can't detect any appindicator library"-**Problem:**When building on Ubuntu 24.04 or newer, you may encounter:```txt@@ -95,11 +79,7 @@ Can't detect any appindicator libraryOr potentially errors related to Icon RGBA in older versions.-**Solution:**--Ubuntu 24.04+ replaced `libappindicator3-dev` with `libayatana-appindicator3-dev`.--Install the correct dependency:+Ubuntu 24.04+ replaced `libappindicator3-dev` with `libayatana-appindicator3-dev`, so install the correct dependency:```bashsudo apt-get update@@ -112,20 +92,11 @@ On Fedora and other RPM-based distros with the same error, install `libappindicasudo dnf install -y libappindicator-gtk3-devel```-----### Linux: Installing on Fedora / RHEL / Oracle Linux (RPM-based distros)-**Problem:**-On RPM-based distros (Fedora, RHEL, Oracle Linux, Rocky, AlmaLinux, openSUSE) a-`.deb` package cannot be installed by the system package manager, and older Pake-versions always built a `.deb` first.+On RPM-based distros (Fedora, RHEL, Oracle Linux, Rocky, AlmaLinux, openSUSE) a `.deb` package cannot be installed by the system package manager, and older Pake versions always built a `.deb` first.-**Solution:**--Pake now picks the default bundle target from `/etc/os-release`: RPM-based-distros default to `rpm, appimage`, while Debian/Ubuntu keep `deb, appimage`. So-the basic command already produces an installable package:+Pake picks the default bundle target from `/etc/os-release`: RPM-based distros default to `rpm, appimage`, while Debian/Ubuntu keep `deb, appimage`, so the basic command already produces an installable package:```bashpake https://github.com --name GitHub@@ -139,24 +110,17 @@ pake https://github.com --name GitHub --targets rpm # RPM packagepake https://github.com --name GitHub --targets appimage # portable AppImage```-When several targets build (the default), one format failing no longer aborts-the others: if the `.rpm`/`.deb` bundler fails, the AppImage is still produced as-a portable fallback. AppImage runs without installation:+When several targets build (the default), one format failing no longer aborts the others: if the `.rpm`/`.deb` bundler fails, the AppImage is still produced as a portable fallback. AppImage runs without installation:```bashchmod +x ./GitHub.AppImage./GitHub.AppImage```-> Building an `.rpm` requires `rpm-build` (`sudo dnf install rpm-build`). If you-> only need a runnable app without packaging, add `--keep-binary` to also copy-> the raw executable next to the installer.-----+> Building an `.rpm` requires `rpm-build` (`sudo dnf install rpm-build`). If you only need a runnable app without packaging, add `--keep-binary` to also copy the raw executable next to the installer.### Linux: AppImage Build Fails with "failed to run linuxdeploy"-**Problem:**When building AppImage on Linux (Debian, Ubuntu, Arch, etc.), you may encounter errors like:```txt@@ -192,7 +156,7 @@ This bypasses the library stripping process that often causes issues on certain**Solution 2: Install System Dependencies**-If NO_STRIP doesn't work, ensure you have all required system dependencies:+If NO_STRIP doesn't work, install all required system dependencies, then try building again:```bashsudo apt update@@ -214,8 +178,6 @@ sudo apt install -y \pkg-config```-Then try building again (you can still pre-set `NO_STRIP=1` if you prefer).-**Solution 3: Use DEB Format Instead**DEB packages are more stable on Debian-based systems:@@ -247,13 +209,8 @@ This is a known issue with Tauri's linuxdeploy tool, which can fail when:- Building on newer distributions (Arch, Debian Trixie, etc.)- Missing WebKit2GTK or GTK development libraries-The `NO_STRIP=1` environment variable is the official workaround recommended by the Tauri community.------### Linux: AppImage Crashes at Launch with WebKitNetworkProcess Not Found-**Problem:**The AppImage builds successfully but crashes immediately at launch:```txt@@ -297,14 +254,10 @@ mkdir -p lib && ln -s ../usr/lib/webkit2gtk-4.1 lib/webkit2gtk-4.1./AppRun```-----### Linux: AppImage Opens but Buttons or Keyboard Do Not Work on Wayland-**Problem:**On some pure Wayland compositors, especially niri, the AppImage can open but page buttons cannot be clicked or keyboard input does not reach the webview.-**Solution:**Pake automatically avoids the conservative WebKit rendering flags in niri sessions. To force the same native WebKit path manually, launch the app with:```bash@@ -320,16 +273,11 @@ PAKE_LINUX_WEBKIT_SAFE_MODE=1 ./MyApp.AppImage**Why This Happens:**With WebKitGTK 2.52 or later, on both X11 and Wayland, Pake uses shared-memory rendering (`WEBKIT_DMABUF_RENDERER_FORCE_SHM=1`) instead of disabling the renderer, preserving the hardware acceleration needed for video. Older WebKitGTK versions keep the existing compatibility flags; niri keeps native rendering. Explicit WebKit variables are respected. `PAKE_LINUX_WEBKIT_SAFE_MODE=1` selects the old conservative mode, while `0` removes the two disabling flags and skips automatic workarounds.-----### Linux: "cargo: command not found" After Installing Rust-**Problem:**You installed Rust but Pake still reports "cargo: command not found".-**Solution:**--Pake CLI automatically reloads the Rust environment, but if issues persist:+Pake CLI automatically reloads the Rust environment. If the issue persists, reload it or restart your terminal, then try building again:```bash# Reload environment in current terminal@@ -338,13 +286,8 @@ source ~/.cargo/env# Or restart your terminal```-Then try building again.------### Windows: Installation Timeout During First Build-**Problem:**When building for the first time on Windows, you may encounter:```txt@@ -400,30 +343,20 @@ pake https://github.com --name GitHub- First installation: 10-15 minutes on Windows- Subsequent builds: Much faster (dependencies cached)-----### Windows: Missing Visual Studio Build Tools-**Problem:**Build fails with errors about missing MSVC or Windows SDK.-**Solution:**-Install Visual Studio Build Tools:1. Download [Visual Studio Build Tools](https://visualstudio.microsoft.com/downloads/#build-tools-for-visual-studio-2022)2. During installation, select "Desktop development with C++"3. For ARM64 support: Also select "MSVC v143 - VS 2022 C++ ARM64 build tools" under Individual Components-----### macOS: Build Fails with Module Compilation Errors-**Problem:**On macOS 26 Beta or newer, you may see errors related to `CoreFoundation` or `_Builtin_float` modules.-**Solution:**-Create a configuration file to use compatible SDK:```bash@@ -436,14 +369,10 @@ EOFThis file is already in `.gitignore` and won't be committed.-----## Runtime Issues### App Window is Too Small/Large-**Solution:**-Specify custom dimensions when building:```bash@@ -452,15 +381,10 @@ pake https://example.com --width 1200 --height 800See [CLI Usage Guide](cli-usage.md#width) for all window options.-----### App Icon Not Showing Correctly-**Problem:**Custom icon doesn't appear or shows default icon.-**Solution:**-Ensure you're using the correct icon format for your platform:- **macOS**: `.icns` format@@ -480,15 +404,10 @@ pake https://example.com --icon ./icon.pngPake can automatically convert icons, but providing the correct format is more reliable.-----### Website Features Not Working (Login, Upload, etc.)-**Problem:**Some website features don't work in the Pake app.-**Solution:**-This is usually due to web compatibility issues. Try:1. **Set custom User Agent:**@@ -534,9 +453,9 @@ This is usually due to web compatibility issues. Try:4. **Be aware of embedded-webview sign-in limits**- Some authentication providers, especially Google, may block sign-in inside embedded webviews. Because Pake packages sites into a desktop webview, Google properties or sites that rely on Google OAuth may still fail to sign in even when `--new-window` or `--multi-window` is enabled. This is provider policy, not a packaging bug. In those cases, use the normal browser, a browser-installed app, or a native desktop client.+ Some authentication providers, especially Google, may block sign-in inside embedded webviews. Because Pake packages sites into a desktop webview, Google properties or sites that rely on Google OAuth may still fail to sign in even when `--new-window` or `--multi-window` is enabled. This is provider policy, not a packaging bug, so use the normal browser, a browser-installed app, or a native desktop client for those sites.- On macOS, Pake keeps **Sign in with Apple** popup flows (e.g. Yelp, Upwork) on the native popup path so Apple's callback can return to the opener page. Other auth popups may still be navigated in the current window to avoid WebKit crashes. If a provider blocks embedded webviews or the login still fails, use the normal browser, a browser-installed app, or a native desktop client.+ On macOS, Pake keeps **Sign in with Apple** popup flows (e.g. Yelp, Upwork) on the native popup path so Apple's callback can return to the opener page. Other auth popups may still be navigated in the current window to avoid WebKit crashes.5. **WeChat Web login environment error**@@ -548,30 +467,22 @@ This is usually due to web compatibility issues. Try:6. **Cloudflare or bot-verification loops forever**- Some sites (e.g. ChatGPT) put a Cloudflare challenge in front of the page. The system WebView, especially WebKitGTK on Linux, is often flagged by these challenges and loops without passing, even with a custom `--user-agent`. This is the challenge provider detecting a non-standard browser engine, not a Pake bug, and there is no reliable Pake-side workaround. Use the site in a regular browser or a native client when it gates behind such a check.-----+ Some sites (e.g. ChatGPT) put a Cloudflare challenge in front of the page. The system WebView, especially WebKitGTK on Linux, is often flagged by these challenges and loops without passing, even with a custom `--user-agent`. This is the challenge provider detecting a non-standard browser engine, not a Pake bug, and there is no reliable Pake-side workaround. As with item 4, use the site in a regular browser or a native client when it gates behind such a check.### App Uses More Memory Than Expected-**Problem:**-The app spawns a WebKitWebProcess (Linux) or WebContent process (macOS) that uses several hundred MB of RAM, which seems to contradict the "~5MB" figure.+The app spawns a WebKitWebProcess (Linux) or WebContent process (macOS) that uses several hundred MB of RAM, which seems to contradict the README's "typically under 10 MB" figure.**Explanation:**-The ~5MB number is the installer/app size on disk, not runtime memory. At runtime Pake renders through your system WebView (WebKitWebProcess on Linux, WKWebView on macOS), and that process's memory is governed by the engine and the page you load, not by Pake. A heavy SPA like Gemini, Slack, or ChatGPT uses a comparable amount opening in any WebKitGTK browser such as GNOME Web. Pake adds very little on top of the WebView, so there is no Pake-side setting that meaningfully lowers it. This is inherent to using the system WebView and is the trade-off for the small binary size.-----+That number is the installer size on disk, not runtime memory. At runtime Pake renders through your system WebView (WebKitWebProcess on Linux, WKWebView on macOS), and that process's memory is governed by the engine and the page you load, not by Pake. A heavy SPA like Gemini, Slack, or ChatGPT uses a comparable amount opening in any WebKitGTK browser such as GNOME Web. Pake adds very little on top of the WebView, so there is no Pake-side setting that meaningfully lowers it. This is inherent to using the system WebView and is the trade-off for the small binary size.## Installation Issues### Permission Denied When Installing Globally-**Problem:**`npm install -g pake-cli` fails with permission errors.-**Solution:**-Use one of these approaches:```bash@@ -588,8 +499,6 @@ npm install -g pake-clipnpm install -g pake-cli```-----## Getting HelpIf your issue isn't covered here:diff --git a/docs/faq_CN.md b/docs/faq_CN.mdindex ba6faac9..94a2148f 100644--- a/docs/faq_CN.md+++ b/docs/faq_CN.md@@ -11,13 +11,13 @@## 目录- [构建问题](#构建问题)- - [Rust 版本错误:"feature 'edition2024' is required"](#rust-版本错误feature-edition2024-is-required)+ - [Rust 版本错误:"feature 'edition2024' is required"](#rust-版本错误feature-edition2024-is-required)- [Linux:构建报错 "Can't detect any appindicator library"](#linux构建报错-cant-detect-any-appindicator-library)- [Linux:在 Fedora / RHEL / Oracle Linux 等 RPM 系发行版上安装](#linux在-fedora--rhel--oracle-linux-等-rpm-系发行版上安装)- [Linux:AppImage 构建失败,提示 "failed to run linuxdeploy"](#linuxappimage-构建失败提示-failed-to-run-linuxdeploy)- [Linux:AppImage 启动即崩溃,提示找不到 WebKitNetworkProcess](#linuxappimage-启动即崩溃提示找不到-webkitnetworkprocess)- [Linux:AppImage 打开后按钮或键盘在 Wayland 下不可用](#linuxappimage-打开后按钮或键盘在-wayland-下不可用)- - [Linux:"cargo: command not found" 即使已安装 Rust](#linuxcargo-command-not-found-即使已安装-rust)+ - [Linux:"cargo: command not found" 即使已安装 Rust](#linuxcargo-command-not-found-即使已安装-rust)- [Windows:首次构建时安装超时](#windows首次构建时安装超时)- [Windows:缺少 Visual Studio 构建工具](#windows缺少-visual-studio-构建工具)- [macOS:构建失败,出现模块编译错误](#macos构建失败出现模块编译错误)@@ -30,13 +30,10 @@- [全局安装时权限被拒绝](#全局安装时权限被拒绝)- [获取帮助](#获取帮助)-----## 构建问题-### Rust 版本错误:"feature 'edition2024' is required"+### Rust 版本错误:"feature 'edition2024' is required"-**问题描述:**在构建 Pake 或使用 CLI 时,遇到如下错误:```txt@@ -49,15 +46,9 @@ Caused by:**原因分析:**-Pake 的依赖项需要 Rust edition2024 支持,该特性仅在 Rust 1.85.0 或更高版本中可用。具体来说:--- 依赖链包括:`tauri` → `image` → `moxcms` → `pxfm v0.1.25`(需要 edition2024)-- Rust edition2024 在 Rust 1.85.0(2025 年 2 月发布)中成为稳定版-- 如果您的 Rust 版本较旧(例如 2024 年 8 月的 1.82.0),就会看到此错误--**解决方案:**+Pake 的依赖链 `tauri`、`image`、`moxcms` 一直到 `pxfm v0.1.25` 需要 Rust edition2024,它在 Rust 1.85.0(2025 年 2 月发布)中成为稳定版,如果你的 Rust 版本较旧(例如 2024 年 8 月的 1.82.0),就会看到此错误。-将 Rust 工具链更新到 1.85.0 或更高版本:+将 Rust 工具链更新到 1.85.0 或更高版本,更新后重新执行构建命令:```bash# 更新到最新稳定版 Rust@@ -71,22 +62,15 @@ rustc --version# 应显示:rustc 1.85.0 或更高版本```-更新后,重新执行构建命令。--**对于开发环境设置:**--如果您正在设置开发环境,请确保:+设置开发环境时需要:- Rust ≥1.85.0(使用 `rustc --version` 检查)- Node.js ≥20.9.0(使用 `node --version` 检查)详见 [CONTRIBUTING.md](../CONTRIBUTING.md) 获取完整的前置条件。-----### Linux:构建报错 "Can't detect any appindicator library"-**问题描述:**在 Ubuntu 24.04 或更新版本上构建时,可能遇到以下错误:```txt@@ -95,11 +79,7 @@ Can't detect any appindicator library或者在之前的版本中可能看到关于 Icon RGBA 的报错。-**解决方案:**--这是因为 Ubuntu 24.04+ 使用 `libayatana-appindicator3-dev` 替代了旧的 `libappindicator3-dev`。--请安装正确的依赖库:+这是因为 Ubuntu 24.04+ 使用 `libayatana-appindicator3-dev` 替代了旧的 `libappindicator3-dev`,安装正确的依赖库即可:```bashsudo apt-get update@@ -112,19 +92,11 @@ Fedora 等 RPM 系发行版遇到同样的报错,安装 `libappindicator-gtk3-sudo dnf install -y libappindicator-gtk3-devel```-----### Linux:在 Fedora / RHEL / Oracle Linux 等 RPM 系发行版上安装-**问题:**-在 RPM 系发行版(Fedora、RHEL、Oracle Linux、Rocky、AlmaLinux、openSUSE)上,-`.deb` 包无法被系统包管理器安装,而旧版本 Pake 总是先构建 `.deb`。+在 RPM 系发行版(Fedora、RHEL、Oracle Linux、Rocky、AlmaLinux、openSUSE)上,`.deb` 包无法被系统包管理器安装,而旧版本 Pake 总是先构建 `.deb`。-**解决方法:**--Pake 现在会读取 `/etc/os-release` 来决定默认打包目标:RPM 系发行版默认使用-`rpm, appimage`,Debian/Ubuntu 仍然是 `deb, appimage`。所以基础命令就能直接产出-可安装的包:+Pake 会读取 `/etc/os-release` 来决定默认打包目标,RPM 系发行版默认使用 `rpm, appimage`,Debian/Ubuntu 仍然是 `deb, appimage`,所以基础命令就能直接产出可安装的包:```bashpake https://github.com --name GitHub@@ -138,22 +110,17 @@ pake https://github.com --name GitHub --targets rpm # RPM 包pake https://github.com --name GitHub --targets appimage # 便携 AppImage```-默认会构建多个目标,此时单个格式失败不再中断其余格式:如果 `.rpm`/`.deb` 打包失败,-仍会产出 AppImage 作为便携回退方案。AppImage 无需安装即可运行:+默认会构建多个目标,此时单个格式失败不再中断其余格式,如果 `.rpm`/`.deb` 打包失败,仍会产出 AppImage 作为便携回退方案,AppImage 无需安装即可运行:```bashchmod +x ./GitHub.AppImage./GitHub.AppImage```-> 构建 `.rpm` 需要 `rpm-build`(`sudo dnf install rpm-build`)。如果你只想要一个可运行-> 的程序而不需要打包,可加上 `--keep-binary`,它会把原始可执行文件复制到安装包旁边。-----+> 构建 `.rpm` 需要 `rpm-build`(`sudo dnf install rpm-build`),如果你只想要一个可运行的程序而不需要打包,可加上 `--keep-binary`,它会把原始可执行文件复制到安装包旁边。### Linux:AppImage 构建失败,提示 "failed to run linuxdeploy"-**问题描述:**在 Linux 系统(Debian、Ubuntu、Arch 等)上构建 AppImage 时,可能遇到如下错误:```txt@@ -189,7 +156,7 @@ NO_STRIP=1 pake https://example.com --name MyApp --targets appimage**解决方案 2:安装系统依赖**-如果 NO_STRIP 不起作用,确保已安装所有必需的系统依赖:+如果 NO_STRIP 不起作用,确保已安装所有必需的系统依赖后再次尝试构建:```bashsudo apt update@@ -211,8 +178,6 @@ sudo apt install -y \pkg-config```-然后再次尝试构建(也可以提前设置 `NO_STRIP=1`)。-**解决方案 3:改用 DEB 格式**DEB 包在基于 Debian 的系统上更稳定:@@ -244,13 +209,8 @@ docker run --rm --privileged \- 在较新的发行版上构建(Arch、Debian Trixie 等)- 缺少 WebKit2GTK 或 GTK 开发库-`NO_STRIP=1` 环境变量是 Tauri 社区推荐的官方解决方法。------### Linux:AppImage 启动即崩溃,提示找不到 WebKitNetworkProcess-**问题描述:**AppImage 构建成功,但启动时立即崩溃:```txt@@ -294,14 +254,10 @@ mkdir -p lib && ln -s ../usr/lib/webkit2gtk-4.1 lib/webkit2gtk-4.1./AppRun```-----### Linux:AppImage 打开后按钮或键盘在 Wayland 下不可用-**问题描述:**在某些纯 Wayland 合成器上,尤其是 niri,AppImage 可以打开,但页面按钮无法点击,键盘输入也无法进入 webview。-**解决方案:**Pake 会在 niri 会话中自动避开保守的 WebKit 渲染参数。也可以手动强制使用原生 WebKit 渲染路径:```bash@@ -317,16 +273,11 @@ PAKE_LINUX_WEBKIT_SAFE_MODE=1 ./MyApp.AppImage**原因:**在 WebKitGTK 2.52 及以上版本上,X11 和 Wayland 都默认使用共享内存渲染(`WEBKIT_DMABUF_RENDERER_FORCE_SHM=1`),保留视频需要的硬件加速;旧版 WebKitGTK 沿用现有兼容参数,niri 保持原生渲染,手动设置的 WebKit 参数也会保留。`PAKE_LINUX_WEBKIT_SAFE_MODE=1` 切回原来的保守模式,`0` 则移除两个禁用参数,不再自动添加兼容参数。----+### Linux:"cargo: command not found" 即使已安装 Rust-### Linux:"cargo: command not found" 即使已安装 Rust--**问题描述:**已安装 Rust 但 Pake 仍然提示 "cargo: command not found"。-**解决方案:**--Pake CLI 会自动重新加载 Rust 环境,但如果问题仍然存在:+Pake CLI 会自动重新加载 Rust 环境,如果问题仍然存在,重新加载环境或重启终端后再次尝试构建:```bash# 在当前终端重新加载环境@@ -335,13 +286,8 @@ source ~/.cargo/env# 或者重启终端```-然后再次尝试构建。------### Windows:首次构建时安装超时-**问题描述:**在 Windows 上首次构建时,可能遇到:```txt@@ -359,7 +305,7 @@ Windows 首次安装可能较慢,原因包括:**解决方案 1:显式启用国内镜像**-Pake CLI 默认使用官方 npm 和 Rust 源。如果在国内下载较慢,可以显式启用国内镜像:+Pake CLI 默认使用官方 npm 和 Rust 源,如果在国内下载较慢,可以显式启用国内镜像:```bash# macOS/Linux@@ -397,30 +343,20 @@ pake https://github.com --name GitHub- 首次安装:Windows 上需要 10-15 分钟- 后续构建:依赖已缓存,速度会快很多-----### Windows:缺少 Visual Studio 构建工具-**问题描述:**构建失败,提示缺少 MSVC 或 Windows SDK。-**解决方案:**-安装 Visual Studio 构建工具:1. 下载 [Visual Studio Build Tools](https://visualstudio.microsoft.com/zh-hans/downloads/#build-tools-for-visual-studio-2022)2. 安装时选择"使用 C++ 的桌面开发"3. ARM64 支持:在"单个组件"下额外选择"MSVC v143 - VS 2022 C++ ARM64 构建工具"-----### macOS:构建失败,出现模块编译错误-**问题描述:**在 macOS 26 Beta 或更新版本上,可能看到与 `CoreFoundation` 或 `_Builtin_float` 模块相关的错误。-**解决方案:**-创建配置文件以使用兼容的 SDK:```bash@@ -433,32 +369,21 @@ EOF此文件已在 `.gitignore` 中,不会被提交。-----## 运行时问题### 应用窗口太小/太大-**解决方案:**--构建时指定自定义尺寸:+构建时指定自定义尺寸,所有窗口选项见 [CLI 使用指南](cli-usage_CN.md#width):```bashpake https://example.com --width 1200 --height 800```-查看 [CLI 使用指南](cli-usage_CN.md#width) 了解所有窗口选项。------### 应用图标显示不正确-**问题描述:**自定义图标没有显示或显示默认图标。-**解决方案:**--确保为您的平台使用正确的图标格式:+确保为你的平台使用正确的图标格式:- **macOS**:`.icns` 格式- **Windows**:`.ico` 格式@@ -477,16 +402,11 @@ pake https://example.com --icon ./icon.pngPake 可以自动转换图标,但提供正确的格式更可靠。-----### 网站功能不工作(登录、上传等)-**问题描述:**某些网站功能在 Pake 应用中无法工作。-**解决方案:**--这通常是由于 Web 兼容性问题。尝试:+这通常是 Web 兼容性问题,可以尝试:1. **设置自定义 User Agent:**@@ -500,7 +420,7 @@ Pake 可以自动转换图标,但提供正确的格式更可靠。pake https://example.com --inject ./fix.js```- 对于需要定时刷新的页面,建议把这类行为放在一个小的注入脚本里,而不是增加专门的 Pake 参数:+ 需要定时刷新的页面,把这类行为放在一个小的注入脚本里就行,不用增加专门的 Pake 参数:```javascriptfunction isEditing(element) {@@ -531,9 +451,9 @@ Pake 可以自动转换图标,但提供正确的格式更可靠。4. **注意嵌入式 WebView 的登录限制**- 某些认证提供方,尤其是 Google,可能会阻止在嵌入式 WebView 中完成登录。由于 Pake 是把网站包装进桌面 WebView,Google 自家站点或依赖 Google OAuth 的网站,即使启用了 `--new-window` 或 `--multi-window`,也仍然可能无法在应用内完成登录。这属于提供方策略限制,不是打包逻辑错误。遇到这种情况时,建议改用普通浏览器、浏览器安装版站点应用,或官方原生桌面客户端。+ 某些认证提供方,尤其是 Google,可能会阻止在嵌入式 WebView 中完成登录。由于 Pake 是把网站包装进桌面 WebView,Google 自家站点或依赖 Google OAuth 的网站,即使启用了 `--new-window` 或 `--multi-window`,也仍然可能无法在应用内完成登录。这属于提供方策略限制,不是打包逻辑错误,这类站点改用普通浏览器、浏览器安装版站点应用或官方原生桌面客户端。- 在 macOS 上,Pake 会让 **Sign in with Apple**(弹窗模式,例如 Yelp、Upwork)继续走原生弹窗路径,确保 Apple 的回调可以返回原页面。其他认证弹窗仍可能在当前窗口内跳转,以规避 WebKit 崩溃。如果提供方拦截嵌入式 WebView,或登录仍然失败,建议改用普通浏览器、浏览器安装版站点应用,或官方原生桌面客户端。+ 在 macOS 上,Pake 会让 **Sign in with Apple**(弹窗模式,例如 Yelp、Upwork)继续走原生弹窗路径,确保 Apple 的回调可以返回原页面。其他认证弹窗仍可能在当前窗口内跳转,以规避 WebKit 崩溃。5. **微信 Web 版登录环境异常**@@ -545,30 +465,22 @@ Pake 可以自动转换图标,但提供正确的格式更可靠。6. **Cloudflare 或人机验证一直循环**- 某些站点(例如 ChatGPT)会在页面前加一层 Cloudflare 验证。系统 WebView,尤其是 Linux 上的 WebKitGTK,经常被这类验证判定为非标准浏览器而一直循环、无法通过,即使加了自定义 `--user-agent` 也无效。这是验证服务在识别浏览器引擎,不是 Pake 的 bug,Pake 侧没有可靠的绕过手段。遇到强制此类验证的站点,建议改用普通浏览器或官方原生客户端。-----+ 某些站点(例如 ChatGPT)会在页面前加一层 Cloudflare 验证。系统 WebView,尤其是 Linux 上的 WebKitGTK,经常被这类验证判定为非标准浏览器而一直循环、无法通过,即使加了自定义 `--user-agent` 也无效。这是验证服务在识别浏览器引擎,不是 Pake 的 bug,Pake 侧没有可靠的绕过手段,和上面第 4 条一样,这类站点改用普通浏览器或官方原生客户端。### 应用占用内存比预期高-**问题:**-应用会启动一个 WebKitWebProcess(Linux)或 WebContent 进程(macOS),占用几百 MB 内存,看起来和"约 5MB"的说法矛盾。+应用会启动一个 WebKitWebProcess(Linux)或 WebContent 进程(macOS),占用几百 MB 内存,看起来和 README 里通常小于 10 MB 的说法矛盾。**说明:**-"约 5MB"指的是安装包/应用在磁盘上的体积,不是运行时内存。运行时 Pake 通过系统 WebView 渲染(Linux 上是 WebKitWebProcess,macOS 上是 WKWebView),这个进程的内存由引擎和你加载的页面决定,不由 Pake 控制。像 Gemini、Slack、ChatGPT 这类重型 SPA,用 GNOME Web 等任意 WebKitGTK 浏览器打开也会占用差不多的内存。Pake 在 WebView 之上几乎不增加额外开销,所以没有能显著降低它的 Pake 侧设置。这是使用系统 WebView 的固有代价,也是换取极小安装体积的取舍。-----+这个体积指的是安装包在磁盘上的大小,不是运行时内存。运行时 Pake 通过系统 WebView 渲染(Linux 上是 WebKitWebProcess,macOS 上是 WKWebView),这个进程的内存由引擎和你加载的页面决定,不由 Pake 控制。像 Gemini、Slack、ChatGPT 这类重型 SPA,用 GNOME Web 等任意 WebKitGTK 浏览器打开也会占用差不多的内存。Pake 在 WebView 之上几乎不增加额外开销,所以没有能显著降低它的 Pake 侧设置。这是使用系统 WebView 的固有代价,也是换取极小安装体积的取舍。## 安装问题### 全局安装时权限被拒绝-**问题描述:**`npm install -g pake-cli` 失败,提示权限错误。-**解决方案:**-使用以下方法之一:```bash@@ -585,8 +497,6 @@ npm install -g pake-clipnpm install -g pake-cli```-----## 获取帮助如果遇到的问题未在此处列出:@@ -594,7 +504,7 @@ pnpm install -g pake-cli1. 查看 [CLI 使用指南](cli-usage_CN.md) 了解详细参数说明2. 参阅 [高级用法](advanced-usage_CN.md) 了解系统依赖与前置设置3. 搜索 [现有的 GitHub issues](https://github.com/tw93/Pake/issues)-4. [提交新 issue](https://github.com/tw93/Pake/issues/new) 时请附带:+4. [提交新 issue](https://github.com/tw93/Pake/issues/new) 时附带:- 操作系统与系统版本- Node.js 与 Rust 版本(`node --version`、`rustc --version`)- 完整的错误日志diff --git a/docs/github-actions-usage.md b/docs/github-actions-usage.mdindex 631c5a20..449aa4be 100644--- a/docs/github-actions-usage.md+++ b/docs/github-actions-usage.md@@ -10,37 +10,19 @@ Build Pake apps online without installing development tools locally.## Quick Steps-### 1. Fork Repository--[Fork this project](https://github.com/tw93/Pake/fork)--### 2. Run Workflow--1. Go to Actions tab in your forked repository-2. Select `Build App With Pake CLI`-3. Fill in the form (same parameters as [CLI options](cli-usage.md))-4. Click `Run Workflow`+1. [Fork this project](https://github.com/tw93/Pake/fork)+2. In your fork, open the Actions tab, select `Build App With Pake CLI`, fill in the form (same parameters as [CLI options](cli-usage.md)), and click `Run Workflow`-### 3. Download App--- Green checkmark = build success-- Click the workflow name to view details-- Find `Artifacts` section and download your app-- +3. A green checkmark means the build succeeded, click the workflow name and download your app from the `Artifacts` section-### 4. Build Times+ -- **First run**: ~10-15 minutes (sets up cache)-- **Subsequent runs**: ~5 minutes (uses cache)-- Cache size: 400-600MB when complete+The first run builds the dependency cache and takes about 10-15 minutes, later runs use the cache and take about 5 minutes, and the complete cache is 400-600MB.## Tips-- Initial runs take longer while the dependency cache is built-- Stable network connection recommended- Enable `Allow sites to open new windows` when the site launches sign-in, exam, or other flows in a separate window- If a build fails, clear the Actions cache and retrydiff --git a/docs/github-actions-usage_CN.md b/docs/github-actions-usage_CN.mdindex 2899dfb2..879a39b2 100644--- a/docs/github-actions-usage_CN.md+++ b/docs/github-actions-usage_CN.md@@ -10,37 +10,19 @@## 快速步骤-### 1. Fork 仓库--[Fork 此项目](https://github.com/tw93/Pake/fork)--### 2. 运行工作流--1. 前往你 Fork 的仓库的 Actions 页面-2. 选择 `Build App With Pake CLI`-3. 填写表单(参数与 [CLI 选项](cli-usage_CN.md) 相同)-4. 点击 `Run Workflow`+1. [Fork 此项目](https://github.com/tw93/Pake/fork)+2. 在你 Fork 的仓库里打开 Actions 页面,选择 `Build App With Pake CLI`,按 [CLI 选项](cli-usage_CN.md) 填写表单后点击 `Run Workflow`-### 3. 下载应用--- 绿色勾号 = 构建成功-- 点击工作流名称查看详情-- 在 `Artifacts` 部分下载应用-- +3. 出现绿色勾号就是构建成功,点击工作流名称进入详情,在 `Artifacts` 部分下载应用-### 4. 构建时间+ -- **首次运行**:约 10-15 分钟(建立缓存)-- **后续运行**:约 5 分钟(使用缓存)-- 缓存大小:完成时为 400-600MB+首次运行要建立依赖缓存,大约 10-15 分钟,之后用上缓存大约 5 分钟,缓存完整时为 400-600MB。## 提示-- 首次运行要建立依赖缓存,会慢一些-- 建议保持网络稳定- 当网站通过新窗口打开登录、考试或其他流程时,启用 `Allow sites to open new windows`- 如果构建失败,清理 Actions 缓存后重试diff --git a/docs/pake-action.md b/docs/pake-action.mdindex 7e30b175..a0eb690d 100644--- a/docs/pake-action.md+++ b/docs/pake-action.md@@ -6,15 +6,13 @@</div>-Transform any webpage into a lightweight desktop app with a single GitHub Actions step.--> This guide shows how to use Pake as a GitHub Action in your own projects. For using our project's built-in GitHub Actions workflow, see [GitHub Actions Usage](github-actions-usage.md).+Call Pake from your own GitHub Actions workflow to turn any webpage into a lightweight desktop app in a single step. To build online without writing a workflow, see [GitHub Actions Usage](github-actions-usage.md).## Quick Start```yaml- name: Build Pake App- uses: tw93/Pake@v3+ uses: tw93/[email protected]with:url: "https://example.com"name: "MyApp"@@ -51,7 +49,7 @@ jobs:runs-on: ubuntu-lateststeps:- uses: actions/checkout@v4- - uses: tw93/Pake@v3+ - uses: tw93/[email protected]with:url: "https://weekly.tw93.fun"name: "WeeklyApp"@@ -60,7 +58,7 @@ jobs:### With Custom Icon```yaml-- uses: tw93/Pake@v3+- uses: tw93/[email protected]with:url: "https://example.com"name: "MyApp"@@ -80,7 +78,7 @@ jobs:runs-on: ${{ matrix.os }}steps:- uses: actions/checkout@v4- - uses: tw93/Pake@v3+ - uses: tw93/[email protected]with:url: "https://example.com"name: "CrossPlatformApp"@@ -94,11 +92,11 @@ jobs:## Supported Platforms-- **Linux**: `.deb` packages (Ubuntu runners)-- **macOS**: `.app` and `.dmg` packages (macOS runners)-- **Windows**: `.exe` and `.msi` packages (Windows runners)+- **Linux**: `.deb` package (Ubuntu runners)+- **macOS**: `.app` bundle (macOS runners)+- **Windows**: `.msi` or `.exe` (Windows runners)-Use GitHub's matrix strategy to build for multiple platforms simultaneously.+Each run moves only the first package it finds into the output directory and reports it as `package-path`. Use GitHub's matrix strategy to build for multiple platforms simultaneously.## Related Documentationdiff --git a/docs/pake-action_CN.md b/docs/pake-action_CN.mdindex b7a095ea..18567b95 100644--- a/docs/pake-action_CN.md+++ b/docs/pake-action_CN.md@@ -6,15 +6,13 @@</div>-在 GitHub Actions 工作流中一键将任何网页打包为轻量桌面应用。--> 本文档介绍如何在自己的项目中将 Pake 作为 GitHub Action 调用。若需使用 Pake 仓库自带的 Actions 工作流在线打包,请参阅 [GitHub Actions 在线构建指南](github-actions-usage_CN.md)。+在自己项目的 GitHub Actions 工作流里调用 Pake,一步把任何网页打包为轻量桌面应用,只想在线打包、不写工作流的话,看 [GitHub Actions 在线构建指南](github-actions-usage_CN.md)。## 快速开始```yaml- name: Build Pake App- uses: tw93/Pake@v3+ uses: tw93/[email protected]with:url: "https://example.com"name: "MyApp"@@ -51,7 +49,7 @@ jobs:runs-on: ubuntu-lateststeps:- uses: actions/checkout@v4- - uses: tw93/Pake@v3+ - uses: tw93/[email protected]with:url: "https://weekly.tw93.fun"name: "WeeklyApp"@@ -60,7 +58,7 @@ jobs:### 指定自定义图标和窗口尺寸```yaml-- uses: tw93/Pake@v3+- uses: tw93/[email protected]with:url: "https://example.com"name: "MyApp"@@ -80,7 +78,7 @@ jobs:runs-on: ${{ matrix.os }}steps:- uses: actions/checkout@v4- - uses: tw93/Pake@v3+ - uses: tw93/[email protected]with:url: "https://example.com"name: "CrossPlatformApp"@@ -95,10 +93,10 @@ jobs:## 支持平台- **Linux**:`.deb` 安装包(Ubuntu 运行器)-- **macOS**:`.app` 与 `.dmg` 安装包(macOS 运行器)-- **Windows**:`.exe` 与 `.msi` 安装包(Windows 运行器)+- **macOS**:`.app` 应用(macOS 运行器)+- **Windows**:`.msi` 或 `.exe`(Windows 运行器)-可结合 GitHub Actions 的 `matrix` 策略并发构建全平台安装包。+每次运行只把找到的第一个安装包移到输出目录并写入 `package-path`,可结合 GitHub Actions 的 `matrix` 策略并发构建全平台安装包。## 相关文档