Skip to content

Commit

Permalink
fix: github file size limit increased to 250mb (#632)
Browse files Browse the repository at this point in the history
  • Loading branch information
fengmk2 authored Jan 6, 2024
1 parent 10b97c8 commit d5bf9ce
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions app/common/adapter/binary/GithubBinary.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit d5bf9ce

Please sign in to comment.