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: correct shortcut platforms and three option defaults
Tw936ee995cb3b9b
diff --git a/docs/cli-usage.md b/docs/cli-usage.mdindex 2e94632a..d6ed5474 100644--- a/docs/cli-usage.md+++ b/docs/cli-usage.md@@ -290,7 +290,7 @@ Set a regex pattern to determine which URLs should be considered internal (opene#### [safe-domain]-A simpler way to keep trusted domains and their subdomains inside the app. This is useful for workspace callbacks and enterprise SSO flows, for example Slack plus Okta. Pake compiles this list into `internal_url_regex`; if `--internal-url-regex` is also set, the explicit regex wins.+A simpler way to keep trusted domains and their subdomains inside the app. This is useful for workspace callbacks and enterprise SSO flows, for example Slack plus Okta. Pake compiles this list into `internal_url_regex`; if `--internal-url-regex` is also set, the explicit regex wins. The list replaces the default rule that keeps the app's own domain inside, so include that domain too: with only `okta.com`, links on the app's own site would open in the browser.`--safe-domain` matches URL hosts only, not arbitrary path or query text.@@ -392,7 +392,7 @@ The raw executable is copied to the current directory as `<name>-binary`. On pla#### [user-agent]-Customize the browser user agent. Default is empty.+Customize the browser user agent. When omitted, the app sends its platform default: a Safari string on macOS and Linux and a Chrome string on Windows.```shell--user-agent <string>@@ -710,7 +710,7 @@ Ignore TLS certificate validation errors when loading the target URL. Useful for#### [new-window]-Allow sites to open new windows, such as authentication popups, extra tabs, or branch views.+Allow sites to open new windows, such as authentication popups, extra tabs, or branch views. Without it, a link or `window.open` call that asks for a new window opens in the current window instead.This can help sites that rely on popup auth windows, but it does not guarantee in-app sign-in. Some providers, especially Google, may block authentication inside embedded webviews regardless of this option.diff --git a/docs/cli-usage_CN.md b/docs/cli-usage_CN.mdindex 7b3704fc..baef74c9 100644--- a/docs/cli-usage_CN.md+++ b/docs/cli-usage_CN.md@@ -290,7 +290,7 @@ pake https://github.com --name GitHub#### [safe-domain]-把指定域名及其子域名保留在应用内打开,便于处理企业 SSO 登录与授权跳转(如 Slack 搭配 Okta)。Pake 会把这个列表编译成 `internal_url_regex`;若同时传入 `--internal-url-regex`,则以显式正则为准。+把指定域名及其子域名保留在应用内打开,便于处理企业 SSO 登录与授权跳转(如 Slack 搭配 Okta)。Pake 会把这个列表编译成 `internal_url_regex`;若同时传入 `--internal-url-regex`,则以显式正则为准。这个列表会替换掉默认的同域规则,所以应用自己的域名也要写进去,只写 `okta.com` 的话,应用自己站点上的链接会跑到浏览器里打开。`--safe-domain` 仅匹配 URL Host,不会因路径或 Query 参数中包含域名而发生误判。@@ -392,7 +392,7 @@ pake https://github.com --name GitHub --no-bundle#### [user-agent]-自定义浏览器 User-Agent 请求头,默认为空。+自定义浏览器 User-Agent 请求头。不传时应用发送平台默认值,macOS 和 Linux 上是 Safari 字符串,Windows 上是 Chrome 字符串。```shell--user-agent <string>@@ -704,7 +704,7 @@ Linux 多 target 构建(如 `--targets deb,appimage`)时,若单个 target#### [new-window]-允许网页唤起新窗口(如 OAuth 登录弹窗、新标签页或会话窗口),有助于需要弹出授权窗口的站点,但能否在应用内完成登录仍取决于目标服务方的安全策略(部分服务商如 Google 可能会主动限制在嵌入式 WebView 中授权)。+允许网页唤起新窗口(如 OAuth 登录弹窗、新标签页或会话窗口),有助于需要弹出授权窗口的站点,但能否在应用内完成登录仍取决于目标服务方的安全策略(部分服务商如 Google 可能会主动限制在嵌入式 WebView 中授权)。不加时,要求新窗口的链接和 `window.open` 会在当前窗口里打开。```shell--new-windowdiff --git a/docs/shortcuts.md b/docs/shortcuts.mdindex e3de138b..ad136ebe 100644--- a/docs/shortcuts.md+++ b/docs/shortcuts.md@@ -15,14 +15,14 @@ Every app Pake builds has these shortcuts, on top of the ones the website itself| `⌘ ↑` | `Ctrl ↑` | Scroll to the top of the page || `⌘ ↓` | `Ctrl ↓` | Scroll to the bottom of the page || `⌘ R` | `Ctrl R` | Reload the page |-| `⌘ W` | `Ctrl W` | Hide the window without quitting |+| `⌘ W` | Mac only | Hide the window without quitting || `⌘ -` | `Ctrl -` | Zoom out || `⌘ =` | `Ctrl =` | Zoom in || `⌘ 0` | `Ctrl 0` | Reset zoom |-| `⌘ L` | `Ctrl L` | Copy the current page URL |-| `⌘ ⇧ ⌥ V` | `Ctrl Shift V` | Paste and match style |-| `⌘ ⇧ H` | `Ctrl Shift H` | Go to the home page |-| `⌘ ⇧ ⌫` | `Ctrl Shift Del` | Clear the cache and restart |+| `⌘ L` | Mac only | Copy the current page URL |+| `⌘ ⇧ ⌥ V` | Mac only | Paste and match style |+| `⌘ ⇧ H` | Mac only | Go to the home page |+| `⌘ ⇧ ⌫` | Mac only | Clear the cache and restart || `⌃ ⌘ F` | `F11` | Toggle fullscreen || `⌘ ⌥ I` | `Ctrl Shift I` | Toggle developer tools (debug only) |diff --git a/docs/shortcuts_CN.md b/docs/shortcuts_CN.mdindex a453d6b2..f754ba59 100644--- a/docs/shortcuts_CN.md+++ b/docs/shortcuts_CN.md@@ -15,14 +15,14 @@ Pake 打包出来的每个应用都带下面这些快捷键,网站自己定义| `⌘ ↑` | `Ctrl ↑` | 滚动到页面顶部 || `⌘ ↓` | `Ctrl ↓` | 滚动到页面底部 || `⌘ R` | `Ctrl R` | 刷新页面 |-| `⌘ W` | `Ctrl W` | 隐藏窗口,不退出应用 |+| `⌘ W` | 仅 Mac | 隐藏窗口,不退出应用 || `⌘ -` | `Ctrl -` | 缩小页面 || `⌘ =` | `Ctrl =` | 放大页面 || `⌘ 0` | `Ctrl 0` | 重置缩放 |-| `⌘ L` | `Ctrl L` | 复制当前页面网址 |-| `⌘ ⇧ ⌥ V` | `Ctrl Shift V` | 粘贴并匹配样式 |-| `⌘ ⇧ H` | `Ctrl Shift H` | 回到首页 |-| `⌘ ⇧ ⌫` | `Ctrl Shift Del` | 清除缓存并重启 |+| `⌘ L` | 仅 Mac | 复制当前页面网址 |+| `⌘ ⇧ ⌥ V` | 仅 Mac | 粘贴并匹配样式 |+| `⌘ ⇧ H` | 仅 Mac | 回到首页 |+| `⌘ ⇧ ⌫` | 仅 Mac | 清除缓存并重启 || `⌃ ⌘ F` | `F11` | 切换全屏 || `⌘ ⌥ I` | `Ctrl Shift I` | 开关开发者工具(仅调试版) |