Skip to content

Commit 8f8cd61

Browse files
committed
fix: lib64 on some platforms
1 parent d9157cd commit 8f8cd61

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/scripts/libmongocrypt.mjs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ if (!args.build) {
162162
const platform = platformMatrix[`${process.platform}-${process.arch}`];
163163
if (platform == null) throw new Error(`${process.platform}-${process.arch}`);
164164

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

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

177177
await fs.rm('deps', { recursive: true, force: true });
178178
await fs.cp(path.join(destination, platform, 'nocrypto'), 'deps', { recursive: true });
179+
if (await fs.access(path.join('deps', 'lib64')).then(() => true, () => false)) {
180+
await fs.rename(path.join('deps', 'lib64'), path.join('deps', 'lib'));
181+
}
179182
}
180183

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

0 commit comments

Comments
 (0)