Skip to content

Commit 90dfc78

Browse files
committed
fix: 全新升级杂鱼虚拟显示器卸载旧的vdd
1 parent f653c28 commit 90dfc78

2 files changed

Lines changed: 9 additions & 2 deletions

File tree

.github/workflows/translate-simple.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,14 @@ jobs:
9292
else:
9393
masked = mask_terms(content)
9494
translated = translate_with_deepseek(masked, lang_name)
95-
translated_content = unmask_terms(translated)
95+
# 去除 DeepSeek 返回的多余提示,只保留 markdown 内容
96+
translated = unmask_terms(translated)
97+
if '```markdown' in translated:
98+
translated_content = translated.split('```markdown',1)[-1]
99+
# 去除结尾的 ```
100+
translated_content = translated_content.replace('```','').strip()
101+
else:
102+
translated_content = translated.strip()
96103
97104
filename = f'README.{lang_code}.md'
98105
with open(filename, 'w', encoding='utf-8') as f:

src_assets/windows/misc/vdd/install-vdd.bat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ if exist "%DIST_DIR%" (
5353
)
5454

5555
rem 卸载旧的vdd
56-
"%NEFCON%" --remove-device-node --hardware-id ROOT\ZakoVDD --class-guid 4d36e968-e325-11ce-bfc1-08002be10318
56+
"%NEFCON%" --remove-device-node --hardware-id ROOT\MttVDD --class-guid 4d36e968-e325-11ce-bfc1-08002be10318
5757
timeout /t 5 /nobreak 1>nul
5858

5959
if not exist "%VDD_CONFIG%" (

0 commit comments

Comments
 (0)