chore: download releases using cloudflare cdn (#1436)

This commit is contained in:
Huang Xin
2025-06-21 16:36:51 +08:00
committed by GitHub
parent 8433dd6950
commit dd43569778
3 changed files with 8 additions and 5 deletions
+1 -1
View File
@@ -50,7 +50,7 @@ export const webDownload = async (downloadUrl: string, onProgress?: ProgressHand
const totalSize = parseInt(contentLength, 10);
let receivedSize = 0;
const reader = response.body!.getReader();
const chunks: Uint8Array[] = [];
const chunks: Uint8Array<ArrayBuffer>[] = [];
const startTime = Date.now();
while (true) {