49 lines
1.6 KiB
Markdown
49 lines
1.6 KiB
Markdown
# Seal Use Infrastructure Operations
|
|
|
|
## Release promotion
|
|
|
|
GitHub Actions is responsible only for building and publishing the GitHub
|
|
Release. On WSL, `seal-use-release-sync.timer` polls the latest release every
|
|
15 minutes and promotes it in this order:
|
|
|
|
1. `seal-use-darwin-arm64.tar.gz`
|
|
2. `checksums.txt`
|
|
3. the remaining archives
|
|
4. raw platform binaries
|
|
|
|
The Homebrew tap is updated immediately after the first two assets are present
|
|
in Gitea and the macOS arm64 checksum is available. The remaining assets are
|
|
idempotent retries and do not make a valid Homebrew installation unavailable.
|
|
|
|
The WSL worker uses its local mihomo listener at `http://127.0.0.1:7897` only
|
|
for GitHub. It does not enable TUN or expose a LAN listener. Local Gitea
|
|
traffic stays direct through `127.0.0.1:3001`.
|
|
|
|
The WSL mihomo service is defined by `systemd/mihomo.service`. Its runtime
|
|
config is a private copy of the selected mac15 Clash profile at
|
|
`/home/dev/.config/mihomo/config.yaml`; the profile is not committed.
|
|
|
|
Useful WSL commands:
|
|
|
|
```sh
|
|
systemctl status seal-use-release-sync.timer
|
|
systemctl start seal-use-release-sync.service
|
|
journalctl -u seal-use-release-sync.service -n 100 --no-pager
|
|
systemctl status mihomo.service
|
|
```
|
|
|
|
Credentials are stored as `0600` files under
|
|
`~/.config/seal-use/`; they must never be committed or printed.
|
|
|
|
## Cross-host health check
|
|
|
|
From mac15, run:
|
|
|
|
```sh
|
|
./ops/infra-healthcheck.sh
|
|
```
|
|
|
|
It emits JSON checks for mac15, WSL, Windows, mac13, and Aliyun, including the
|
|
release-sync timer state and the last successful Gitea/Homebrew promotion. The
|
|
script is read-only; a failed check does not restart or mutate any service.
|