diff --git a/CHANGELOG.md b/CHANGELOG.md index 703c242ce..db746428c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## [3.49.4](https://github.com/cnpm/cnpmcore/compare/v3.49.3...v3.49.4) (2024-01-06) + + +### Bug Fixes + +* github file size limit increased to 250mb ([#632](https://github.com/cnpm/cnpmcore/issues/632)) ([d5bf9ce](https://github.com/cnpm/cnpmcore/commit/d5bf9ceb1bf5b4c67c43a77dfce300acc4674180)) + ## [3.49.3](https://github.com/cnpm/cnpmcore/compare/v3.49.2...v3.49.3) (2023-12-25) diff --git a/app/common/adapter/binary/GithubBinary.ts b/app/common/adapter/binary/GithubBinary.ts index 36f083786..bfae2f849 100644 --- a/app/common/adapter/binary/GithubBinary.ts +++ b/app/common/adapter/binary/GithubBinary.ts @@ -40,10 +40,13 @@ export class GithubBinary extends AbstractBinary { protected formatItems(releaseItem: any, binaryConfig: BinaryTaskConfig) { const items: BinaryItem[] = []; - // 200MB - const maxFileSize = 1024 * 1024 * 200; + // 250MB + const maxFileSize = 1024 * 1024 * 250; for (const asset of releaseItem.assets) { - if (asset.size > maxFileSize) continue; + if (asset.size > maxFileSize) { + this.logger.info('[GithubBinary.formatItems] asset reach max file size(> 250MB), ignore download it, asset: %j', asset); + continue; + } items.push({ name: asset.name, isDir: false, diff --git a/package.json b/package.json index 88324f8a4..a11b8c473 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "cnpmcore", - "version": "3.49.3", + "version": "3.49.4", "description": "npm core", "files": [ "dist/**/*"