Commit 3b508ed3 authored by nanahira's avatar nanahira

fix size

parent 1af27442
Pipeline #4825 failed with stages
in 1 minute and 8 seconds
...@@ -159,7 +159,7 @@ export class PackagerService extends ConsoleLogger { ...@@ -159,7 +159,7 @@ export class PackagerService extends ConsoleLogger {
} }
async checksum(root: string, directories: string[], files: string[]): Promise<Record<string, string>> { async checksum(root: string, directories: string[], files: string[]): Promise<Record<string, string>> {
const { stdout } = await util.promisify(child_process.execFile)('sha256sum', files, { maxBuffer: 1 * 1024 ** 2, cwd: root }); const { stdout } = await util.promisify(child_process.execFile)('sha256sum', files, { maxBuffer: 1 * 1024 ** 3, cwd: root });
return Object.fromEntries([ return Object.fromEntries([
['.', ''], ['.', ''],
...directories.map((d) => [d, '']), ...directories.map((d) => [d, '']),
...@@ -180,6 +180,7 @@ export class PackagerService extends ConsoleLogger { ...@@ -180,6 +180,7 @@ export class PackagerService extends ConsoleLogger {
const stream = new Stream.Writable(); const stream = new Stream.Writable();
const child = child_process.spawn('tar', ['--zstd', '-cf', '-'].concat(files), { const child = child_process.spawn('tar', ['--zstd', '-cf', '-'].concat(files), {
cwd: root, cwd: root,
maxBuffer: 200 * 1024 * 1024,
}); });
const childPromise = new Promise<void>((resolve, reject) => { const childPromise = new Promise<void>((resolve, reject) => {
child.on('exit', (code) => { child.on('exit', (code) => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment