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: harden the public build workflows and pin their linux runner
youxi79875c506ea58b1
diff --git a/.github/workflows/pake-cli.yaml b/.github/workflows/pake-cli.yamlindex 0af40f90..4fa6f594 100644--- a/.github/workflows/pake-cli.yaml+++ b/.github/workflows/pake-cli.yaml@@ -83,11 +83,6 @@ jobs:- name: Checkout repositoryuses: actions/checkout@v6- - name: Install Rust- uses: dtolnay/rust-toolchain@stable- with:- toolchain: stable-- name: Setup Node.js Environmentuses: ./.github/actions/setup-envwith:@@ -100,112 +95,131 @@ jobs:if: runner.os == 'Linux'uses: rui314/setup-mold@v1- - name: Rust cache restore- uses: actions/cache/[email protected]- id: cache_store- with:- path: |- ~/.cargo/bin/- ~/.cargo/registry/index/- ~/.cargo/registry/cache/- ~/.cargo/git/db/- src-tauri/target/- key: ${{ runner.os }}-cargo-pake-${{ hashFiles('**/Cargo.lock') }}-- name: Build App (Linux/macOS)if: runner.os != 'Windows'timeout-minutes: 25shell: bash+ env:+ INPUT_URL: ${{ inputs.url }}+ INPUT_NAME: ${{ inputs.name }}+ INPUT_ICON: ${{ inputs.icon }}+ INPUT_WIDTH: ${{ inputs.width }}+ INPUT_HEIGHT: ${{ inputs.height }}+ INPUT_MIN_WIDTH: ${{ inputs.min_width }}+ INPUT_MIN_HEIGHT: ${{ inputs.min_height }}+ INPUT_APP_VERSION: ${{ inputs.app_version }}+ INPUT_FULLSCREEN: ${{ inputs.fullscreen }}+ INPUT_HIDE_TITLE_BAR: ${{ inputs.hide_title_bar }}+ INPUT_NEW_WINDOW: ${{ inputs.new_window }}+ INPUT_MULTI_ARCH: ${{ inputs.multi_arch }}+ INPUT_TARGETS: ${{ inputs.targets }}run: |- ARGS=("${{ inputs.url }}" "--name" "${{ inputs.name }}")+ ARGS=("$INPUT_URL" "--name" "$INPUT_NAME")- if [ -n "${{ inputs.icon }}" ]; then- ARGS+=("--icon" "${{ inputs.icon }}")+ if [ -n "$INPUT_ICON" ]; then+ ARGS+=("--icon" "$INPUT_ICON")fi- if [ -n "${{ inputs.width }}" ]; then- ARGS+=("--width" "${{ inputs.width }}")+ if [ -n "$INPUT_WIDTH" ]; then+ ARGS+=("--width" "$INPUT_WIDTH")fi- if [ -n "${{ inputs.height }}" ]; then- ARGS+=("--height" "${{ inputs.height }}")+ if [ -n "$INPUT_HEIGHT" ]; then+ ARGS+=("--height" "$INPUT_HEIGHT")fi- if [ -n "${{ inputs.min_width }}" ]; then- ARGS+=("--min-width" "${{ inputs.min_width }}")+ if [ -n "$INPUT_MIN_WIDTH" ]; then+ ARGS+=("--min-width" "$INPUT_MIN_WIDTH")fi- if [ -n "${{ inputs.min_height }}" ]; then- ARGS+=("--min-height" "${{ inputs.min_height }}")+ if [ -n "$INPUT_MIN_HEIGHT" ]; then+ ARGS+=("--min-height" "$INPUT_MIN_HEIGHT")fi- if [ -n "${{ inputs.app_version }}" ]; then- ARGS+=("--app-version" "${{ inputs.app_version }}")+ if [ -n "$INPUT_APP_VERSION" ]; then+ ARGS+=("--app-version" "$INPUT_APP_VERSION")fi- if [ "${{ inputs.fullscreen }}" == "true" ]; then+ if [ "$INPUT_FULLSCREEN" == "true" ]; thenARGS+=("--fullscreen")fi- if [ "${{ inputs.hide_title_bar }}" == "true" ]; then+ if [ "$INPUT_HIDE_TITLE_BAR" == "true" ]; thenARGS+=("--hide-title-bar")fi- if [ "${{ inputs.new_window }}" == "true" ]; then+ if [ "$INPUT_NEW_WINDOW" == "true" ]; thenARGS+=("--new-window")fi- if [ "${{ inputs.multi_arch }}" == "true" ]; then+ if [ "$INPUT_MULTI_ARCH" == "true" ]; thenARGS+=("--multi-arch")fi- if [ -n "${{ inputs.targets }}" ] && [ "${{ runner.os }}" == "Linux" ]; then- ARGS+=("--targets" "${{ inputs.targets }}")+ if [ -n "$INPUT_TARGETS" ] && [ "$RUNNER_OS" == "Linux" ]; then+ ARGS+=("--targets" "$INPUT_TARGETS")fi- echo "Running: node dist/cli.js ${ARGS[@]}"+ printf 'Running: node dist/cli.js'+ printf ' %q' "${ARGS[@]}"+ printf '\n'node dist/cli.js "${ARGS[@]}"- name: Build App (Windows)if: runner.os == 'Windows'timeout-minutes: 25shell: pwsh+ env:+ INPUT_URL: ${{ inputs.url }}+ INPUT_NAME: ${{ inputs.name }}+ INPUT_ICON: ${{ inputs.icon }}+ INPUT_WIDTH: ${{ inputs.width }}+ INPUT_HEIGHT: ${{ inputs.height }}+ INPUT_MIN_WIDTH: ${{ inputs.min_width }}+ INPUT_MIN_HEIGHT: ${{ inputs.min_height }}+ INPUT_APP_VERSION: ${{ inputs.app_version }}+ INPUT_FULLSCREEN: ${{ inputs.fullscreen }}+ INPUT_HIDE_TITLE_BAR: ${{ inputs.hide_title_bar }}+ INPUT_NEW_WINDOW: ${{ inputs.new_window }}+ INPUT_MULTI_ARCH: ${{ inputs.multi_arch }}+ INPUT_TARGETS: ${{ inputs.targets }}run: |- $args = "${{ inputs.url }}", "--name", "${{ inputs.name }}"+ $args = $env:INPUT_URL, "--name", $env:INPUT_NAME- if ("${{ inputs.icon }}" -ne "") {- $args += "--icon", "${{ inputs.icon }}"+ # Empty environment variables are unset on Windows, so test for null too.+ if (-not [string]::IsNullOrEmpty($env:INPUT_ICON)) {+ $args += "--icon", $env:INPUT_ICON}- if ("${{ inputs.width }}" -ne "") {- $args += "--width", "${{ inputs.width }}"+ if (-not [string]::IsNullOrEmpty($env:INPUT_WIDTH)) {+ $args += "--width", $env:INPUT_WIDTH}- if ("${{ inputs.height }}" -ne "") {- $args += "--height", "${{ inputs.height }}"+ if (-not [string]::IsNullOrEmpty($env:INPUT_HEIGHT)) {+ $args += "--height", $env:INPUT_HEIGHT}- if ("${{ inputs.min_width }}" -ne "") {- $args += "--min-width", "${{ inputs.min_width }}"+ if (-not [string]::IsNullOrEmpty($env:INPUT_MIN_WIDTH)) {+ $args += "--min-width", $env:INPUT_MIN_WIDTH}- if ("${{ inputs.min_height }}" -ne "") {- $args += "--min-height", "${{ inputs.min_height }}"+ if (-not [string]::IsNullOrEmpty($env:INPUT_MIN_HEIGHT)) {+ $args += "--min-height", $env:INPUT_MIN_HEIGHT}- if ("${{ inputs.app_version }}" -ne "") {- $args += "--app-version", "${{ inputs.app_version }}"+ if (-not [string]::IsNullOrEmpty($env:INPUT_APP_VERSION)) {+ $args += "--app-version", $env:INPUT_APP_VERSION}- if ("${{ inputs.fullscreen }}" -eq "true") {+ if ($env:INPUT_FULLSCREEN -eq "true") {$args += "--fullscreen"}- if ("${{ inputs.hide_title_bar }}" -eq "true") {+ if ($env:INPUT_HIDE_TITLE_BAR -eq "true") {$args += "--hide-title-bar"}- if ("${{ inputs.new_window }}" -eq "true") {+ if ($env:INPUT_NEW_WINDOW -eq "true") {$args += "--new-window"}@@ -222,12 +236,13 @@ jobs:path: ${{ inputs.name }}.dmgretention-days: 3+ # The CLI lowercases and hyphenates Linux names, so match packages by extension.- name: Upload DEB (Linux)if: runner.os == 'Linux'uses: actions/upload-artifact@v6with:name: ${{ inputs.name }}-Linux-deb- path: ${{ inputs.name }}.deb+ path: "*.deb"retention-days: 3if-no-files-found: ignore@@ -236,7 +251,7 @@ jobs:uses: actions/upload-artifact@v6with:name: ${{ inputs.name }}-Linux-AppImage- path: ${{ inputs.name }}.AppImage+ path: "*.AppImage"retention-days: 3if-no-files-found: ignore@@ -245,7 +260,7 @@ jobs:uses: actions/upload-artifact@v6with:name: ${{ inputs.name }}-Linux-rpm- path: ${{ inputs.name }}.rpm+ path: "*.rpm"retention-days: 3if-no-files-found: ignore@@ -254,7 +269,7 @@ jobs:uses: actions/upload-artifact@v6with:name: ${{ inputs.name }}-Linux-zst- path: ${{ inputs.name }}-*.pkg.tar.zst+ path: "*.pkg.tar.zst"retention-days: 3if-no-files-found: ignore@@ -265,15 +280,3 @@ jobs:name: ${{ inputs.name }}-Windowspath: ${{ inputs.name }}.msiretention-days: 3-- - name: Rust cache store- uses: actions/cache/[email protected]- if: steps.cache_store.outputs.cache-hit != 'true'- with:- path: |- ~/.cargo/bin/- ~/.cargo/registry/index/- ~/.cargo/registry/cache/- ~/.cargo/git/db/- src-tauri/target/- key: ${{ runner.os }}-cargo-pake-${{ hashFiles('**/Cargo.lock') }}diff --git a/.github/workflows/single-app.yaml b/.github/workflows/single-app.yamlindex b110c44c..d49634dc 100644--- a/.github/workflows/single-app.yaml+++ b/.github/workflows/single-app.yaml@@ -117,7 +117,7 @@ jobs:build: [linux, macos, windows]include:- build: linux- os: ubuntu-latest+ os: ubuntu-24.04rust: stable- build: windowsos: windows-latest@@ -146,7 +146,7 @@ jobs:run: pnpm run cli:build- name: Setup mold linker- if: matrix.os == 'ubuntu-latest'+ if: matrix.build == 'linux'uses: rui314/setup-mold@v1- name: Prepare macOS signing@@ -198,28 +198,37 @@ jobs:echo "Using signing identity: $SIGNING_IDENTITY"- name: Build for Linux- if: matrix.os == 'ubuntu-latest'+ if: matrix.build == 'linux'timeout-minutes: 20+ env:+ INPUT_URL: ${{ inputs.url }}+ INPUT_NAME: ${{ inputs.name }}+ INPUT_TITLE: ${{ inputs.title }}+ INPUT_ICON: ${{ inputs.icon }}+ INPUT_NEW_WINDOW: ${{ inputs.new_window }}+ INPUT_INCOGNITO: ${{ inputs.incognito }}+ INPUT_WIDTH: ${{ inputs.width }}+ INPUT_HEIGHT: ${{ inputs.height }}run: |- ARGS=("${{ inputs.url }}" "--name" "${{ inputs.name }}")+ ARGS=("${INPUT_URL}" "--name" "${INPUT_NAME}")# Auto-detect local icon or use provided icon- if [ -n "${{ inputs.icon }}" ]; then- ARGS+=("--icon" "${{ inputs.icon }}")- elif [ -f "src-tauri/png/${{ inputs.name }}_512.png" ]; then- ARGS+=("--icon" "src-tauri/png/${{ inputs.name }}_512.png")+ if [ -n "${INPUT_ICON}" ]; then+ ARGS+=("--icon" "${INPUT_ICON}")+ elif [ -f "src-tauri/png/${INPUT_NAME}_512.png" ]; then+ ARGS+=("--icon" "src-tauri/png/${INPUT_NAME}_512.png")fi- if [ "${{ inputs.new_window }}" = "true" ]; then+ if [ "${INPUT_NEW_WINDOW}" = "true" ]; thenARGS+=("--new-window")fi- if [ "${{ inputs.incognito }}" = "true" ]; then+ if [ "${INPUT_INCOGNITO}" = "true" ]; thenARGS+=("--incognito")fi- ARGS+=("--width" "${{ inputs.width }}")- ARGS+=("--height" "${{ inputs.height }}")+ ARGS+=("--width" "${INPUT_WIDTH}")+ ARGS+=("--height" "${INPUT_HEIGHT}")# Compile once, then bundle each requested format independently.node dist/cli.js "${ARGS[@]}" --targets deb,appimage@@ -228,20 +237,20 @@ jobs:# The CLI copies files to project root and removes them from bundle directory# Check project root first, then fallback to bundle directory- if [ -f "${{ inputs.name }}.deb" ]; then- mv "${{ inputs.name }}.deb" output/linux/${{inputs.title}}_`arch`.deb+ if [ -f "${INPUT_NAME}.deb" ]; then+ mv "${INPUT_NAME}.deb" "output/linux/${INPUT_TITLE}_$(arch).deb"elif [ -n "$(ls src-tauri/target/release/bundle/deb/*.deb 2>/dev/null)" ]; then- mv src-tauri/target/release/bundle/deb/*.deb output/linux/${{inputs.title}}_`arch`.deb+ mv src-tauri/target/release/bundle/deb/*.deb "output/linux/${INPUT_TITLE}_$(arch).deb"elseecho "Error: No DEB file found"find . -name "*.deb" -type fexit 1fi- if [ -f "${{ inputs.name }}.AppImage" ]; then- mv "${{ inputs.name }}.AppImage" output/linux/"${{inputs.title}}"_`arch`.AppImage+ if [ -f "${INPUT_NAME}.AppImage" ]; then+ mv "${INPUT_NAME}.AppImage" "output/linux/${INPUT_TITLE}_$(arch).AppImage"elif [ -n "$(ls src-tauri/target/release/bundle/appimage/*.AppImage 2>/dev/null)" ]; then- mv src-tauri/target/release/bundle/appimage/*.AppImage output/linux/"${{inputs.title}}"_`arch`.AppImage+ mv src-tauri/target/release/bundle/appimage/*.AppImage "output/linux/${INPUT_TITLE}_$(arch).AppImage"elseecho "Error: No AppImage file found"find . -name "*.AppImage" -type f@@ -253,27 +262,35 @@ jobs:timeout-minutes: 25env:TAURI_BUNDLER_DMG_IGNORE_CI: "true"+ INPUT_URL: ${{ inputs.url }}+ INPUT_NAME: ${{ inputs.name }}+ INPUT_TITLE: ${{ inputs.title }}+ INPUT_ICON: ${{ inputs.icon }}+ INPUT_NEW_WINDOW: ${{ inputs.new_window }}+ INPUT_INCOGNITO: ${{ inputs.incognito }}+ INPUT_WIDTH: ${{ inputs.width }}+ INPUT_HEIGHT: ${{ inputs.height }}run: |# Use title as app product name on macOS to preserve display casing in .app- ARGS=("${{ inputs.url }}" "--name" "${{ inputs.title }}" "--hide-title-bar")+ ARGS=("${INPUT_URL}" "--name" "${INPUT_TITLE}" "--hide-title-bar")# Auto-detect local icon or use provided icon- if [ -n "${{ inputs.icon }}" ]; then- ARGS+=("--icon" "${{ inputs.icon }}")- elif [ -f "src-tauri/icons/${{ inputs.name }}.icns" ]; then- ARGS+=("--icon" "src-tauri/icons/${{ inputs.name }}.icns")+ if [ -n "${INPUT_ICON}" ]; then+ ARGS+=("--icon" "${INPUT_ICON}")+ elif [ -f "src-tauri/icons/${INPUT_NAME}.icns" ]; then+ ARGS+=("--icon" "src-tauri/icons/${INPUT_NAME}.icns")fi- if [ "${{ inputs.new_window }}" = "true" ]; then+ if [ "${INPUT_NEW_WINDOW}" = "true" ]; thenARGS+=("--new-window")fi- if [ "${{ inputs.incognito }}" = "true" ]; then+ if [ "${INPUT_INCOGNITO}" = "true" ]; thenARGS+=("--incognito")fi- ARGS+=("--width" "${{ inputs.width }}")- ARGS+=("--height" "${{ inputs.height }}")+ ARGS+=("--width" "${INPUT_WIDTH}")+ ARGS+=("--height" "${INPUT_HEIGHT}")node dist/cli.js "${ARGS[@]}" --targets universal --multi-arch@@ -281,16 +298,16 @@ jobs:# The CLI copies the DMG to project root and removes it from bundle directory# Check project root first, then fallback to bundle directory- if [ -f "${{ inputs.title }}.dmg" ]; then- mv "${{ inputs.title }}.dmg" output/macos/"${{inputs.title}}".dmg- elif [ -f "${{ inputs.name }}.dmg" ]; then- mv "${{ inputs.name }}.dmg" output/macos/"${{inputs.title}}".dmg+ if [ -f "${INPUT_TITLE}.dmg" ]; then+ mv "${INPUT_TITLE}.dmg" output/macos/"${INPUT_TITLE}".dmg+ elif [ -f "${INPUT_NAME}.dmg" ]; then+ mv "${INPUT_NAME}.dmg" output/macos/"${INPUT_TITLE}".dmgelif [ -n "$(ls src-tauri/target/universal-apple-darwin/release/bundle/dmg/*.dmg 2>/dev/null)" ]; then- mv src-tauri/target/universal-apple-darwin/release/bundle/dmg/*.dmg output/macos/"${{inputs.title}}".dmg+ mv src-tauri/target/universal-apple-darwin/release/bundle/dmg/*.dmg output/macos/"${INPUT_TITLE}".dmgelseecho "Error: No DMG file found"echo "Searched locations:"- echo " - ${{ inputs.name }}.dmg (project root)"+ echo " - ${INPUT_NAME}.dmg (project root)"echo " - src-tauri/target/universal-apple-darwin/release/bundle/dmg/"find . -name "*.dmg" -type fexit 1@@ -298,7 +315,9 @@ jobs:- name: Notarize macOS DMGif: matrix.os == 'macos-latest'+ timeout-minutes: 30env:+ INPUT_TITLE: ${{ inputs.title }}PAKE_NOTARIZE_APPLE_ID: ${{ secrets.PAKE_NOTARIZE_APPLE_ID }}PAKE_NOTARIZE_TEAM_ID: ${{ secrets.PAKE_NOTARIZE_TEAM_ID }}PAKE_NOTARIZE_PASSWORD: ${{ secrets.PAKE_NOTARIZE_PASSWORD }}@@ -310,7 +329,7 @@ jobs:exit 0fi- DMG_PATH="output/macos/${{inputs.title}}.dmg"+ DMG_PATH="output/macos/${INPUT_TITLE}.dmg"if [ ! -f "$DMG_PATH" ]; thenecho "Error: DMG file not found at $DMG_PATH"exit 1@@ -329,27 +348,36 @@ jobs:- name: Build for Windowsif: matrix.os == 'windows-latest'timeout-minutes: 20+ env:+ INPUT_URL: ${{ inputs.url }}+ INPUT_NAME: ${{ inputs.name }}+ INPUT_TITLE: ${{ inputs.title }}+ INPUT_ICON: ${{ inputs.icon }}+ INPUT_NEW_WINDOW: ${{ inputs.new_window }}+ INPUT_INCOGNITO: ${{ inputs.incognito }}+ INPUT_WIDTH: ${{ inputs.width }}+ INPUT_HEIGHT: ${{ inputs.height }}run: |# Use title as app product name on Windows to preserve display casing- $args = "${{ inputs.url }}", "--name", "${{ inputs.title }}"+ $args = $env:INPUT_URL, "--name", $env:INPUT_TITLE# Auto-detect local icon or use provided icon- if ("${{ inputs.icon }}" -ne "") {- $args += "--icon", "${{ inputs.icon }}"- } elseif (Test-Path "src-tauri\png\${{ inputs.name }}_256.ico") {- $args += "--icon", "src-tauri\png\${{ inputs.name }}_256.ico"+ if (-not [string]::IsNullOrEmpty($env:INPUT_ICON)) {+ $args += "--icon", $env:INPUT_ICON+ } elseif (Test-Path "src-tauri\png\$($env:INPUT_NAME)_256.ico") {+ $args += "--icon", "src-tauri\png\$($env:INPUT_NAME)_256.ico"}- if ("${{ inputs.new_window }}" -eq "true") {+ if ($env:INPUT_NEW_WINDOW -eq "true") {$args += "--new-window"}- if ("${{ inputs.incognito }}" -eq "true") {+ if ($env:INPUT_INCOGNITO -eq "true") {$args += "--incognito"}- $args += "--width", "${{ inputs.width }}"- $args += "--height", "${{ inputs.height }}"+ $args += "--width", $env:INPUT_WIDTH+ $args += "--height", $env:INPUT_HEIGHT$args += "--targets", "x64"@@ -359,13 +387,13 @@ jobs:# The CLI copies the MSI to project root and removes it from bundle directory# Check project root first, then fallback to bundle directories- $projectRootMsi = "${{ inputs.title }}.msi"- $legacyProjectRootMsi = "${{ inputs.name }}.msi"+ $projectRootMsi = "$($env:INPUT_TITLE).msi"+ $legacyProjectRootMsi = "$($env:INPUT_NAME).msi"if (Test-Path $projectRootMsi) {- Move-Item -Path $projectRootMsi -Destination "output\windows\${{inputs.title}}_x64.msi"+ Move-Item -Path $projectRootMsi -Destination "output\windows\$($env:INPUT_TITLE)_x64.msi"} elseif (Test-Path $legacyProjectRootMsi) {- Move-Item -Path $legacyProjectRootMsi -Destination "output\windows\${{inputs.title}}_x64.msi"+ Move-Item -Path $legacyProjectRootMsi -Destination "output\windows\$($env:INPUT_TITLE)_x64.msi"} else {# Check architecture-specific path (x64 builds)$msiFiles = Get-ChildItem -Path "src-tauri\target\x86_64-pc-windows-msvc\release\bundle\msi\*.msi" -ErrorAction SilentlyContinue@@ -376,7 +404,7 @@ jobs:}if ($msiFiles) {- Move-Item -Path $msiFiles[0].FullName -Destination "output\windows\${{inputs.title}}_x64.msi"+ Move-Item -Path $msiFiles[0].FullName -Destination "output\windows\$($env:INPUT_TITLE)_x64.msi"} else {Write-Error "No MSI files found in expected locations"Write-Host "Searched paths:"@@ -401,7 +429,7 @@ jobs:- name: Upload to release (Linux)uses: ncipollo/release-action@v1 # cspell:disable-line- if: matrix.os == 'ubuntu-latest' && startsWith(github.ref, 'refs/tags/')+ if: matrix.build == 'linux' && startsWith(github.ref, 'refs/tags/')with:allowUpdates: trueomitBody: truediff --git a/AGENTS.md b/AGENTS.mdindex da13240e..3d452def 100644--- a/AGENTS.md+++ b/AGENTS.md@@ -147,7 +147,8 @@ Oracles per row live under `tests/unit/` (for example `event-link-guard.test.js`- macOS menu navigation must keep working on blank error pages: Reload uses native `WebviewWindow::reload`, Go Home uses `navigate` + `resolve_home_url`, Back/Forward use the platform WKWebView history API rather than page `eval`. Copy URL reads `window.url()` so it does not depend on a live JS document.- Not every green CI step is evidence. `Test CLI Integration (smoke)` in `quality-and-test.yml` ends its command with `|| true`, so it reports success no matter how the CLI behaves; it is a log-producer, not a gate. The steps that actually fail on regressions are `Run Fast Test Suite` (all three platforms) and `Full Tauri Build` (real `pnpm test` with a build, push and dispatch only). Cite those when claiming a change is verified, and check for `|| true` and `continue-on-error` before treating any other step as proof. `Rust Code Quality` also runs `cargo test --lib`, the only CI gate for the Rust unit tests.- `setup-env` in build mode shares one rust-cache key per OS, and the first job to save wins it: every later restore is a full match and never saves again. A job that installs Rust but does not compile the app (fast lane, clippy) must pass `rust-cache-save: false`, or it seeds an empty target and every release recompiles from scratch. A healthy `v0-rust-pake-build-*` entry is about 1.1 GB and a poisoned one about 109 MB; check `gh cache list --key v0-rust-pake-build` before trusting release timings. Release builds reuse it because the CLI keeps `CARGO_TARGET_DIR` at `src-tauri/target` even inside its private workspace.-- `.github/workflows/pake-cli.yaml` and `single-app.yaml` are public build surfaces that external users trigger from their own forks (see `docs/github-actions-usage*.md`). Changes there ship to outside users on push to `main`, independent of `V*` releases; treat them like public API, not internal CI.+- `.github/workflows/pake-cli.yaml` and `single-app.yaml` are public build surfaces that external users trigger from their own forks (see `docs/github-actions-usage*.md`). Changes there ship to outside users on push to `main`, independent of `V*` releases; treat them like public API, not internal CI. Their `run:` scripts take inputs through `env:`, never `${{ inputs.* }}` interpolated into bash or pwsh (gated by `tests/integration/workflow-paths.test.js`); on Windows an empty variable is unset, so test it with `IsNullOrEmpty`.+- Jobs that compile the app on Linux pin `ubuntu-24.04` instead of `ubuntu-latest` (moving to Ubuntu 26 from 2026-10-19): release `.deb`/`.AppImage` link against the runner's glibc and WebKitGTK, so a runner bump raises the minimum distro for users. Move the pin deliberately, and keep the `matrix.build == 'linux'` conditions in `single-app.yaml` rather than matching the runner label.- `action.yml` is public too, but reaches `uses: tw93/Pake@v3` users only when the release workflow's `Move Major Action Tag` job moves `v3` to the newest `V3.*` release; an action fix on `main` is not live until then. Do not move `v3` by hand unless that job failed. The action exports `PAKE_CREATE_APP=1` and takes only the package the CLI wrote into the working directory during that run; keep `docs/pake-action*.md` output notes in step with it.## Platform-Specific Developmentdiff --git a/tests/integration/workflow-paths.test.js b/tests/integration/workflow-paths.test.jsindex 953d2105..f62fb0f8 100644--- a/tests/integration/workflow-paths.test.js+++ b/tests/integration/workflow-paths.test.js@@ -133,9 +133,34 @@ describe("Workflow path integration", () => {expect(workflow).toContain("Upload AppImage (Linux)");expect(workflow).toContain("Upload RPM (Linux)");expect(workflow).toContain("Upload ZST (Linux)");- expect(workflow).toContain("path: ${{ inputs.name }}-*.pkg.tar.zst");+ // The CLI lowercases and hyphenates Linux names, so uploads must not+ // assume the package is named after the raw name input.+ for (const ext of ["deb", "AppImage", "rpm", "pkg.tar.zst"]) {+ expect(workflow).toContain(`path: "*.${ext}"`);+ }+ expect(workflow).not.toMatch(+ /path: \$\{\{ inputs\.name \}\}\.(deb|AppImage|rpm)/,+ );});+ it.each([+ ".github/workflows/pake-cli.yaml",+ ".github/workflows/single-app.yaml",+ ])(+ "passes inputs to %s scripts through env, not shell interpolation",+ (file) => {+ const workflow = fs.readFileSync(file, "utf8");+ const scripts = workflow+ .split(/\n\s+run: \|\n/)+ .slice(1)+ .map((rest) => rest.split(/\n\s{6}- (?:name|uses):/)[0]);+ expect(scripts.length).toBeGreaterThan(0);+ for (const script of scripts) {+ expect(script).not.toMatch(/\$\{\{\s*inputs\./);+ }+ },+ );+it("should forward the new-window input on every platform", () => {const workflow = fs.readFileSync(".github/workflows/pake-cli.yaml",