gpt4 book ai didi

electron - Electron 在building.gyp中包含openssl

转载 作者:行者123 更新时间:2023-12-03 12:21:23 25 4
gpt4 key购买 nike

我正在尝试在 Electron 中使用node-webcrypto-ossl,它需要openssl libs并包含要包含在binding.gyp中的文件夹。

我尝试将其包含在目标中

targets": [
{
"include_dirs": [
"<!(node -e \"require('nan')\")",
"<(openssl_dir)/include",
"/path/to/homebrew/openssl/lib",
"/path/to/homebrew/openssl/include"
],

但这没用

最佳答案

在我的.npmrc中,我只指定OpenSSL目录:

runtime = electron 
target = 1.6.11
target_arch = x64
disturl = https://atom.io/download/atom-shell
openssl_dir = /usr/local/ssl

而且我能够构建使用node-webcrypto-ossl的 Electron 应用程序

关于electron - Electron 在building.gyp中包含openssl,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45379239/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com