Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 25 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,15 +43,31 @@ copying the app out of the disk image.

### Updates

Off by default. Turn it on under Settings and the app checks for a new version
every six hours, reading a manifest and downloading nothing else. A version it
does download is verified against a key compiled into the app before it
replaces anything.

An app Homebrew installed does not replace itself — Homebrew records which
version it put in `/Applications`, and an app that overwrote that would be
written back over by the next `brew upgrade`. It says a new version exists and
leaves `brew upgrade --cask thinkwatch-lite` to do it.
The app looks for a new version two minutes after it starts and every six hours
after that, reading a small manifest and nothing else. It can be turned off
under Settings.

When there is one, a small window says so, and what happens next depends on how
the app was installed.

**Downloaded from the releases page:** one press on the install button does the
rest. The app downloads the update, verifies it against a key compiled into
itself, waits for the requests the gateway is serving to finish — up to three
minutes — then replaces itself and restarts. A Claude Code task in the middle
of a response is not cut off to make room for the update.

**Installed with Homebrew:** the window gives the command to copy, and the app
never replaces itself. Homebrew records which version it put in `/Applications`;
an app that overwrote it would be written back over by the next `brew upgrade`.
The window only appears once the tap carries the new version, so the command
always has something to install:

```bash
brew update && brew upgrade --cask thinkwatch-lite
```

`brew update` comes first because `brew upgrade` refreshes taps at most once a
day on its own.

Or run it from source:

Expand Down
24 changes: 18 additions & 6 deletions README.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,25 @@ xattr -dr com.apple.quarantine "/Applications/ThinkWatch Lite.app"

### 更新

默认不开。在「设置」里打开之后,每六小时检查一次,只读取一份版本清单,不
下载其他任何内容。真去下载的那个包,在替换任何东西之前会先用编译进应用里
的那把公钥验签。
应用启动两分钟后检查一次有没有新版本,此后每六小时一次,只读取一份很小的
版本清单。可以在「设置」里关闭。

Homebrew 装的实例不自己替换:Homebrew 记着它放进 `/Applications` 的是哪一
版,应用把它盖掉之后,下一次 `brew upgrade` 会把旧的那版写回来。这种情况下
应用只提示有新版本,升级交给 `brew upgrade --cask thinkwatch-lite`。
有新版本时会弹出一个小窗口,接下来怎么做取决于应用是怎么装上来的。

**从 release 页面下载安装的:**按一次安装按钮,剩下的全部自动完成 —— 下载
更新包,用编译进应用里的公钥验签,等网关手上的请求结束(最多三分钟),然后
替换并重新启动。正在输出的 Claude Code 任务不会为了更新被掐断在半截。

**用 Homebrew 安装的:**窗口给出更新命令和复制按钮,应用不会替换自己。
Homebrew 记着它放进 `/Applications` 的是哪一版,应用把它盖掉之后,下一次
`brew upgrade` 会把旧的那版写回来。这个窗口只在 tap 已经有新版本时才弹出,
所以给出的命令执行下去一定有东西可装:

```bash
brew update && brew upgrade --cask thinkwatch-lite
```

前面要先 `brew update`:`brew upgrade` 自己最多一天才刷新一次 tap。

也可以从源码跑:

Expand Down
Loading
Loading