Skip to content

Commit c56cb06

Browse files
committed
Exclude unnecessary files, set file modes
1 parent b6b87af commit c56cb06

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

utils/acquireOpenSSL.js

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ const opensslPatchPath = path.join(vendorPath, "patches", "openssl");
2121
const extractPath = path.join(vendorPath, "openssl");
2222

2323
const pathsToIncludeForPackage = [
24-
"bin", "include", "lib"
24+
"include", "lib"
2525
];
2626

2727
const getOpenSSLSourceUrl = (version) => `https://www.openssl.org/source/openssl-${version}.tar.gz`;
@@ -328,7 +328,16 @@ const getOpenSSLPackageName = () => {
328328

329329
const buildPackage = async () => {
330330
await pipeline(
331-
tar.pack(extractPath, { entries: pathsToIncludeForPackage }),
331+
tar.pack(extractPath, {
332+
entries: pathsToIncludeForPackage,
333+
ignore: (name) => {
334+
// Ignore pkgconfig files
335+
return path.extname(name) === ".pc"
336+
|| path.basename(name) === "pkgconfig";
337+
},
338+
dmode: 0755,
339+
fmode: 0644
340+
}),
332341
zlib.createGzip(),
333342
fsNonPromise.createWriteStream(getOpenSSLPackageName())
334343
);

0 commit comments

Comments
 (0)