Skip to content

[codex] Preserve Windows shell for desktop release builds#7

Merged
DragonnZhang merged 1 commit into
mainfrom
dragon/fix-windows-desktop-release-shell
Jun 8, 2026
Merged

[codex] Preserve Windows shell for desktop release builds#7
DragonnZhang merged 1 commit into
mainfrom
dragon/fix-windows-desktop-release-shell

Conversation

@DragonnZhang

Copy link
Copy Markdown
Collaborator

What this PR does

Fixes the follow-up Windows failure in the Desktop Release workflow by removing the build job's global bash default shell. The version bump/check steps now receive the normalized release version through GitHub Actions expression interpolation, while the signing-secret setup step keeps its explicit bash shell because it uses bash syntax.

Why it's needed

Run https://github.com/modelstudioai/openwork/actions/runs/27130552884 showed that the previous fix worked for macOS, Linux, and the Windows version steps, but Windows packaging then ran under Git Bash. During electron:vendor:qwen, tar.exe -xzf C:\...\qwen-code-0.15.11.tgz was interpreted as a remote host:path value and failed with Cannot connect to C: resolve failed. Windows packaging should run in the runner default shell instead of inheriting bash from unrelated workflow steps.

Reviewer Test Plan

How to verify

Re-run the Desktop Release workflow for version 0.0.2. The Windows job should keep the version bump/check success from the previous run, then proceed past electron:vendor:qwen without the Cannot connect to C tar error. macOS and Linux should continue using their default shell behavior and remain green.

Evidence (Before & After)

Before: GitHub Actions run https://github.com/modelstudioai/openwork/actions/runs/27130552884 failed in Build Windows at tar.exe -xzf C:\Users\RUNNER~1\AppData\Local\Temp\...\qwen-code-0.15.11.tgz with Cannot connect to C: resolve failed.

After: Local workflow validation passed with actionlint, YAML parsing, git diff --check, and bun run bump-desktop-version --dry-run 0.0.2.

Tested on

OS Status
🍏 macOS ✅ tested
🪟 Windows ⚠️ not tested locally
🐧 Linux ⚠️ not tested locally

Environment (optional)

Local macOS shell in /Users/dragon/Documents/openwork; hosted Windows failure inspected with gh.

Risk & Scope

  • Main risk or tradeoff: the build matrix now uses each runner's default shell again, so future steps that require bash must set shell: bash explicitly.
  • Not validated / out of scope: a full hosted Desktop Release rerun has not completed yet from this PR branch.
  • Breaking changes / migration notes: none.

Linked Issues

References https://github.com/modelstudioai/openwork/actions/runs/27130552884

中文说明

What this PR does

这个 PR 修复 Desktop Release workflow 的后续 Windows 失败:去掉 build job 级别的全局 bash 默认 shell。版本 bump/check 步骤现在通过 GitHub Actions 表达式直接拿到标准化后的版本号;签名 secret 配置步骤因为使用 bash 语法,继续单独指定 shell: bash

Why it's needed

Run https://github.com/modelstudioai/openwork/actions/runs/27130552884 说明上一个修复已经让 macOS、Linux 和 Windows 版本步骤通过,但 Windows packaging 继承了 Git Bash。执行 electron:vendor:qwen 时,tar.exe -xzf C:\...\qwen-code-0.15.11.tgz 被当成远程 host:path 解析,最终报 Cannot connect to C: resolve failed。Windows 打包应该回到 runner 默认 shell,而不是继承和它无关的 bash 设置。

Reviewer Test Plan

How to verify

重新运行 Desktop Release workflow,版本填 0.0.2。Windows job 应该保留上一次 run 里版本 bump/check 通过的结果,并继续跑过 electron:vendor:qwen,不再出现 Cannot connect to C 的 tar 错误。macOS 和 Linux 应该继续使用各自默认 shell 并保持绿色。

Evidence (Before & After)

Before: GitHub Actions run https://github.com/modelstudioai/openwork/actions/runs/27130552884 的 Build Windows 在 tar.exe -xzf C:\Users\RUNNER~1\AppData\Local\Temp\...\qwen-code-0.15.11.tgz 处失败,错误是 Cannot connect to C: resolve failed

After: 本地已通过 actionlint、YAML 解析、git diff --check,以及 bun run bump-desktop-version --dry-run 0.0.2

Tested on

OS Status
🍏 macOS ✅ tested
🪟 Windows ⚠️ not tested locally
🐧 Linux ⚠️ not tested locally

Environment (optional)

本地 macOS shell,目录 /Users/dragon/Documents/openwork;托管 Windows 失败日志通过 gh 查看。

Risk & Scope

  • Main risk or tradeoff: build matrix 现在重新使用各 runner 默认 shell,以后如果某个步骤必须用 bash,需要在那个步骤上显式写 shell: bash
  • Not validated / out of scope: 还没有从这个 PR 分支完整跑完一次托管 Desktop Release workflow。
  • Breaking changes / migration notes: 无。

Linked Issues

References https://github.com/modelstudioai/openwork/actions/runs/27130552884

@DragonnZhang DragonnZhang merged commit 99d6da0 into main Jun 8, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant