-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
windows上无法使用golang编写node native addon给electron干活 #1
Comments
你解决了吗? |
gonacli 是有处理的 |
我尝试了一下,我这里使用的是Vue CLI Plugin Electron Builder。在使用gonacli make和在output目录下执行npm run build:release以后,会在build\Release\会产生*.node文件。所需要的两个文件分别是生成目录根目录中的动态链接库文件(Windows下为.dll,Linux应该是.so)以及*.node文件。只需要这两个文件,将文件复制到vue-electron-build项目的src目录中随后需要设置vue.config.js的webpack配置。
然后在background.js中直接可以使用:
问题不大主要是需要webpack的一个node文件loader,踩坑时间都在这儿了 |
今天看到了这个文章
请问是否遇到了这个问题?现在支持Windows是么?
https://www.jianshu.com/p/2bb52d13d734
The text was updated successfully, but these errors were encountered: