吾爱破解 - 52pojie.cn

 找回密码
 注册[Register]

QQ登录

只需一步,快速开始

查看: 7720|回复: 129
收起左侧

[Windows] rime小狼毫雾凇拼音白露拼音懒人包

  [复制链接]
ForMuou 发表于 2025-11-26 16:05
本帖最后由 ForMuou 于 2025-12-1 14:16 编辑

2025-11-28 重新编辑排版 优化了静默安装的脚本以及新增帮助文件 新增了白露拼音的配置包 善用搜索 可以解决大部分问题
12-1号还没有审核通过 我在重新编辑一下

输入法本体 0.17.4 官网地址:https://rime.im/download/
雾凇拼音 github地址:https://github.com/iDvel/rime-ice  2025.04.06月
白露拼音 github地址:https://github.com/zjralhf/rime--  2025.11月

成品静默安装包地址https://wwym.lanzouq.com/i7EvP3ccmpkf 密码:52pj  PS 仅windows适用该静默包
如果双击不能运行或正常工作尝试管理员运行
每个人电脑体质不一样 如果静默版本不能安装辛苦手动下载 安装后自行替换配置文件 运行输入%AppData%可以快速打开这个路径

PixPin_2025-11-26_16-59-02.png

注:两个配置包选择一个即可 修改配置文件后需要重新部署否则不会生效  鼠标右键单击任务栏输入法图标即可看到重新部署按钮
PixPin_2025-11-28_12-55-53.png

F4 可以在选单进行进一步设置 例如设置简体繁体 全角半角 emoji表情 等

WIN7 旧版本输入法本体安装包https://wwym.lanzouq.com/iSZnk3ccmlwd

配置文件下载地址
雾凇拼音 https://wwym.lanzouq.com/idYad3ccmv4f
白露拼音 https://wwym.lanzouq.com/i9QSv3ccmw2j
帮助文件下载 https://wwym.lanzouq.com/iaxmL3ccn1qd

运行截图
运行截图.png
打包配置截图.png
安装输入法配置截图.png




项目截图
项目截图.png

Py源码
[Python] 纯文本查看 复制代码
import os
import shutil, subprocess, winreg


current_dir = os.path.dirname(os.path.abspath(__file__))
install_exe = os.path.join(current_dir, "输入法本体.exe")
config_dest = os.path.join(os.environ.get("APPDATA", ""), "Rime")
help_source = os.path.join(current_dir, "Rime帮助")


# 获取桌面路径
def get_desktop_path():
    try:
        # 优先使用User Shell Folders,这个键存储的是用户自定义的文件夹路径
        key = winreg.OpenKey(winreg.HKEY_CURRENT_USER, r"Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders")
        desktop_path = winreg.QueryValueEx(key, "Desktop")[0]
        winreg.CloseKey(key)
        # 替换环境变量占位符
        desktop_path = os.path.expandvars(desktop_path)
        return desktop_path
    except Exception as e:
        print(f"获取桌面路径失败: {str(e)}")
        # 备用方案:使用USERPROFILE环境变量
        return os.path.join(os.environ.get("USERPROFILE", ""), "Desktop")


# 安装输入法函数
def install_input_method():
    print("\n正在安装小狼毫输入法...")
    if os.path.exists(install_exe):
        try:
            result = subprocess.run([install_exe, "/S"], check=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE, text=True)
            print("安装成功:", result.stdout)
            return True
        except subprocess.CalledProcessError as e:
            print("安装失败:", e.stderr)
            return False
    else:
        print("错误:未找到安装程序文件「输入法本体.exe」")
        return False


# 安装配置文件函数
def install_config(config_choice):
    if config_choice == "1":
        config_source = os.path.join(current_dir, "雾凇拼音配置包", "Rime")
        config_name = "雾凇拼音"
    elif config_choice == "2":
        config_source = os.path.join(current_dir, "白露拼音配置包", "Rime")
        config_name = "白露拼音"
    else:
        print("无效的配置选择")
        return False

    print(f"\n正在安装{config_name}配置...")
    print(f"配置文件源路径: {config_source}")

    # 清理旧配置文件
    print("\n正在清理旧配置文件...")
    import time

    max_attempts = 3
    attempt = 0

    # 多次尝试删除文件夹
    while os.path.exists(config_dest) and attempt < max_attempts:
        attempt += 1
        try:
            shutil.rmtree(config_dest, ignore_errors=True)
            time.sleep(0.5)
            print(f"第{attempt}次尝试删除旧配置文件夹")
        except Exception as e:
            print(f"第{attempt}次删除失败:{str(e)}")
            time.sleep(1)

    # 再次检查文件夹是否存在
    if os.path.exists(config_dest):
        print(f"多次尝试后仍无法删除旧配置文件夹:{config_dest}")
        print("建议手动删除该文件夹后重试")
        return False

    print(f"旧配置文件夹「{config_dest}」已删除")

    # 复制配置文件
    print("\n正在复制配置文件...")
    if os.path.exists(config_source):
        try:
            shutil.copytree(config_source, config_dest)
            print("配置文件夹已成功复制到:", config_dest)
            return True, config_name
        except Exception as e:
            print("配置文件复制失败:", str(e))
            return False, ""
    else:
        print(f"错误:未找到{config_name}配置文件夹")
        return False, ""


# 打包配置文件至桌面函数(备份用户本地配置并压缩)
def package_config_to_desktop():
    print("\n正在备份并压缩用户本地配置文件至桌面...")

    # 检查用户本地配置是否存在
    if not os.path.exists(config_dest):
        print(f"错误:未找到用户本地配置文件夹「{config_dest}」")
        return False

    # 创建备份zip文件名
    import datetime, zipfile

    now = datetime.datetime.now().strftime("%Y%m%d_%H%M%S")
    zip_filename = f"Rime配置备份_{now}.zip"
    zip_filepath = os.path.join(desktop_path, zip_filename)

    # 清理旧的同名zip文件(如果存在)
    if os.path.exists(zip_filepath):
        try:
            os.remove(zip_filepath)
            print(f"已删除旧的备份文件: {zip_filepath}")
        except Exception as e:
            print(f"删除旧备份文件失败:{str(e)}")
            return False

    # 压缩用户本地配置到zip文件
    try:
        with zipfile.ZipFile(zip_filepath, "w", zipfile.ZIP_DEFLATED) as zipf:
            # 遍历配置目录中的所有文件和子目录
            for root, dirs, files in os.walk(config_dest):
                for file in files:
                    # 构建完整的文件路径
                    file_path = os.path.join(root, file)
                    # 构建zip文件中的相对路径
                    arcname = os.path.relpath(file_path, config_dest)

                    # 尝试添加文件到zip,如果失败则跳过
                    try:
                        zipf.write(file_path, arcname)
                        print(f"正在压缩: {arcname}")
                    except Exception as file_e:
                        print(f"跳过被占用的文件: {arcname} (错误: {str(file_e)})")

        print(f"\n用户本地配置已成功备份并压缩至桌面: {zip_filepath}")
        print(f"备份内容:{config_dest} → {zip_filepath}")
        return True
    except Exception as e:
        print(f"备份并压缩配置文件失败:{str(e)}")
        return False


# 输出帮助文件至桌面函数
def output_help_files():
    print("\n正在输出帮助文件至桌面...")

    # 检查帮助文件夹是否存在
    if not os.path.exists(help_source):
        print(f"错误:未找到帮助文件夹「{help_source}」")
        return False

    # 清理旧的帮助文件夹(如果存在)
    if os.path.exists(help_dest):
        try:
            shutil.rmtree(help_dest, ignore_errors=True)
            print(f"已删除旧的帮助文件夹: {help_dest}")
        except Exception as e:
            print(f"删除旧帮助文件夹失败:{str(e)}")
            return False

    # 复制帮助文件夹到桌面
    try:
        shutil.copytree(help_source, help_dest)
        print(f"\n帮助文件已成功输出至桌面: {help_dest}")
        return True
    except Exception as e:
        print(f"输出帮助文件失败:{str(e)}")
        return False


# 获取桌面路径
desktop_path = get_desktop_path()
help_dest = os.path.join(desktop_path, "Rime帮助")

# 主循环
while True:
    # 用户选择操作
    print("\n请选择要执行的操作:")
    print("0. 安装小狼毫输入法")
    print("1. 安装雾凇拼音配置")
    print("2. 安装白露拼音配置")
    print("3. 输出帮助文件至桌面")
    print("9. 打包本地配置文件至桌面")
    print("q. 退出程序")
    print("By Muou 2025-11-28")

    choice = input("请输入选项 (0,1,2,3,9,q): ").strip().lower()

    # 执行用户选择的操作
    if choice == "0":
        # 仅安装输入法
        if install_input_method():
            print("\n&#9989; 小狼毫输入法安装完成!")
        else:
            print("\n&#10060; 安装失败!")
    elif choice == "1" or choice == "2":
        # 安装配置文件
        success, config_name = install_config(choice)
        if success:
            print(f"\n&#9989; {config_name}配置安装完成!")
        else:
            print("\n&#10060; 配置安装失败!")
    elif choice == "3":
        # 输出帮助文件至桌面
        if output_help_files():
            print("\n&#9989; 帮助文件输出完成!")
        else:
            print("\n&#10060; 帮助文件输出失败!")
    elif choice == "9":
        # 打包本地配置文件至桌面
        if package_config_to_desktop():
            print("\n&#9989; 本地配置文件打包完成!")
        else:
            print("\n&#10060; 本地配置文件打包失败!")
    elif choice == "q":
        # 退出程序
        print("\n&#10060; 程序已退出!")
        break
    else:
        print("\n&#10060; 无效选项!请重新输入。")

# 程序结束
exit(0)








免费评分

参与人数 21吾爱币 +19 热心值 +17 收起 理由
ruosky + 1 + 1 谢谢@Thanks!
zml0601 + 1 + 1 我很赞同!
G4732246 + 1 + 1 感谢分享
Zmuoqing + 1 + 1 我很赞同!
zephyrcn + 1 + 1 谢谢@Thanks!
SilverMoon7 + 1 + 1 璋㈣阿@Thanks锛?
mormas + 1 + 1 谢谢@Thanks!
wuxi577041324 + 1 + 1 谢谢@Thanks!
小柒_ + 1 + 1 我很赞同!
DJc666666 + 1 鼓励转贴优秀软件安全工具和文档!
woxobo + 1 + 1 谢谢@Thanks!
ivanld + 1 + 1 谢谢@Thanks!
yqekzhz + 1 + 1 谢谢@Thanks!
q7505413 + 1 + 1 我很赞同!
takane + 1 谢谢@Thanks!
sean1666 + 1 我很赞同!
dogox + 1 + 1 我很赞同!
xy6538 + 1 感谢发布原创作品,吾爱破解论坛因你更精彩!
shadmmd + 1 谢谢@Thanks!
banzhiyi + 1 + 1 谢谢@Thanks!
uc359599080 + 1 支持支持

查看全部评分

本帖被以下淘专辑推荐:

发帖前要善用论坛搜索功能,那里可能会有你要找的答案或者已经有人发布过相同内容了,请勿重复发帖。

 楼主| ForMuou 发表于 2025-11-27 10:16
天天哈皮 发表于 2025-11-27 10:13
我还以为能修改appData路径到其他盘

APPdata rime 目录下是配置文件 后续如果换电脑等等的直接打包自己的本地的配置文件进行解压就可以了无缝迁移了
 楼主| ForMuou 发表于 2025-11-26 17:00
天天哈皮 发表于 2025-11-26 16:54
哈哈,默认不想安装在c盘。另外请教下安卓手机的雾凇库要怎么导入

已经重新编辑了帖子  上传了原始的安装程序及配置 自己替换就好了
sunny568914 发表于 2025-11-26 16:31
amly 发表于 2025-11-26 16:31
这个有什么优势吗
sunny568914 发表于 2025-11-26 16:33

好了,以管理员身份运行后安装上去了
johnsheng 发表于 2025-11-26 16:37
amly 发表于 2025-11-26 16:31
这个有什么优势吗

可以说世界上最好的输入法软件了。开源,免费,全平台,无广告,功能界面自定义,扩展词库,用户词库可以同步且掌握在自己手中,不联网不上传隐私。
amly 发表于 2025-11-26 16:38
哦哦,谢谢
xmhz9527 发表于 2025-11-26 16:40
有什么特殊的吗?
 楼主| ForMuou 发表于 2025-11-26 16:50
天天哈皮 发表于 2025-11-26 16:29
感谢分享,能否自定义安装路径

默认的安装位置好一些 占用的空间也不大
xiehaipeng 发表于 2025-11-26 16:52
这么好的输入法一定要下载试试看。
天天哈皮 发表于 2025-11-26 16:54
ForMuou 发表于 2025-11-26 16:50
默认的安装位置好一些 占用的空间也不大

哈哈,默认不想安装在c盘。另外请教下安卓手机的雾凇库要怎么导入
您需要登录后才可以回帖 登录 | 注册[Register]

本版积分规则

返回列表

RSS订阅|小黑屋|处罚记录|联系我们|吾爱破解 - 52pojie.cn ( 京ICP备16042023号 | 京公网安备 11010502030087号 )

GMT+8, 2026-8-30 07:49

Powered by Discuz!

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表