Commit 55b97dd
Refresh the CLI on upgrade, even when the release is current
`tron upgrade` gates everything on the release version, but the CLI does not come
from the release: it is written from a heredoc in install.sh, which deploys from
main on merge. Those are two different update paths, and only one of them was
being checked.
So a CLI-only change could never reach anyone. `tron store` was added, merged and
deployed, and `tron upgrade` still answered "TronBrowser is already up to date
(v3.16.1)" and left the old CLI in place -- the new command simply did not exist
on the machine, and `tron store login` fell through to the handler that opens a
URL, so it silently launched a browser instead. The only way through was
TB_FORCE=1, which nobody would think to run for a command they had just been
told exists.
The up-to-date branch already refreshes the engine, the browser, Tor, certutil,
the Moshpit root, Obscura and the macOS icon for exactly this reason: those are
current-at-fetch-time, not current-at-release-time. The CLI belongs in that list
and was missing from it. We are already executing the freshly fetched install.sh
at that point, so rewriting it costs nothing and is always current.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>1 parent ab8c5a8 commit 55b97dd
1 file changed
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1242 | 1242 | | |
1243 | 1243 | | |
1244 | 1244 | | |
| 1245 | + | |
| 1246 | + | |
| 1247 | + | |
| 1248 | + | |
| 1249 | + | |
| 1250 | + | |
| 1251 | + | |
| 1252 | + | |
1245 | 1253 | | |
1246 | 1254 | | |
1247 | 1255 | | |
| |||
0 commit comments