-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathjustfile
More file actions
44 lines (33 loc) · 1.44 KB
/
Copy pathjustfile
File metadata and controls
44 lines (33 loc) · 1.44 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
default:
@just --list
build:
@cargo build --color=always
install-work:
@cargo install --locked --path ./cargo-work --bin cargo-work --color=always
install-horsed-with-trace:
@env RUSTFLAGS="--cfg tokio_unstable" \
cargo install --path ./horsed --bin horsed --color=always --features opentelemetry
install-horsed:
@cargo install --locked --path ./horsed --bin horsed --color=always
# 构建 horsed release 二进制 (不替换正在运行的文件)
build-horsed:
@cargo build --release -p horsed --color=always
# 重启远程 horsed (仅限 Windows, 通过 cargo work 调用)
# 延迟 3 秒让 SSH 连接正常关闭, 然后 停止→拷贝→启动
[windows]
restart-horsed:
@powershell -Command "Start-Process powershell -ArgumentList '-NoProfile -Command \"Start-Sleep 3; Stop-Process -Name horsed -Force -ErrorAction SilentlyContinue; Start-Sleep 1; Copy-Item target\\release\\horsed.exe D:\\horsed.exe -Force; Set-Location D:\\; Start-Process .\\horsed.exe\"' -WindowStyle Hidden"
@echo "horsed 将在 3 秒后重启"
# 一键部署: 构建 + 重启
[windows]
deploy-horsed: build-horsed restart-horsed
install: install-work install-horsed
@echo "[{{os()}}-{{arch()}}] 安装成功: cargo-work, horsed"
changes:
@bash scripts/changes.sh
get-release:
cargo work get ./target/release/cargo-work -f
cargo work get ./target/release/horsed -f
agent-check:
@python3 scripts/check-agent-docs.py
@python3 scripts/check-agent-regression.py