#!/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 已安装/更新"