# windows: Fix auto-update for \`conpty.dll\` \(\#39178\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/4f95186b537aaeda56d79083c1453af9f09a27b7)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 4f95186b537aaeda56d79083c1453af9f09a27b7

Requested commit: 4f95186b537aaeda56d79083c1453af9f09a27b7

Commit: 4f95186b537aaeda56d79083c1453af9f09a27b7

Tree: b5a94d68c6c25eb64ca359b36db4a48070c33c6a

Author: 张小白

Committer: GitHub

## Message

```
windows: Fix auto-update for `conpty.dll` (#39178)

This PR is a follow-up to #39090 and addresses two issues:

* Moves `conpty.dll` and `OpenConsole.exe` out of the `bin` folder to
prevent other programs from using them.
* Updates these files only after Zed exits, avoiding update failures due
to file locks.


Release Notes:

- N/A

---------

Co-authored-by: Jakub Konka <kubkon@jakubkonka.com>
```

## Parents

- [33f44009de4d76ac019a4142b03548b50706bf17](https://git.cafe/gitcafe/zed/commit/33f44009de4d76ac019a4142b03548b50706bf17?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/4f95186b537aaeda56d79083c1453af9f09a27b7?format=markdown)
