Skip to content

Commit 8f32f90

Browse files
committed
fix:修复首次更新rag.exe失败
1 parent 0645a2c commit 8f32f90

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ragService.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,10 +72,10 @@ class RagService {
7272

7373
// Check if rag.exe exists
7474
try {
75-
await fs.access(exePath, fs.constants.F_OK);
76-
7775
// Download MD5 from GitHub
7876
remoteMd5 = await this.downloadText('https://github.com/yefansky/CodeReDesign/releases/download/latest/md5.txt');
77+
78+
await fs.access(exePath, fs.constants.F_OK);
7979

8080
// Calculate local rag.exe MD5
8181
const localMd5 = await this.calculateFileMd5(exePath);

0 commit comments

Comments
 (0)