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: drop step numbers from the getting started headings
tw93acf4f934773f
diff --git a/docs/getting-started.md b/docs/getting-started.mdindex 1c7c6ce0..ae90d487 100644--- a/docs/getting-started.md+++ b/docs/getting-started.md@@ -8,7 +8,7 @@This tutorial takes you from an empty terminal to a desktop app you can open from the Dock or Start menu, then covers the options most people change next. If you would rather not install anything, download a [ready-made app](https://github.com/tw93/Pake/releases/latest) or use the [GitHub Actions online build](github-actions-usage.md) instead.-## 1. Prepare your machine+## Prepare your machinePake needs Node.js 20.9 or later and Rust 1.85 or later. Check what you already have:@@ -23,7 +23,7 @@ If Rust is missing, Pake asks whether to install it on the first build, so you c- **Windows**: Visual Studio Build Tools with the C++ workload. Follow the [Tauri prerequisites](https://v2.tauri.app/start/prerequisites/) if you have not set them up before.- **Linux**: the WebKitGTK development packages listed in [Advanced Usage](advanced-usage.md#prerequisites).-## 2. Install the CLI+## Install the CLI```bashpnpm install -g pake-cli@@ -31,7 +31,7 @@ pnpm install -g pake-cli`npm install -g pake-cli` works too. If a global install fails with a permission error, run it without installing through `npx pake-cli`, or see the [FAQ](faq.md#permission-denied-when-installing-globally).-## 3. Package your first app+## Package your first appPass a URL and a name:@@ -43,7 +43,7 @@ Pake fetches the site icon, sets up the Rust toolchain if this is the first builOpen the installer as you would any other app. On macOS you can skip the DMG and install straight into `/Applications` with `--install`.-## 4. Adjust the window+## Adjust the windowMost apps need only a few more options:@@ -58,7 +58,7 @@ pake https://excalidraw.com --name Excalidraw --width 1400 --height 900 --hide-tEvery option, with examples, is in the [CLI reference](cli-usage.md).-## 5. Keep logins and links working+## Keep logins and links workingSites that sign you in through another domain, or open links in new windows, may need one more flag:@@ -68,7 +68,7 @@ Sites that sign you in through another domain, or open links in new windows, mayGoogle and a few other providers block sign-in inside embedded WebViews whatever flags you use. The [FAQ](faq.md#website-features-not-working-login-upload-etc) explains what still works.-## 6. Package a local web build+## Package a local web buildPake also packages your own front-end output, so a static site or a tool you built can ship as a desktop app:@@ -78,7 +78,7 @@ pake ./dist --name MyToolThe folder needs an `index.html` at its root. Hash-based routing works; history-mode routing does not.-## 7. Automate it+## Automate itFor scripts and AI agents, add `--json` so stdout carries a single JSON result with stable exit codes, and describe the app in a file with `--config app.json` instead of a long command. The [config](cli-usage.md#config) and [JSON output](cli-usage.md#json) sections cover both, and [llms.txt](../llms.txt) is the contract agents read first.diff --git a/docs/getting-started_CN.md b/docs/getting-started_CN.mdindex 9d39aa56..1b8b56c4 100644--- a/docs/getting-started_CN.md+++ b/docs/getting-started_CN.md@@ -8,7 +8,7 @@这篇教程从一个空的终端开始,一步步做出一个能从程序坞或开始菜单打开的桌面应用,再讲大多数人接下来会调的几个参数。不想在本机装任何东西的话,可以直接下载[现成应用](https://github.com/tw93/Pake/releases/latest),或者用 [GitHub Actions 在线打包](github-actions-usage_CN.md)。-## 1. 准备环境+## 准备环境Pake 需要 Node.js 20.9 以上和 Rust 1.85 以上,先看看本机已经有哪些:@@ -23,7 +23,7 @@ rustc --version- **Windows**:带 C++ 工作负载的 Visual Studio Build Tools,之前没配过的话照着 [Tauri 前置条件](https://v2.tauri.app/start/prerequisites/)装一遍。- **Linux**:[进阶用法](advanced-usage_CN.md#前置条件)里列出的 WebKitGTK 开发包。-## 2. 安装命令行工具+## 安装命令行工具```bashpnpm install -g pake-cli@@ -31,7 +31,7 @@ pnpm install -g pake-cli用 `npm install -g pake-cli` 也行。全局安装报权限错误的话,可以不安装直接用 `npx pake-cli`,或者看 [FAQ](faq_CN.md#全局安装时权限被拒绝) 里的办法。-## 3. 打包第一个应用+## 打包第一个应用给一个网址和一个名字:@@ -43,7 +43,7 @@ Pake 会自动取网站图标,第一次打包时顺带装好 Rust 工具链,安装包像普通应用一样打开就行,macOS 上加 `--install` 可以跳过 DMG,直接装进 `/Applications`。-## 4. 调整窗口+## 调整窗口大多数应用只需要再加几个参数:@@ -58,7 +58,7 @@ pake https://excalidraw.com --name Excalidraw --width 1400 --height 900 --hide-t全部参数和示例都在[命令行参数说明](cli-usage_CN.md)里。-## 5. 让登录和链接正常工作+## 让登录和链接正常工作需要跳到别的域名登录,或者会在新窗口打开链接的网站,可能还要再加一个参数:@@ -68,7 +68,7 @@ pake https://excalidraw.com --name Excalidraw --width 1400 --height 900 --hide-tGoogle 等少数登录方不管加什么参数,都会拦截内嵌 WebView 里的登录,[FAQ](faq_CN.md#网站功能不工作登录上传等) 里写了还有哪些办法。-## 6. 打包本地的前端项目+## 打包本地的前端项目Pake 也能打包你自己的前端构建产物,做好的静态站点或小工具可以直接变成桌面应用:@@ -78,7 +78,7 @@ pake ./dist --name MyTool文件夹根目录要有 `index.html`,路由只支持 hash 模式,不支持 history 模式。-## 7. 交给脚本和 Agent+## 交给脚本和 Agent给脚本或 AI Agent 用的时候,加上 `--json`,标准输出只会有一个 JSON 结果,退出码也是固定的,参数多的话可以用 `--config app.json` 写成配置文件,不用拼一长串命令。[config](cli-usage_CN.md#config) 和 [json](cli-usage_CN.md#json) 两节讲了具体用法,Agent 应该先读 [llms.txt](../llms.txt)。