#!/bin/bash # 机构名称匹配工具安装脚本 echo "正在安装机构名称匹配工具..." # 创建安装目录 INSTALL_DIR="/usr/local/bin/institution_matcher" sudo mkdir -p $INSTALL_DIR # 复制可执行文件 sudo cp dist/institution_matcher $INSTALL_DIR/ sudo chmod +x $INSTALL_DIR/institution_matcher # 创建配置文件目录 CONFIG_DIR="/etc/institution_matcher" sudo mkdir -p $CONFIG_DIR # 复制配置文件 sudo cp config.yaml $CONFIG_DIR/ # 创建软链接 sudo ln -sf $INSTALL_DIR/institution_matcher /usr/local/bin/institution_matcher echo "安装完成!" echo "使用方法: institution_matcher --help"