Skip to content

fix(#265): Windows の build 前に稼働中の app を停止する (更新時の electron-builder 失敗) - #266

Merged
rebuildup merged 1 commit into
mainfrom
265
Nov 29, 2026
Merged

rebuildup merged 1 commit into
mainfrom
265

Conversation

@rebuildup

Copy link
Copy Markdown
Owner

目的

#265。v0.8.0 の Windows 受入脚 (実機 device-windows) で、稼働中の app を结束后に更新すると build が失敗することを発見した。

症状

Windows では app が release dir 内の exe から動作するため、稼働中は build が置き換える exe がロックされ electron-builder が失敗する。

[hoxay] launched 4db5ece... (...\\win-unpacked\\hoxay.exe)
[hoxay] building 4db5ece... (4db5ece...)
[hoxay] ERROR: electron-builder failed

macOS は ~/Applications へ copy して起動するため該当しない (POSIX 側は既に app を停止してから差し替える)。

修正

build の前に管理下の app (hoxay / herdr-t3) を停止する。close を要求し、猶予 (5 秒) 後に force stop。app は herdr の session / pane / agent を所有しないので、停止しても作業内容は失われない。別製品の process には触れない。

検証

  • PowerShell parse check — pass
  • 実機 (device-windows) での再検証は本 PR の CI 後に実施

境界

  • 機能追加は含まない (Windows 更新経路の修正のみ)。

… executable

On Windows the app runs from the release directory, so a running instance
locks the executable the build replaces and electron-builder fails
(observed on a real Windows host: update.ps1 over a running install).
The app owns no herdr session — panes, agents and workspaces live in
herdr — so stopping it before the build is safe.
@coderabbitai

coderabbitai Bot commented Nov 29, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 43 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: dfe8cc60-22cd-4a60-9600-f906150a7ace
Commits

Reviewing files that changed from the base of the PR and between 0aea293 and a51824e.

Files selected for processing: 1

  • components/hoxay/install.ps1
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@rebuildup
rebuildup merged commit 8932d4b into main Nov 29, 2026
4 checks passed
@rebuildup
rebuildup deleted the 265 branch November 29, 2026 07:41
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