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: streamline non-readme docs, align Node.js engines, and cut filler copy
youxi798b2aff8b033b2
diff --git a/docs/README.md b/docs/README.mdindex 5f65a93e..9d7d7af5 100644--- a/docs/README.md+++ b/docs/README.md@@ -2,20 +2,20 @@<h4 align="right"><strong>English</strong> · <a href="README_CN.md">中文</a></h4>-Welcome to Pake documentation! Here you'll find comprehensive guides and documentation to help you start working with Pake as quickly as possible.+Guides and reference documentation for building lightweight desktop apps with Pake.## User Guides-- **[CLI Command Reference](cli-usage.md)** - Complete command-line parameters and basic usage-- **[GitHub Actions Online Build](github-actions-usage.md)** - Online build without local environment setup-- **[Pake Action Integration](pake-action.md)** - Use Pake as a GitHub Action in your projects+- **[CLI Command Reference](cli-usage.md)**: Full command-line options and examples+- **[GitHub Actions Online Build](github-actions-usage.md)**: Build apps online without a local toolchain+- **[Pake Action Integration](pake-action.md)**: Use Pake as a GitHub Action in CI workflows## Developer Guides-- **[Advanced Usage & Development](advanced-usage.md)** - Code customization, project structure, development environment setup and testing guides-- **[Contributing Guide](../CONTRIBUTING.md)** - How to contribute to Pake development+- **[Advanced Usage & Development](advanced-usage.md)**: Code customization, project structure, build environments, and testing+- **[Contributing Guide](../CONTRIBUTING.md)**: How to develop and contribute to Pake-## Quick Links+## Resources- [Main Repository](https://github.com/tw93/Pake)- [Releases](https://github.com/tw93/Pake/releases)diff --git a/docs/README_CN.md b/docs/README_CN.mdindex fe265ed5..d48845b4 100644--- a/docs/README_CN.md+++ b/docs/README_CN.md@@ -2,20 +2,20 @@<h4 align="right"><a href="README.md">English</a> · <strong>中文</strong></h4>-欢迎使用 Pake 文档!在这里您可以找到全面的指南和文档,帮助您快速开始使用 Pake。+Pake 应用打包与开发的参考指南。## 使用指南-- **[CLI命令参考](cli-usage_CN.md)** - 完整的命令行参数说明和基础用法-- **[GitHub Actions在线构建](github-actions-usage_CN.md)** - 无需本地环境的在线构建方式-- **[Pake Action集成](pake-action.md)** - 在你的项目中使用 Pake 作为 GitHub Action+- **[CLI 命令参考](cli-usage_CN.md)**:完整命令行参数说明与基础用法+- **[GitHub Actions 在线构建](github-actions-usage_CN.md)**:无需本地环境的在线构建方式+- **[Pake Action 集成](pake-action.md)**:在 CI 工作流中使用 Pake 进行自动化打包## 开发指南-- **[高级用法与开发](advanced-usage_CN.md)** - 代码自定义、项目结构、开发环境配置和测试指南-- **[贡献指南](../CONTRIBUTING.md)** - 如何为 Pake 开发做贡献+- **[高级用法与开发](advanced-usage_CN.md)**:代码自定义、项目结构、开发环境配置与测试指南+- **[贡献指南](../CONTRIBUTING.md)**:如何参与 Pake 开发-## 快捷链接+## 相关资源- [主仓库](https://github.com/tw93/Pake)- [发布页面](https://github.com/tw93/Pake/releases)diff --git a/docs/advanced-usage.md b/docs/advanced-usage.mdindex 56dd2b7a..5ba60800 100644--- a/docs/advanced-usage.md+++ b/docs/advanced-usage.md@@ -170,39 +170,30 @@ pake https://mail.google.com --name "Gmail Work" --identifier com.example.gmail.## Project Structure-Understanding Pake's codebase structure will help you navigate and contribute effectively:-```tree├── bin/ # CLI source code (TypeScript)-│ ├── builders/ # Platform-specific builders-│ ├── helpers/ # Utility functions-│ └── options/ # CLI option processing+│ ├── builders/ # Platform-specific packaging builders+│ ├── helpers/ # Helper utilities and config merging+│ ├── options/ # CLI option processing+│ └── utils/ # Dependency detection, workspace, and environment├── docs/ # Project documentation-├── src-tauri/ # Tauri application core+├── src-tauri/ # Tauri application core (Rust)│ ├── src/-│ │ ├── app/ # Core modules (window, tray, shortcuts)-│ │ ├── inject/ # Web page injection logic+│ │ ├── app/ # Core modules (window, menu, shortcuts, etc.)+│ │ ├── inject/ # Injected scripts (CSS, JS, event listeners)│ │ └── lib.rs # Application entry point│ ├── icons/ # macOS icons (.icns)│ ├── png/ # Windows/Linux icons (.ico, .png)-│ ├── pake.json # App configuration-│ └── tauri.*.conf.json # Platform-specific configs+│ └── pake.json # Runtime configuration template├── scripts/ # Build and utility scripts└── tests/ # Test suites```-### Key Components--- **CLI Tool** (`bin/`): TypeScript-based command interface for packaging apps-- **Tauri App** (`src-tauri/`): Rust-based desktop framework-- **Injection System** (`src-tauri/src/inject/`): Custom CSS/JS injection for webpages-- **Configuration**: Multi-platform app settings and build configurations-## Development Workflow### Prerequisites-- Node.js ≥22.0.0 (recommended LTS, older versions ≥20.0.0 may work)+- Node.js ≥22.0.0 (recommended LTS, older versions ≥20.9.0 may work)- Rust ≥1.85.0 (recommended stable)#### Platform-Specific Requirementsdiff --git a/docs/advanced-usage_CN.md b/docs/advanced-usage_CN.mdindex ab447455..72ae630f 100644--- a/docs/advanced-usage_CN.md+++ b/docs/advanced-usage_CN.md@@ -170,39 +170,30 @@ pake https://mail.google.com --name "Gmail Work" --identifier com.example.gmail.## 项目结构-了解 Pake 的代码库结构将帮助您有效地进行导航和贡献:-```tree-├── bin/ # CLI 源代码 (TypeScript)-│ ├── builders/ # 平台特定的构建器-│ ├── helpers/ # 实用函数-│ └── options/ # CLI 选项处理+├── bin/ # CLI 源代码(TypeScript)+│ ├── builders/ # 平台打包构建器+│ ├── helpers/ # 辅助工具与配置合并+│ ├── options/ # CLI 选项解析+│ └── utils/ # 依赖检测、目录与执行环境处理├── docs/ # 项目文档-├── src-tauri/ # Tauri 应用核心+├── src-tauri/ # Tauri 应用核心(Rust)│ ├── src/-│ │ ├── app/ # 核心模块(窗口、托盘、快捷键)-│ │ ├── inject/ # 网页注入逻辑-│ │ └── lib.rs # 应用程序入口点+│ │ ├── app/ # 核心模块(窗口、菜单、快捷键等)+│ │ ├── inject/ # 网页注入脚本(CSS、JS、事件监听)+│ │ └── lib.rs # 应用入口│ ├── icons/ # macOS 图标 (.icns)│ ├── png/ # Windows/Linux 图标 (.ico, .png)-│ ├── pake.json # 应用配置-│ └── tauri.*.conf.json # 平台特定配置-├── scripts/ # 构建和实用脚本+│ └── pake.json # 运行时配置模板+├── scripts/ # 实用构建脚本└── tests/ # 测试套件```-### 关键组件--- **CLI 工具** (`bin/`): 基于 TypeScript 的命令接口,用于打包应用-- **Tauri 应用** (`src-tauri/`): 基于 Rust 的桌面框架-- **注入系统** (`src-tauri/src/inject/`): 用于网页的自定义 CSS/JS 注入-- **配置**: 多平台应用设置和构建配置-## 开发工作流### 前置条件-- Node.js ≥22.0.0 (推荐 LTS,较旧版本 ≥20.0.0 可能可用)+- Node.js ≥22.0.0 (推荐 LTS,较旧版本 ≥20.9.0 可能可用)- Rust ≥1.85.0 (推荐稳定版)#### 平台特定要求@@ -319,7 +310,7 @@ node ./tests/release.js- 先构建 CLI,- 再运行 Vitest 套件,- 如果没有传 `--no-build`,继续执行真实构建 smoke test,-- 然后在真实构建成功后继续执行发布流程 smoke test。+- 然后在真实构建成功后继续执行发布流程 smoke test常用可选参数:diff --git a/docs/cli-usage.md b/docs/cli-usage.mdindex e30991d5..8c467ab7 100644--- a/docs/cli-usage.md+++ b/docs/cli-usage.md@@ -6,7 +6,7 @@ Complete command-line reference and basic usage for Pake CLI.## Installation-Ensure that your Node.js version is 20.0.0 or higher.+Ensure that your Node.js version is 20.9.0 or higher.**Recommended (pnpm):**@@ -34,7 +34,7 @@ source ~/.bashrc**Prerequisites:**-- Node.js ≥20.0.0+- Node.js ≥20.9.0- Rust ≥1.85.0 (installed automatically if missing)- **macOS/Linux**: `curl`, `wget`, `file` and `tar` used for dependency management@@ -707,10 +707,6 @@ This can help sites that rely on popup auth windows, but it does not guarantee i--new-window```-### Packaging Complete--After completing the above steps, your application should be successfully packaged. Please note that the packaging process may take some time depending on your system configuration and network conditions. Be patient, and once the packaging is complete, you can find the application installer in the specified directory.-## Docker```shelldiff --git a/docs/cli-usage_CN.md b/docs/cli-usage_CN.mdindex c7fe8d5d..d87b4929 100644--- a/docs/cli-usage_CN.md+++ b/docs/cli-usage_CN.md@@ -6,7 +6,7 @@## 安装-确保 Node.js 版本 ≥20.0.0。+确保 Node.js 版本 ≥20.9.0。**推荐方式 (pnpm):**@@ -34,7 +34,7 @@ source ~/.bashrc**前置条件:**-- Node.js ≥20.0.0+- Node.js ≥20.9.0- Rust ≥1.85.0(如缺失将自动安装)- **macOS/Linux**:`curl`、`wget`、`file` 和 `tar`(用于依赖管理)diff --git a/docs/faq_CN.md b/docs/faq_CN.mdindex cffb6c84..29483acd 100644--- a/docs/faq_CN.md+++ b/docs/faq_CN.md@@ -155,7 +155,7 @@ cp: cannot stat '/usr/lib/gdk-pixbuf-2.0/2.10.0': No such file or directory**先判断你遇到的是哪一种失败。** 同样是 `failed to run linuxdeploy`,实际有两类不同原因:-- `strip: Unable to recognise the format of the input file`:strip 不兼容,按解决方案 1 处理。+- `strip: Unable to recognise the format of the input file`:strip 不兼容,按解决方案 1 处理- `Failed to run plugin: gtk` 且伴随 `cannot stat '/usr/lib/gdk-pixbuf-2.0/...'`:linuxdeploy 的 gtk 插件找不到 gdk-pixbuf loaders,`NO_STRIP` 无效。安装 loaders、刷新缓存后重新构建:```bashdiff --git a/docs/github-actions-usage.md b/docs/github-actions-usage.mdindex 5ba9bb0e..73eb9711 100644--- a/docs/github-actions-usage.md+++ b/docs/github-actions-usage.md@@ -35,13 +35,12 @@ Build Pake apps online without installing development tools locally.## Tips-- Be patient on first run - let cache build completely+- 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 build fails, delete cache and retry+- 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 due to interrupted cache, clear the Actions cache and retry-## Links+## Related Docs-- [CLI Documentation](cli-usage.md)+- [CLI Usage Guide](cli-usage.md)- [Advanced Usage](advanced-usage.md)diff --git a/docs/github-actions-usage_CN.md b/docs/github-actions-usage_CN.mdindex 47670fe9..2b582d88 100644--- a/docs/github-actions-usage_CN.md+++ b/docs/github-actions-usage_CN.md@@ -35,12 +35,12 @@## 提示-- 首次运行需要耐心等待,让缓存完全建立-- 建议网络连接稳定+- 首次运行需完整构建依赖缓存,耗时稍长属正常现象+- 建议保持网络稳定- 当网站通过新窗口打开登录、考试或其他流程时,启用 `Allow sites to open new windows`-- 如果构建失败,删除缓存后重试+- 若构建因依赖中断失败,可清理 Actions 缓存后重试-## 链接+## 相关文档-- [CLI 文档](cli-usage_CN.md)+- [CLI 使用指南](cli-usage_CN.md)- [高级用法](advanced-usage_CN.md)