Files
qingjian/apps/linux/scripts/uninstall.sh
T
BROX_Lighters. 2b2902d70b feat(linux): 接入 Rust Server 与 Fcitx5 默认候选面板 (#90)
Linux 第一阶段:Rust Server + 薄 Fcitx5 插件 + 用户目录安装,候选窗用 Fcitx5 自带面板。
目前只支持源码安装、手动启动 Server;自绘候选窗、自动启动与打包在后续阶段。
2026-09-20 15:49:20 +08:00

14 lines
571 B
Bash
Executable File

#!/usr/bin/env bash
# //! 仅删除本安装清单中的文件,保留配置、词库、学习数据。
set -euo pipefail
install_prefix="$HOME/.local"
while (($#)); do
case "$1" in
--prefix) install_prefix=${2:?--prefix 需要路径}; shift 2 ;;
--help) echo '用法:uninstall.sh [--prefix 安装时的绝对目录]'; exit 0 ;;
*) echo "未知参数:$1" >&2; exit 2 ;;
esac
done
python3 "$(dirname -- "${BASH_SOURCE[0]}")/files.py" uninstall "$install_prefix"
echo '卸载完成;请手动结束 Server 并重启 Fcitx5,用户数据已保留。'