Explorar el Código

fix: use uv to redue workflow

Dew-OF-Aurora hace 1 semana
padre
commit
9e5d62f4f1
Se han modificado 1 ficheros con 6 adiciones y 23 borrados
  1. 6 23
      custom/rime_ice_wanxiang.py

+ 6 - 23
custom/rime_ice_wanxiang.py

@@ -1,28 +1,11 @@
 #!/usr/bin/env python3
+# /// script
+# requires-python = ">=3.9"
+# dependencies = [
+#     "ruamel.yaml",
+# ]
+# ///
 # -*- coding: utf-8 -*-
-"""在 macOS 上安装、更新或卸载 Rime Ice 的万象语言模型。
-
-要求:
-    Python 3.9+,仅支持 macOS。
-
-唯一第三方依赖:
-    ruamel.yaml(用于保留 YAML 注释、键顺序和无关配置值)
-
-推荐环境(pyenv + Python 3.13):
-    brew install pyenv
-    echo 'eval "$(pyenv init -)"' >> ~/.zshrc
-    source ~/.zshrc
-    pyenv install 3.13
-    pyenv global 3.13
-    python3 -m pip install ruamel.yaml
-
-用法:
-    python3 rime_ice_wanxiang.py                  # 显示中文菜单
-    python3 rime_ice_wanxiang.py install          # 安装/更新
-    python3 rime_ice_wanxiang.py update           # 安装/更新
-    python3 rime_ice_wanxiang.py uninstall        # 卸载
-    python3 rime_ice_wanxiang.py --rime-dir DIR   # 指定其他 Rime 目录(测试用)
-"""
 
 from __future__ import annotations