Skip to content

armgit / Pake

Public Imported from GitHub
0

Turn any website into a lightweight desktop app with one command, on macOS, Windows and Linux.

docs: sync cli, gallery and faq docs with current behavior

youxi7983029430c2761
diff --git a/docs/advanced-usage.md b/docs/advanced-usage.md
index 95cb1cfc..3c0201c2 100644
--- a/docs/advanced-usage.md
+++ b/docs/advanced-usage.md
@@ -161,7 +161,8 @@ pake https://mail.google.com --name "Gmail Work" --identifier com.example.gmail.
│ │ └── lib.rs # Application entry point
│ ├── icons/ # macOS icons (.icns)
│ ├── png/ # Windows/Linux icons (.ico, .png)
-│ └── pake.json # Runtime configuration template
+│ ├── pake.json # Runtime configuration template
+│ └── tauri.*.conf.json # Platform-specific configs
├── scripts/ # Build and utility scripts
└── tests/ # Test suites
```
diff --git a/docs/advanced-usage_CN.md b/docs/advanced-usage_CN.md
index bdd58c1b..fe1c54d2 100644
--- a/docs/advanced-usage_CN.md
+++ b/docs/advanced-usage_CN.md
@@ -161,7 +161,8 @@ pake https://mail.google.com --name "Gmail Work" --identifier com.example.gmail.
│ │ └── lib.rs # 应用入口
│ ├── icons/ # macOS 图标 (.icns)
│ ├── png/ # Windows/Linux 图标 (.ico, .png)
-│ └── pake.json # 运行时配置模板
+│ ├── pake.json # 运行时配置模板
+│ └── tauri.*.conf.json # 平台特定配置
├── scripts/ # 实用构建脚本
└── tests/ # 测试套件
```
diff --git a/docs/cli-usage.md b/docs/cli-usage.md
index 09f7f3e4..09ad494a 100644
--- a/docs/cli-usage.md
+++ b/docs/cli-usage.md
@@ -112,6 +112,14 @@ Specify the application name. If not provided, you will be prompted to enter it.
--name "Google Translate"
```
+#### [identifier]
+
+Set the bundle identifier explicitly. By default Pake derives `com.pake.a<hash>` from the URL and `--name`, so two apps wrapping the same URL under different names install separately. The value must start with a letter, contain only letters, digits, hyphens and dots, and end with a letter or digit.
+
+```shell
+--identifier com.example.gmail.work
+```
+
#### [icon]
**Optional parameter**: If not provided, Pake will automatically fetch the website's icon and convert to the appropriate format. For custom icons, visit [icon-icons](https://icon-icons.com) or [macOSicons](https://macosicons.com/#/).
diff --git a/docs/cli-usage_CN.md b/docs/cli-usage_CN.md
index 2a077474..c82ce365 100644
--- a/docs/cli-usage_CN.md
+++ b/docs/cli-usage_CN.md
@@ -112,6 +112,14 @@ pake ./dist --name MyTool
--name "Google Translate"
```
+#### [identifier]
+
+手动指定 bundle identifier,不传时 Pake 会根据 URL 和 `--name` 生成 `com.pake.a<hash>`,所以同一个网址用不同名字打包会装成两个应用。取值必须以字母开头,只含字母、数字、连字符和点,并以字母或数字结尾。
+
+```shell
+--identifier com.example.gmail.work
+```
+
#### [icon]
**可选参数**:未指定时自动抓取网站 Favicon 并转换为目标平台格式,如需自定义图标,可访问 [icon-icons](https://icon-icons.com) 或 [macOSicons](https://macosicons.com/#/) 下载。
diff --git a/docs/faq.md b/docs/faq.md
index c28f185d..3fcf39d1 100644
--- a/docs/faq.md
+++ b/docs/faq.md
@@ -40,7 +40,7 @@ When building Pake or using the CLI, you encounter an error like:
error: failed to parse manifest
Caused by:
feature `edition2024` is required
- this Cargo does not support nightly features, but if you switch to nightly channel you can add `cargo-features = ["edition2024"]
+ this Cargo does not support nightly features, but if you switch to nightly channel you can add `cargo-features = ["edition2024"]`
to enable this feature
```
diff --git a/gallery/README.md b/gallery/README.md
index 55634a64..2ff5db55 100644
--- a/gallery/README.md
+++ b/gallery/README.md
@@ -35,7 +35,7 @@ Pake is not affiliated with any of these sites. Names, logos and icons belong to
## Proposing a site
1. Package the site with the Pake CLI and use it for a few days: sign in, open links, download a file, and check that it is still logged in after a restart.
-2. Add `apps/<id>.json`. Keep `window` empty unless an option fixed a problem you saw, and keep inject files to the smallest change that fixes it.
+2. Add `apps/<id>.json`. Leave `window` out unless an option fixed a problem you saw, and keep inject files to the smallest change that fixes it.
3. Run `npx vitest run tests/unit/gallery.test.ts`.
4. Open a pull request saying what you tested and on which platform.
diff --git a/gallery/schema.json b/gallery/schema.json
index 3673d6b3..a0f29829 100644
--- a/gallery/schema.json
+++ b/gallery/schema.json
@@ -2,7 +2,7 @@
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "https://raw.githubusercontent.com/tw93/Pake/main/gallery/schema.json",
"title": "Pake gallery recipe",
- "description": "One site in the Pake gallery. Bump version on any change to the recipe or its inject files.",
+ "description": "One site in the Pake gallery. Bump version only when url, window or the inject files change.",
"type": "object",
"additionalProperties": false,
"required": [