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
2 changes: 1 addition & 1 deletion .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ to `dev`; with the CLI, pass `--base dev`.

Before writing: every release ships an arm64 disk image for macOS, x64
and arm64 installers for Windows, and x86_64 and aarch64 AppImages for
Linux. The macOS build is Apple Silicon only and not signed by Apple,
Linux. The macOS build is Apple silicon only and not signed by Apple,
the Windows installers are not code-signed, and Linux gets the AppImage
and nothing else. Gateway behavior (routing, forwarding, cost,
redaction) lives in ThinkWatch Core, not here. See CONTRIBUTING.md.
Expand Down
21 changes: 14 additions & 7 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ These decisions are settled and not up for a PR:
five files for people to install, each with the gateway inside it and a
sha256 beside it: an arm64 disk image for macOS, an x64 and an arm64
installer for Windows, and an x86_64 and an aarch64 AppImage for Linux.
- **macOS: Apple Silicon only, and not signed by Apple.** The macOS
- **macOS: Apple silicon only, and not signed by Apple.** The macOS
artifact is an arm64 `.app` in a disk image, signed with the project's
own self-signed certificate. That certificate does not satisfy Gatekeeper; it
exists so that every release has the same signer, which is what lets
Expand Down Expand Up @@ -94,7 +94,7 @@ These are load-bearing and a PR that breaks one will be asked to change:
first.** Every destructive action goes through our own confirmation
UI, never a browser `confirm`.

## Building a `.app`
## Building a release bundle

`pnpm tauri build` produces a self-contained bundle. The `twcore` inside
it is downloaded from a ThinkWatch-Core release and checksum-verified —
Expand All @@ -107,11 +107,18 @@ shipped beside it always come from one core commit. To move to a newer
core: change the `tag` in `src-tauri/Cargo.toml`, `cargo update -p
tw-api`, rebuild.

`pnpm tauri dev` does not run any of this and needs no network. There,
`locate_core` finds a binary in a sibling `thinkwatch-core` checkout.

On Windows the same command produces an NSIS installer instead, and it
is not code-signed; on Linux it produces an AppImage. The macOS bundle is Apple Silicon only, and neither
Every build needs that file, including `pnpm tauri dev`, `cargo clippy`
and `cargo test`, because Tauri checks at compile time that the
resources `tauri.conf.json` declares exist. In a fresh checkout, run
`bash src-tauri/scripts/fetch-core.sh` once before the first build.
`pnpm tauri dev` then runs the copy the build places beside the debug
binary, and the control-plane tests start it and complete a handshake
with it, so it has to be the version `Cargo.lock` pins.

On macOS the command produces the `.app`, which the release workflow
puts in a disk image with `dmgbuild` (layout in `src-tauri/dmg/`); on
Windows it produces an NSIS installer, which is not code-signed; on Linux
it produces an AppImage. The macOS bundle is Apple silicon only, and neither
signed nor notarized. On macOS 15 and later a downloaded copy has to be
cleared once:

Expand Down
451 changes: 333 additions & 118 deletions README.md

Large diffs are not rendered by default.

295 changes: 147 additions & 148 deletions README.zh-CN.md

Large diffs are not rendered by default.

Binary file removed docs/screenshots/clients-dark.png
Binary file not shown.
Binary file removed docs/screenshots/clients-en-dark.png
Binary file not shown.
Binary file removed docs/screenshots/clients-en-light.png
Binary file not shown.
Binary file removed docs/screenshots/clients-light.png
Binary file not shown.
Binary file removed docs/screenshots/dry-run-dark.png
Binary file not shown.
Binary file removed docs/screenshots/dry-run-en-dark.png
Binary file not shown.
Binary file removed docs/screenshots/dry-run-en-light.png
Binary file not shown.
Binary file removed docs/screenshots/dry-run-light.png
Binary file not shown.
Binary file modified docs/screenshots/en/dry-run-dark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/screenshots/en/dry-run-light.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/screenshots/en/overview-dark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/screenshots/en/overview-light.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/screenshots/en/remote-add-dark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/screenshots/en/remote-add-light.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/screenshots/en/remote-switcher-dark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/screenshots/en/remote-switcher-light.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/screenshots/en/routing-dark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/screenshots/en/routing-light.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/screenshots/en/security-dark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/screenshots/en/security-light.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/screenshots/en/traffic-dark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/screenshots/en/traffic-light.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed docs/screenshots/findings-dark.png
Binary file not shown.
Binary file removed docs/screenshots/findings-en-dark.png
Binary file not shown.
Binary file removed docs/screenshots/findings-en-light.png
Binary file not shown.
Binary file removed docs/screenshots/findings-light.png
Diff not rendered.
Binary file removed docs/screenshots/menubar-cost-dark.png
Diff not rendered.
Binary file removed docs/screenshots/menubar-cost-light.png
Diff not rendered.
Binary file removed docs/screenshots/menubar-quota-dark.png
Diff not rendered.
Binary file removed docs/screenshots/menubar-quota-light.png
Diff not rendered.
Binary file removed docs/screenshots/overview-dark.png
Diff not rendered.
Binary file removed docs/screenshots/overview-en-dark.png
Diff not rendered.
Binary file removed docs/screenshots/overview-en-light.png
Diff not rendered.
Binary file removed docs/screenshots/overview-light.png
Diff not rendered.
Binary file removed docs/screenshots/requests-dark.png
Diff not rendered.
Binary file removed docs/screenshots/requests-en-dark.png
Diff not rendered.
Binary file removed docs/screenshots/requests-en-light.png
Diff not rendered.
Binary file removed docs/screenshots/requests-light.png
Diff not rendered.
Binary file removed docs/screenshots/upstreams-dark.png
Diff not rendered.
Binary file removed docs/screenshots/upstreams-en-dark.png
Diff not rendered.
Binary file removed docs/screenshots/upstreams-en-light.png
Diff not rendered.
Binary file removed docs/screenshots/upstreams-light.png
Diff not rendered.
Binary file modified docs/screenshots/web/dry-run-en.webp
Binary file modified docs/screenshots/web/dry-run.webp
Binary file modified docs/screenshots/web/overview-en.webp
Binary file modified docs/screenshots/web/overview.webp
Binary file modified docs/screenshots/web/remote-add-en.webp
Binary file modified docs/screenshots/web/remote-add.webp
Binary file modified docs/screenshots/web/remote-switcher-en.webp
Binary file modified docs/screenshots/web/remote-switcher.webp
Binary file modified docs/screenshots/web/routing-en.webp
Binary file modified docs/screenshots/web/routing.webp
Binary file modified docs/screenshots/web/security-en.webp
Binary file modified docs/screenshots/web/security.webp
Binary file modified docs/screenshots/web/traffic-en.webp
Binary file modified docs/screenshots/web/traffic.webp
Binary file modified docs/screenshots/zh/dry-run-dark.png
Binary file modified docs/screenshots/zh/dry-run-light.png
Binary file modified docs/screenshots/zh/overview-dark.png
Binary file modified docs/screenshots/zh/overview-light.png
Binary file modified docs/screenshots/zh/remote-add-dark.png
Binary file modified docs/screenshots/zh/remote-add-light.png
Binary file modified docs/screenshots/zh/remote-switcher-dark.png
Binary file modified docs/screenshots/zh/remote-switcher-light.png
Binary file modified docs/screenshots/zh/routing-dark.png
Binary file modified docs/screenshots/zh/routing-light.png
Binary file modified docs/screenshots/zh/security-dark.png
Binary file modified docs/screenshots/zh/security-light.png
Binary file modified docs/screenshots/zh/traffic-dark.png
Binary file modified docs/screenshots/zh/traffic-light.png
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"name": "thinkwatch-lite",
"private": true,
"description": "Desktop app for a local AI API gateway on macOS, Windows and Linux",
"version": "2026.9.16",
"type": "module",
"packageManager": "pnpm@11.13.0",
Expand Down
2 changes: 1 addition & 1 deletion src-tauri/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ edition = "2024"
# stable,把它往回调不会让谁编译得更顺,只会把修复挡在外面。
rust-version = "1.88"
license = "MIT"
description = "Desktop app for a local AI gateway, built for individual developers"
description = "Desktop app for a local AI API gateway on macOS, Windows and Linux"

# 接管和扫描这两个 crate 在 `crates/` 下,和应用同一个 workspace:`cargo test`
# 一次跑全,Cargo.lock 只有一份
Expand Down
6 changes: 4 additions & 2 deletions src-tauri/scripts/fetch-core.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,10 @@
# script 在**编译期**就校验它在不在 —— 挂在打包那一步上,等于在一个
# 干净的检出里永远赶不上:编译先失败。
#
# 日常 `tauri dev` 不经过这里,也不需要网络:那时 `locate_core` 会在
# 隔壁仓库的 target 里找到一个。
# 日常 `tauri dev` 不经过这里,但编译照样要求 `resources/twcore` 在(原因同
# 上一段):**新检出先跑一次这个脚本**,之后的 dev 不再需要网络。运行时
# `locate_core` 也先用 resources 里的这一份;要换一个 core 调试,用
# `THINKWATCH_CORE_BIN` 显式指定。
set -euo pipefail

cd "$(dirname "$0")/.."
Expand Down
Loading