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: list the actions form inputs and artifacts

youxi798e48e7ae0f11a
diff --git a/docs/README.md b/docs/README.md
index 117d2227..44b27f4c 100644
--- a/docs/README.md
+++ b/docs/README.md
@@ -1,4 +1,4 @@
-# Pake Documentation
+# Pake CLI Documentation
<div align="center">
diff --git a/docs/README_CN.md b/docs/README_CN.md
index ab5711bf..b4e83a5e 100644
--- a/docs/README_CN.md
+++ b/docs/README_CN.md
@@ -1,4 +1,4 @@
-# Pake 文档
+# Pake CLI 文档
<div align="center">
diff --git a/docs/github-actions-usage.md b/docs/github-actions-usage.md
index 449aa4be..f7b3b3b0 100644
--- a/docs/github-actions-usage.md
+++ b/docs/github-actions-usage.md
@@ -21,6 +21,29 @@ Build Pake apps online without installing development tools locally.
The first run builds the dependency cache and takes about 10-15 minutes, later runs use the cache and take about 5 minutes, and the complete cache is 400-600MB.
+## Form Inputs
+
+| Field | What it does | Default |
+| --------------------------------------------------------- | ---------------------------------------------------------------------- | -------------- |
+| `Platform` | Runner to build on: `windows-latest`, `macos-latest` or `ubuntu-24.04` | `macos-latest` |
+| `Website URL` | The site to package, required | none |
+| `App name (lowercase for Linux)` | App name and artifact prefix, required | none |
+| `Icon URL, auto-fetch if empty` | Icon for the app, fetched from the site when empty | empty |
+| `Window width (px)` | Initial window width | `1200` |
+| `Window height (px)` | Initial window height | `780` |
+| `Minimum window width (px)` | Smallest width the window can shrink to | empty |
+| `Minimum window height (px)` | Smallest height the window can shrink to | empty |
+| `App version` | Version written into the package | `1.0.0` |
+| `Start in fullscreen mode` | Open the app in fullscreen | off |
+| `Hide title bar (macOS only)` | Hide the window title bar | off |
+| `Allow sites to open new windows` | Let the site open pop-up windows | off |
+| `Universal binary (macOS only)` | Build one app for Intel and Apple Silicon | off |
+| `Package formats (comma-separated: deb,appimage,rpm,zst)` | Linux package formats, ignored on other platforms | `deb` |
+
+## Artifacts
+
+Each run uploads the package as an artifact named after the app: `<name>-macOS` holds the `.dmg`, `<name>-Windows` the `.msi`, and Linux gets one artifact per format, `<name>-Linux-deb`, `<name>-Linux-AppImage`, `<name>-Linux-rpm` and `<name>-Linux-zst`. Artifacts are kept for 3 days, so download them soon after the build. Instead of the `Artifacts` section, you can also fetch them with the GitHub CLI: `gh run download RUN_ID`.
+
## Tips
- Enable `Allow sites to open new windows` when the site launches sign-in, exam, or other flows in a separate window
diff --git a/docs/github-actions-usage_CN.md b/docs/github-actions-usage_CN.md
index 879a39b2..55f2a814 100644
--- a/docs/github-actions-usage_CN.md
+++ b/docs/github-actions-usage_CN.md
@@ -21,6 +21,29 @@
首次运行要建立依赖缓存,大约 10-15 分钟,之后用上缓存大约 5 分钟,缓存完整时为 400-600MB。
+## 表单字段
+
+| 字段 | 作用 | 默认值 |
+| --------------------------------------------------------- | ----------------------------------------------------------------- | -------------- |
+| `Platform` | 构建平台,可选 `windows-latest`、`macos-latest` 或 `ubuntu-24.04` | `macos-latest` |
+| `Website URL` | 要打包的网站,必填 | 无 |
+| `App name (lowercase for Linux)` | 应用名称,也是产物名的前缀,必填 | 无 |
+| `Icon URL, auto-fetch if empty` | 应用图标,留空时从网站自动获取 | 空 |
+| `Window width (px)` | 窗口初始宽度 | `1200` |
+| `Window height (px)` | 窗口初始高度 | `780` |
+| `Minimum window width (px)` | 窗口能缩到的最小宽度 | 空 |
+| `Minimum window height (px)` | 窗口能缩到的最小高度 | 空 |
+| `App version` | 写入安装包的版本号 | `1.0.0` |
+| `Start in fullscreen mode` | 以全屏模式启动 | 关 |
+| `Hide title bar (macOS only)` | 隐藏窗口标题栏 | 关 |
+| `Allow sites to open new windows` | 允许网站弹出新窗口 | 关 |
+| `Universal binary (macOS only)` | 打一个同时支持 Intel 和 Apple 芯片的应用 | 关 |
+| `Package formats (comma-separated: deb,appimage,rpm,zst)` | Linux 安装包格式,其他平台忽略 | `deb` |
+
+## 构建产物
+
+每次运行会把安装包按应用名上传为 Artifact,`<name>-macOS` 里是 `.dmg`,`<name>-Windows` 里是 `.msi`,Linux 每种格式各一个,分别是 `<name>-Linux-deb`、`<name>-Linux-AppImage`、`<name>-Linux-rpm` 和 `<name>-Linux-zst`。产物只保留 3 天,构建完尽快下载,除了在 `Artifacts` 部分下载,也可以用 GitHub CLI 执行 `gh run download RUN_ID` 拿到。
+
## 提示
- 当网站通过新窗口打开登录、考试或其他流程时,启用 `Allow sites to open new windows`