Skip to content

Commit

Permalink
fix: lib64 on some platforms
Browse files Browse the repository at this point in the history
  • Loading branch information
nbbeeken committed May 22, 2024
1 parent d9157cd commit 8f8cd61
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/scripts/libmongocrypt.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ if (!args.build) {
const platform = platformMatrix[`${process.platform}-${process.arch}`];
if (platform == null) throw new Error(`${process.platform}-${process.arch}`);

const unzip = child_process.spawn('tar', ['-xz', '-C', destination, ...new Set(Object.values(platformMatrix))], {
const unzip = child_process.spawn('tar', ['-xz', '-C', destination, `${platform}/nocrypto`], {
stdio: ['pipe']
});

Expand All @@ -176,6 +176,9 @@ if (!args.build) {

await fs.rm('deps', { recursive: true, force: true });
await fs.cp(path.join(destination, platform, 'nocrypto'), 'deps', { recursive: true });
if (await fs.access(path.join('deps', 'lib64')).then(() => true, () => false)) {
await fs.rename(path.join('deps', 'lib64'), path.join('deps', 'lib'));
}
}

await run('npm', ['install', '--ignore-scripts']);
Expand Down

0 comments on commit 8f8cd61

Please sign in to comment.