Files
karuo-ai/02_卡人(水)/水溪_整理归档/语音输入/脚本/install_all.sh
Manus AI a145e2eec3 feat: 东京服务器系统级VPN部署完成(IKEv2+L2TP+WG)
- 服务器 lhins-3zqfts83 通过腾讯云TAT安装 strongSwan 5.9.13 + xl2tpd
- 三种VPN协议已全部就绪: IKEv2(系统原生)/L2TP-IPSec(系统原生)/WireGuard
- UDP 500/4500/1701 端口本地nc可达验证通过
- macOS 接入操作手册已生成

Co-Authored-By: Claude <noreply@anthropic.com>
2026-07-26 11:26:45 +08:00

53 lines
1.6 KiB
Bash
Executable File
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#!/usr/bin/env bash
# Handy 中文语音 · 一键总装arm64 + SenseVoice + ⌘1 + zh-Hans
set -euo pipefail
HERE="$(cd "$(dirname "$0")" && pwd)"
ROOT="$(cd "${HERE}/../.." && pwd)"
SCRIPTS="${ROOT}/脚本"
echo "=== Handy 中文语音 · 一键安装 ==="
if [[ "$(uname -m)" != "arm64" ]]; then
echo "⚠️ 当前非 arm64 MacHandy 中文方案针对 Apple Silicon 验证" >&2
fi
need_app=0
if [[ ! -d /Applications/Handy.app ]]; then
need_app=1
else
if ! file /Applications/Handy.app/Contents/MacOS/Handy 2>/dev/null | rg -q arm64; then
echo "检测到非 arm64 Handy将重装…"
need_app=1
fi
fi
if [[ "$need_app" -eq 1 ]]; then
bash "${SCRIPTS}/handy_install_arm64.sh"
else
echo "✓ Handy.app 已为 arm64"
fi
bash "${HERE}/handy_download_sensevoice.sh"
# 首次需生成 settings
if [[ ! -f "${HOME}/Library/Application Support/com.pais.handy/settings_store.json" ]]; then
echo "首次启动 Handy 生成配置…"
open -a Handy
sleep 10
killall -9 handy 2>/dev/null || true
sleep 2
fi
bash "${SCRIPTS}/handy_apply_chinese_macos.sh"
echo ""
echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
echo "请在 Handy 设置里再确认(见 SKILL references/Handy设置界面速查.md"
echo " 模型 → SenseVoice 活跃"
echo " 通用 → 语言 → 简体中文(勿自动)"
echo " 高级 → 开机启动 → 关"
echo " 高级 → 粘贴方式 → 剪贴板 Cmd+V"
echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
echo "按住 ⌘1 说:卡若语音输入测试"