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
ci: expose new-window in public builds
Tw936d25f8be4a61
diff --git a/.github/workflows/pake-cli.yaml b/.github/workflows/pake-cli.yamlindex 41bd9981..98bc7a2e 100644--- a/.github/workflows/pake-cli.yaml+++ b/.github/workflows/pake-cli.yaml@@ -53,6 +53,11 @@ on:required: falsetype: booleandefault: false+ new_window:+ description: "Allow sites to open new windows"+ required: false+ type: boolean+ default: falsemulti_arch:description: "Universal binary (macOS only)"required: false@@ -142,6 +147,10 @@ jobs:ARGS+=("--hide-title-bar")fi+ if [ "${{ inputs.new_window }}" == "true" ]; then+ ARGS+=("--new-window")+ fi+if [ "${{ inputs.multi_arch }}" == "true" ]; thenARGS+=("--multi-arch")fi@@ -192,6 +201,10 @@ jobs:$args += "--hide-title-bar"}+ if ("${{ inputs.new_window }}" -eq "true") {+ $args += "--new-window"+ }+Write-Host "Running: node dist/cli.js $($args -join ' ')"node dist/cli.js $argsdiff --git a/docs/github-actions-usage.md b/docs/github-actions-usage.mdindex 3fdd6765..4a51a993 100644--- a/docs/github-actions-usage.md+++ b/docs/github-actions-usage.md@@ -37,6 +37,8 @@ Build Pake apps online without installing development tools locally.- Be patient on first run - let cache build completely- Stable network connection recommended+- Enable `Allow sites to open new windows` when the site launches sign-in,+ exam, or other flows in a separate window- If build fails, delete cache and retry## Linksdiff --git a/docs/github-actions-usage_CN.md b/docs/github-actions-usage_CN.mdindex a8d0a31d..3e0ff8fb 100644--- a/docs/github-actions-usage_CN.md+++ b/docs/github-actions-usage_CN.md@@ -37,6 +37,7 @@- 首次运行需要耐心等待,让缓存完全建立- 建议网络连接稳定+- 当网站通过新窗口打开登录、考试或其他流程时,启用 `Allow sites to open new windows`- 如果构建失败,删除缓存后重试## 链接diff --git a/tests/integration/workflow-paths.test.js b/tests/integration/workflow-paths.test.jsindex cc209dfb..c4f906b9 100644--- a/tests/integration/workflow-paths.test.js+++ b/tests/integration/workflow-paths.test.js@@ -135,6 +135,17 @@ describe("Workflow path integration", () => {expect(workflow).toContain("Upload ZST (Linux)");expect(workflow).toContain("path: ${{ inputs.name }}-*.pkg.tar.zst");});++ it("should forward the new-window input on every platform", () => {+ const workflow = fs.readFileSync(+ ".github/workflows/pake-cli.yaml",+ "utf8",+ );++ expect(workflow).toContain("new_window:");+ expect(workflow).toContain('ARGS+=("--new-window")');+ expect(workflow).toContain('$args += "--new-window"');+ });});describe("Architecture-specific paths", () => {