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: fix the sign-in popup note, the inject example and the gallery platforms

Tw937c08474ff3a1
diff --git a/docs/cli-usage.md b/docs/cli-usage.md
index d655048d..77187457 100644
--- a/docs/cli-usage.md
+++ b/docs/cli-usage.md
@@ -572,7 +572,7 @@ This is different from `--multi-instance`:
When enabled, relaunching an already running app opens a new window instead of only focusing the existing one.
-On macOS, additional windows opened with Cmd+N join the app's native tab group. `window.open` popups stay outside it. On macOS and Linux, sign-in popups other than Sign in with Apple open in the current window.
+On macOS, additional windows opened with Cmd+N join the app's native tab group. `window.open` popups stay outside it. On macOS and Windows, a sign-in popup with a size of its own, such as the Google button on TikTok, Notion and X or Sign in with Apple, opens as a separate window and closes once it has answered. A sign-in opened as a link, or as a `window.open` with no size, continues in the current window on macOS and Linux, and so does every sign-in popup on Linux.
This can improve popup-based authentication flows, but it cannot bypass provider policy. Some providers, especially Google, may still reject sign-in inside embedded webviews.
@@ -606,7 +606,7 @@ pake ./my-app/index.html --name "my-app" --use-local-file
#### [inject]
-Using `inject`, you can inject local absolute and relative path `css` and `js` files into the page you specify the `url` to customize it. For example, an adblock script that can be applied to any web page, or a `css` that optimizes the `UI` of a page, you can write it once to customize it. would only need to write the `app` once to generalize it to any other page.
+Using `inject`, you can inject local absolute and relative path `css` and `js` files into the page you specify the `url` to customize it. For example, an adblock script that works on any page, or `css` that tidies a page's UI: write it once and reuse it in every app you package.
Supports both comma-separated and multiple option formats:
diff --git a/docs/cli-usage_CN.md b/docs/cli-usage_CN.md
index a15c8422..820e7a85 100644
--- a/docs/cli-usage_CN.md
+++ b/docs/cli-usage_CN.md
@@ -566,7 +566,7 @@ pake https://chat.example.com --name ChatApp --multi-instance
启用后,如果应用已在运行,再次启动会新开一个窗口,而不是仅聚焦已有窗口。
-在 macOS 上,通过 Cmd+N 打开的附加窗口会自动加入应用的原生标签页组,`window.open` 弹窗不进这个标签页组。在 macOS 和 Linux 上,除 Sign in with Apple 之外的登录弹窗会在当前窗口打开。
+在 macOS 上,通过 Cmd+N 打开的附加窗口会自动加入应用的原生标签页组,`window.open` 弹窗不进这个标签页组。在 macOS 和 Windows 上,自带尺寸的登录弹窗,比如 TikTok、Notion 和 X 上的 Google 登录按钮或 Sign in with Apple,会单独开一个窗口,登录完自己关掉,以链接方式打开的登录或者没带尺寸的 `window.open`,在 macOS 和 Linux 上还是在当前窗口里进行,Linux 上所有登录弹窗都这样。
此选项可优化弹窗授权体验,但无法绕过提供方自身的策略限制(部分提供方如 Google 仍可能拒绝在嵌入式 WebView 中登录)。
diff --git a/docs/contributing.md b/docs/contributing.md
index 488dc172..a8cf5934 100644
--- a/docs/contributing.md
+++ b/docs/contributing.md
@@ -22,7 +22,7 @@ pnpm test
## Proposing a site for the gallery
-The Pake apps for Mac and Windows show a gallery of sites that work well as desktop apps. Each one is a small recipe in [`gallery/apps`](https://github.com/tw93/Pake/tree/main/gallery/apps), and anyone can propose one:
+The Pake apps for Mac, Windows and Linux show a gallery of sites that work well as desktop apps. Each one is a small recipe in [`gallery/apps`](https://github.com/tw93/Pake/tree/main/gallery/apps), and anyone can propose one:
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 you are still signed in after a restart.
2. Add `gallery/apps/<id>.json`. Leave the window options out unless one fixed a problem you saw, and keep injected CSS or JavaScript to the smallest change that fixes it.
diff --git a/docs/contributing_CN.md b/docs/contributing_CN.md
index b9b89c7e..28dc5758 100644
--- a/docs/contributing_CN.md
+++ b/docs/contributing_CN.md
@@ -22,7 +22,7 @@ pnpm test
## 推荐网站进精选
-Mac 和 Windows 版 Pake 里有一个精选,放的是适合做成桌面应用的网站。每个网站对应 [`gallery/apps`](https://github.com/tw93/Pake/tree/main/gallery/apps) 里一份很小的配方,谁都可以推荐:
+Mac、Windows 和 Linux 版 Pake 里有一个精选,放的是适合做成桌面应用的网站。每个网站对应 [`gallery/apps`](https://github.com/tw93/Pake/tree/main/gallery/apps) 里一份很小的配方,谁都可以推荐:
1. 先用 Pake CLI 把网站打包出来用几天,登录一下,点开几个链接,下载一个文件,重启后看看是否还保持登录。
2. 新增 `gallery/apps/<id>.json`,窗口参数只在确实解决了问题时才加,注入的 CSS 或 JavaScript 也只做最小的改动。