Skip to content

Commit

Permalink
fix: 指定包能全量同步
Browse files Browse the repository at this point in the history
  • Loading branch information
烫宝 committed Apr 7, 2024
1 parent 7c0150f commit 51ad513
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion app/port/schedule/CreateSyncBinaryTask.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export class CreateSyncBinaryTask {
// 例如 canvas 只同步 binaryName 为 canvas 的二进制,不同步 category 为 node-canvas-prebuilt 的二进制
// node-canvas-prebuilt 的二进制会在 node-canvas-prebuilt 的任务中同步
await this.binarySyncerService.createTask(binaryName as BinaryName, {
fullDiff: isBetween2and205AM(),
fullDiff: isBetween2and205AM() && binary.enableFullDiff,
});
}
}
Expand Down
4 changes: 4 additions & 0 deletions config/binaries.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ export type BinaryTaskConfig = {
ignoreDownloadStatuses?: number[],
},
disable?: boolean;
enableFullDiff?: boolean;
};

const binaries = {
Expand All @@ -41,6 +42,7 @@ const binaries = {
type: BinaryType.Node,
repo: 'nodejs/node',
distUrl: 'https://nodejs.org/dist',
enableFullDiff: true,
},
'node-rc': {
category: 'node-rc',
Expand Down Expand Up @@ -107,6 +109,7 @@ const binaries = {
type: BinaryType.Puppeteer,
repo: 'puppeteer/puppeteer',
distUrl: 'https://chromium-browser-snapshots.storage.googleapis.com/?delimiter=/&prefix=',
enableFullDiff: true,
},
// ChromeBinary
'chrome-for-testing': {
Expand Down Expand Up @@ -910,6 +913,7 @@ const binaries = {
type: BinaryType.GitHub,
repo: 'oven-sh/bun',
distUrl: 'https://github.com/oven-sh/bun/releases',
enableFullDiff: true,
},
} as const;

Expand Down

0 comments on commit 51ad513

Please sign in to comment.