docs/install: AI-friendly one-command install (README + scripts/install.sh/.bat + fresh dist tgz)

This commit is contained in:
2026-09-02 01:15:10 +08:00
parent 711244c7ad
commit f4e14d8513
4 changed files with 95 additions and 48 deletions
+7
View File
@@ -0,0 +1,7 @@
#!/usr/bin/env bash
set -e
cd "$(dirname "$0")/.."
TGZ="$(pwd)/dist/dsh-watch-0.1.0.tgz"
if [ ! -f "$TGZ" ]; then npm install; npm pack; cp dsh-watch-0.1.0.tgz dist/; rm -f dsh-watch-0.1.0.tgz; fi
dsh plugin --profile desktop add "$TGZ"
echo "✅ dsh-watch 已安装/更新"