File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -35,6 +35,7 @@ v2.0 - Koharu(小鸟游星野) Alpha 6
3535- 修复 ** Edge TTS语音生成** ,优化NoAudioReceived错误处理
3636- 修复 ** 语音缓存系统** ,新增WebSocketError异常处理增强连接稳定性
3737- 修复 ** Edge TTS库版本** ,升级到最新版本 7.2.7,解决无法生成语音的问题
38+ - 修复 ** Windows平台文件隐藏功能** ,新增** 返回值检查** 和** 错误码记录** 功能
3839
3940## 🔧 其它变更
4041
Original file line number Diff line number Diff line change @@ -23,9 +23,14 @@ def _set_hidden(path: str) -> None:
2323 # Windows 平台:设置文件属性为隐藏和系统文件
2424 FILE_ATTRIBUTE_HIDDEN = 0x2
2525 FILE_ATTRIBUTE_SYSTEM = 0x4
26- ctypes .windll .kernel32 .SetFileAttributesW (
26+ # 确保路径是Unicode字符串
27+ result = ctypes .windll .kernel32 .SetFileAttributesW (
2728 path , FILE_ATTRIBUTE_HIDDEN | FILE_ATTRIBUTE_SYSTEM
2829 )
30+ if result == 0 : # 函数失败
31+ logger .warning (
32+ f"设置Windows文件属性失败,错误码: { ctypes .windll .kernel32 .GetLastError ()} "
33+ )
2934 else : # Linux 平台:使用点前缀隐藏文件
3035 import os
3136
Original file line number Diff line number Diff line change @@ -12,6 +12,8 @@ dependencies = [
1212 " pysidesix-frameless-window>=0.7.4" ,
1313 " darkdetect==0.8.0" ,
1414 # === 核心/日志/工具 ===
15+ # 注意:`asyncio` 为标准库,通常不应列在依赖中;已注释以提示移除
16+ # "asyncio~=4.0.0",
1517 " loguru==0.7.3" ,
1618 " colorama==0.4.6" ,
1719 " packaging==25.0" ,
@@ -28,6 +30,7 @@ dependencies = [
2830 " colorthief==0.2.1" ,
2931 # === 网络 / TTS 服务 ===
3032 " requests==2.32.5" ,
33+ " aiohttp>=3.13.2" ,
3134 " edge-tts==7.2.7" ,
3235 # === 音频 / TTS 本地 ===
3336 " pyttsx3==2.99" ,
You can’t perform that action at this time.
0 commit comments