Commit a6d8a8a
fix(SoundDodge): PEP 562 延迟加载 + CI 预装 patched soundcard (#207)
* fix(SoundDodge): PEP 562 延迟加载 + CI 预装 patched soundcard
- __init__.py: 用 __getattr__ 延迟导入 Ear/Dodger,避免 import custom
时 module-level import soundcard 触发 cffi.dlopen('ole32') 崩溃
- install.yml: CI 打包时将 soundcard 预装进 embedded Python 并 patch
mediafoundation.py 中 ole32 → ole32.dll,从源头修复 find_library 问题
* fix(ci): soundcard patch 前校验目标字符串存在,防止静默回归
replace() 找不到目标时静默成功,若 soundcard 未来改动
mediafoundation.py 则 ole32 崩溃会悄悄回来。加显式检查让
CI 硬失败。
* chore(SoundTrigger): remove blank lines inside if blocks for Black compliance
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
* fix(ci): use heredoc for soundcard patch to fix YAML indentation
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com>1 parent 5d1a21a commit a6d8a8a
2 files changed
Lines changed: 36 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
166 | 166 | | |
167 | 167 | | |
168 | 168 | | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
169 | 195 | | |
170 | 196 | | |
171 | 197 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | | - | |
4 | 1 | | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
0 commit comments