nashaofu
nashaofu
目前是的,后续也想要通过rust实现
Let me test it first
I couldn't find out how this problem occurred, there may be slight differences in the images
Can you run the following program on the computer that reported the error? Maybe my dependency uses the corresponding version of glibc. ```js const fs = require('fs') const { Screenshots...
代码贴全一点吧,不知道两个文件分别是什么内容
windows确实有这个问题
1. 你在有问题的机器上,安装`node-screenshots`,然后执行下面的js代码,看看是否会报错 ```js const { Screenshots } = require('node-screenshots') ``` 2. 找到 electron 打包后的`resources`文件夹,看看里面的node_modules是否包含对应的模块,如果没有也可以解压`asar`这个文件,看看里面的node_modules是否包含对应模块。可参考这个排查一下https://github.com/nashaofu/screenshots/blob/master/packages/electron-screenshots/README.md#%E6%B3%A8%E6%84%8F
这个问题看起来是你打包后node_modules下面没有`node-screenshots.win32-x64-msvc.node`这个文件,你排查一下吧,并不是电脑dll文件问题,因为你直接运行`const { Screenshots } = require('node-screenshots')`是可以的
这里是我打包出来的一个可执行文件[screenshots.zip](https://github.com/nashaofu/node-screenshots/files/11859944/screenshots.zip),下载解压后,在命令行执行`./screenshots.exe`看看是否能正常执行,以帮助我确定是`screenshots-rs`这个库有问题还是`napi-rs`的问题。 