Skip to content

Commit f091a52

Browse files
committed
Make OpenSSL available on macOS
Fixes #3
1 parent a0b7929 commit f091a52

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

index.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,12 @@ async function installCrystalForMac({
121121
await FS.unlink(Path.join(path, "embedded", "bin", "shards"));
122122
} catch (e) {}
123123
}
124+
125+
let pkgConfigPath = "/usr/local/opt/openssl/lib/pkgconfig";
126+
if (process.env["PKG_CONFIG_PATH"]) {
127+
pkgConfigPath += Path.delimiter + process.env["PKG_CONFIG_PATH"];
128+
}
129+
Core.exportVariable("PKG_CONFIG_PATH", pkgConfigPath);
124130
}
125131

126132
async function installAptPackages(packages) {

0 commit comments

Comments
 (0)